• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gcc/gcc.mk
Romain NaourRomain Naour committed 1960ad837b115 Oct 2017
Raw file
Source viewDiff to previous
xxxxxxxxxx
HOST_GCC_COMMON_CCACHE_HASH_FILES += package/gcc/$(GCC_VERSION)/1000-powerpc-link-with-math-lib.patch.conditional
 
1
################################################################################
2
#
3
# Common variables for the gcc-initial and gcc-final packages.
4
#
5
################################################################################
6
​
7
#
8
# Version, site and source
9
#
10
​
11
GCC_VERSION = $(call qstrip,$(BR2_GCC_VERSION))
12
​
13
ifeq ($(BR2_arc),y)
14
GCC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,gcc,$(GCC_VERSION))
15
GCC_SOURCE = gcc-$(GCC_VERSION).tar.gz
16
else ifeq ($(BR2_or1k),y)
17
GCC_SITE = $(call github,openrisc,or1k-gcc,$(GCC_VERSION))
18
GCC_SOURCE = gcc-$(GCC_VERSION).tar.gz
19
else
20
GCC_SITE = $(BR2_GNU_MIRROR:/=)/gcc/gcc-$(GCC_VERSION)
21
# From version 5.5.0, 6.4.0 and 7.2.0 a bz2 release tarball is not
22
# provided anymore. Use the xz tarball instead.
23
ifeq ($(BR2_GCC_VERSION_5_X)$(BR2_GCC_VERSION_6_X)$(BR2_GCC_VERSION_7_X),y)
24
GCC_SOURCE = gcc-$(GCC_VERSION).tar.xz
25
else
26
GCC_SOURCE = gcc-$(GCC_VERSION).tar.bz2
27
endif # BR2_GCC_VERSION_6_X
28
endif
29
​
30
#
31
# Xtensa special hook
32
#
33
define HOST_GCC_XTENSA_OVERLAY_EXTRACT
34
    $(call arch-xtensa-overlay-extract,$(@D),gcc)
35
endef
36
​
37
#
38
# Apply patches
39
#
40
​
41
ifeq ($(ARCH),powerpc)
42
ifneq ($(BR2_SOFT_FLOAT),)
43
define HOST_GCC_APPLY_POWERPC_PATCH
44
    $(APPLY_PATCHES) $(@D) package/gcc/$(GCC_VERSION) 1000-powerpc-link-with-math-lib.patch.conditional
45
endef
46
endif
47
endif
48
​
49
# gcc is a special package, not named gcc, but gcc-initial and
50
# gcc-final, but patches are nonetheless stored in package/gcc in the
51
# tree, and potentially in BR2_GLOBAL_PATCH_DIR directories as well.
52
define HOST_GCC_APPLY_PATCHES
53
    for patchdir in \
54
        package/gcc/$(GCC_VERSION) \
55
        $(addsuffix /gcc/$(GCC_VERSION),$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) \
56
        $(addsuffix /gcc,$(call qstrip,$(BR2_GLOBAL_PATCH_DIR))) ; do \
57
        if test -d $${patchdir}; then \
58
            $(APPLY_PATCHES) $(@D) $${patchdir} \*.patch || exit 1; \
59
        fi; \
60
    done
61
    $(HOST_GCC_APPLY_POWERPC_PATCH)
62
endef
63
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.