Brian Silver | cb56555 | 2014-12-11 12:51:36 -0600 | [diff] [blame^] | 1 | ################################################################################ |
| 2 | # |
| 3 | # p8-pore-binutils |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
| 7 | P8_PORE_BINUTILS_VERSION ?= 94a1a56cb3ce72a2d6202ab54206912cf9e1feb1 |
| 8 | P8_PORE_BINUTILS_SITE ?= $(call github,open-power,p8-pore-inutils,$(P8_PORE_BINUTILS_VERSION)) |
| 9 | P8_PORE_BINUTILS_LICENSE = Apache-2.0 |
| 10 | P8_PORE_BINUTILS_DEPENDENCIES = host-binutils |
| 11 | |
| 12 | P8_PORE_BINUTILS_INSTALL_IMAGES = YES |
| 13 | P8_PORE_BINUTILS_INSTALL_TARGET = NO |
| 14 | |
| 15 | P8_PORE_BINUTILS_DIR = $(STAGING_DIR)/p8-pore-binutils |
| 16 | P8_PORE_BINUTILS_BIN = $(STAGING_DIR)/p8-pore-binutils/linux |
| 17 | |
| 18 | define P8_PORE_BINUTILS_BUILD_CMDS |
| 19 | cd $(@D) && \ |
| 20 | ./configure --prefix=$(P8_PORE_BINUTILS_DIR) \ |
| 21 | --exec-prefix=$(P8_PORE_BINUTILS_BIN) \ |
| 22 | --target=pore-elf64 \ |
| 23 | --build=i386-unknown-linux-gnu && \ |
| 24 | make configure-host && \ |
| 25 | make LDFLAGS=-all-static |
| 26 | endef |
| 27 | |
| 28 | define P8_PORE_BINUTILS_INSTALL_IMAGES_CMDS |
| 29 | bash -c 'cd $(@D) && make install' |
| 30 | endef |
| 31 | |
| 32 | $(eval $(generic-package)) |