• 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/binutils/binutils.mk
Benoit MauduitBenoit Mauduit committed 48391acd2c608 Jun 2011
Raw file
Source viewDiff to previous
 
1
#############################################################
2
#
3
# binutils
4
#
5
#############################################################
6
​
7
# Version is set when using buildroot toolchain.
8
# If not, we do like other packages
9
BINUTILS_VERSION = $(call qstrip,$(BR2_BINUTILS_VERSION))
10
ifeq ($(BINUTILS_VERSION),)
11
BINUTILS_VERSION = 2.21
12
endif
13
​
14
BINUTILS_SOURCE = binutils-$(BINUTILS_VERSION).tar.bz2
15
BINUTILS_SITE = $(BR2_GNU_MIRROR)/binutils
16
ifeq ($(ARCH),avr32)
17
BINUTILS_SITE = ftp://www.at91.com/pub/buildroot
18
endif
19
BINUTILS_EXTRA_CONFIG_OPTIONS = $(call qstrip,$(BR2_BINUTILS_EXTRA_CONFIG_OPTIONS))
20
BINUTILS_INSTALL_STAGING = YES
21
BINUTILS_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libintl)
22
​
23
# We need to specify host & target to avoid breaking ARM EABI
24
BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
25
        --host=$(REAL_GNU_TARGET_NAME) \
26
        --target=$(REAL_GNU_TARGET_NAME) \
27
        --enable-shared \
28
        $(BINUTILS_EXTRA_CONFIG_OPTIONS)
29
​
30
# Install binutils after busybox to prefer full-blown utilities
31
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
32
BINUTILS_DEPENDENCIES += busybox
33
endif
34
​
35
# "host" binutils should actually be "cross"
36
# We just keep the convention of "host utility" for now
37
HOST_BINUTILS_CONF_OPT = --disable-multilib --disable-werror \
38
            --target=$(REAL_GNU_TARGET_NAME) \
39
            --disable-shared --enable-static \
40
            $(BR2_CONFIGURE_STAGING_SYSROOT) \
41
            $(BINUTILS_EXTRA_CONFIG_OPTIONS)
42
​
43
# We just want libbfd and libiberty, not the full-blown binutils in staging
44
define BINUTILS_INSTALL_STAGING_CMDS
45
    $(MAKE) -C $(@D)/bfd DESTDIR=$(STAGING_DIR) install
46
    $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
47
endef
48
​
49
# If we don't want full binutils on target
50
ifneq ($(BR2_PACKAGE_BINUTILS_TARGET),y)
51
define BINUTILS_INSTALL_TARGET_CMDS
52
    $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/bfd DESTDIR=$(TARGET_DIR) install
53
    $(MAKE) -C $(@D)/libiberty DESTDIR=$(STAGING_DIR) install
54
endef
55
endif
56
​
57
$(eval $(call AUTOTARGETS))
58
$(eval $(call AUTOTARGETS,host))
  • 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.