Matt Ploetz | c19ce76 | 2016-09-01 18:18:56 -0500 | [diff] [blame^] | 1 | ################################################################################ |
| 2 | # |
| 3 | # ppe42-binutils |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
| 7 | PPE42_BINUTILS_VERSION ?= 5b161fc30519a965f16e7e73c3410a388140cba1 |
| 8 | PPE42_BINUTILS_SITE ?= $(call github,open-power,ppe42-binutils,$(PPE42_BINUTILS_VERSION)) |
| 9 | PPE42_BINUTILS_LICENSE = GPLv3+ |
| 10 | |
| 11 | PPE42_BINUTILS_DEPENDENCIES = host-binutils |
| 12 | |
| 13 | PPE42_BINUTILS_DIR = $(STAGING_DIR)/ppe42-binutils |
| 14 | PPE42_BINUTILS_BIN = $(STAGING_DIR)/ppe42-binutils/linux |
| 15 | |
| 16 | define HOST_PPE42_BINUTILS_BUILD_CMDS |
| 17 | cd $(@D) && \ |
| 18 | ./configure --prefix=$(PPE42_BINUTILS_DIR) \ |
| 19 | --exec-prefix=$(PPE42_BINUTILS_BIN) \ |
| 20 | --target=powerpc-eabi \ |
| 21 | --enable-shared \ |
| 22 | --enable-64-bit-bfd \ |
| 23 | && \ |
| 24 | make configure-host && \ |
| 25 | make LDFLAGS=-all-static CFLAGS=-Wno-error=unused-value |
| 26 | endef |
| 27 | |
| 28 | define HOST_PPE42_BINUTILS_INSTALL_CMDS |
| 29 | bash -c 'cd $(@D) && make install' |
| 30 | endef |
| 31 | |
| 32 | $(eval $(host-generic-package)) |