Matt Ploetz | c19ce76 | 2016-09-01 18:18:56 -0500 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # ppe42-binutils |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Klaus Heinrich Kiwi | 0b9616d | 2019-10-29 18:28:45 -0300 | [diff] [blame] | 7 | PPE42_BINUTILS_VERSION ?= c615a89c5beb032cbb00bf0c3e670319b2bbd4f5 |
Matt Ploetz | c19ce76 | 2016-09-01 18:18:56 -0500 | [diff] [blame] | 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 | |
Klaus Heinrich Kiwi | b64ca28 | 2020-05-12 14:42:44 -0300 | [diff] [blame] | 13 | PPE42_BINUTILS_DIR = $(HOST_DIR)/$(PPE42_TOOLCHAIN_DIR) |
| 14 | PPE42_BINUTILS_BIN = $(HOST_DIR)/$(PPE42_TOOLCHAIN_BIN) |
Matt Ploetz | c19ce76 | 2016-09-01 18:18:56 -0500 | [diff] [blame] | 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 | && \ |
Stewart Smith | aa697d0 | 2017-02-17 18:49:10 +1100 | [diff] [blame] | 24 | $(MAKE) configure-host && \ |
| 25 | $(MAKE) LDFLAGS=-all-static CFLAGS=-Wno-error |
Matt Ploetz | c19ce76 | 2016-09-01 18:18:56 -0500 | [diff] [blame] | 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)) |