Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # p8-pore-binutils |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Joel Stanley | 9e02d1b | 2015-02-02 13:57:34 +1030 | [diff] [blame] | 7 | P8_PORE_BINUTILS_VERSION ?= dcf4f87c0d9e8c8092ace0eb696189ee1056da30 |
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+ |
Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame] | 10 | |
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 && \ |
| 22 | make LDFLAGS=-all-static |
| 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)) |