Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # p8-pore-binutils |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
hostboot | 94e7522 | 2017-01-13 00:07:34 -0600 | [diff] [blame] | 7 | P8_PORE_BINUTILS_VERSION ?= 91069b732e4c253055cd94fff6ad179116563df9 |
Patrick Williams | 01f14c8 | 2014-12-11 19:03:42 -0600 | [diff] [blame] | 8 | P8_PORE_BINUTILS_SITE ?= $(call github,open-power,p8-pore-binutils,$(P8_PORE_BINUTILS_VERSION)) |
| 9 | P8_PORE_BINUTILS_LICENSE = GPLv3+ |
Stewart Smith | b16ba5b | 2017-01-10 12:55:55 +1100 | [diff] [blame] | 10 | P8_PORE_BINUTILS_LICENSE_FILES = COPYING3 COPYING.LIB |
Patrick Williams | 01f14c8 | 2014-12-11 19:03:42 -0600 | [diff] [blame] | 11 | HOST_P8_PORE_BINUTILS_DEPENDENCIES = host-binutils |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 12 | |
| 13 | P8_PORE_BINUTILS_DIR = $(STAGING_DIR)/p8-pore-binutils |
| 14 | P8_PORE_BINUTILS_BIN = $(STAGING_DIR)/p8-pore-binutils/linux |
| 15 | |
Patrick Williams | 01f14c8 | 2014-12-11 19:03:42 -0600 | [diff] [blame] | 16 | define HOST_P8_PORE_BINUTILS_BUILD_CMDS |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 17 | cd $(@D) && \ |
| 18 | ./configure --prefix=$(P8_PORE_BINUTILS_DIR) \ |
| 19 | --exec-prefix=$(P8_PORE_BINUTILS_BIN) \ |
Patrick Williams | 01f14c8 | 2014-12-11 19:03:42 -0600 | [diff] [blame] | 20 | --target=pore-elf64 && \ |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 21 | make configure-host && \ |
Stewart Smith | 20618e1 | 2017-07-17 15:31:38 +1000 | [diff] [blame] | 22 | make CFLAGS=-Wno-error LDFLAGS=-all-static |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 23 | endef |
| 24 | |
Patrick Williams | 01f14c8 | 2014-12-11 19:03:42 -0600 | [diff] [blame] | 25 | define HOST_P8_PORE_BINUTILS_INSTALL_CMDS |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 26 | bash -c 'cd $(@D) && make install' |
| 27 | endef |
| 28 | |
Patrick Williams | 01f14c8 | 2014-12-11 19:03:42 -0600 | [diff] [blame] | 29 | $(eval $(host-generic-package)) |