blob: 880dc09c1fb4a623d14de9a3a38dd09476d07d97 [file] [log] [blame]
Brian Silvercb565552014-12-11 12:51:36 -06001################################################################################
2#
3# p8-pore-binutils
4#
5################################################################################
6
hostboot94e75222017-01-13 00:07:34 -06007P8_PORE_BINUTILS_VERSION ?= 91069b732e4c253055cd94fff6ad179116563df9
Patrick Williams01f14c82014-12-11 19:03:42 -06008P8_PORE_BINUTILS_SITE ?= $(call github,open-power,p8-pore-binutils,$(P8_PORE_BINUTILS_VERSION))
9P8_PORE_BINUTILS_LICENSE = GPLv3+
Stewart Smithb16ba5b2017-01-10 12:55:55 +110010P8_PORE_BINUTILS_LICENSE_FILES = COPYING3 COPYING.LIB
Patrick Williams01f14c82014-12-11 19:03:42 -060011HOST_P8_PORE_BINUTILS_DEPENDENCIES = host-binutils
Brian Silvercb565552014-12-11 12:51:36 -060012
13P8_PORE_BINUTILS_DIR = $(STAGING_DIR)/p8-pore-binutils
14P8_PORE_BINUTILS_BIN = $(STAGING_DIR)/p8-pore-binutils/linux
15
Patrick Williams01f14c82014-12-11 19:03:42 -060016define HOST_P8_PORE_BINUTILS_BUILD_CMDS
Brian Silvercb565552014-12-11 12:51:36 -060017 cd $(@D) && \
18 ./configure --prefix=$(P8_PORE_BINUTILS_DIR) \
19 --exec-prefix=$(P8_PORE_BINUTILS_BIN) \
Patrick Williams01f14c82014-12-11 19:03:42 -060020 --target=pore-elf64 && \
Brian Silvercb565552014-12-11 12:51:36 -060021 make configure-host && \
Stewart Smith20618e12017-07-17 15:31:38 +100022 make CFLAGS=-Wno-error LDFLAGS=-all-static
Brian Silvercb565552014-12-11 12:51:36 -060023endef
24
Patrick Williams01f14c82014-12-11 19:03:42 -060025define HOST_P8_PORE_BINUTILS_INSTALL_CMDS
Brian Silvercb565552014-12-11 12:51:36 -060026 bash -c 'cd $(@D) && make install'
27endef
28
Patrick Williams01f14c82014-12-11 19:03:42 -060029$(eval $(host-generic-package))