blob: a94d8c6704e99f257c7d4f155f09c55332a71f0b [file] [log] [blame]
################################################################################
#
# p8-pore-binutils
#
################################################################################
P8_PORE_BINUTILS_VERSION ?= 91069b732e4c253055cd94fff6ad179116563df9
P8_PORE_BINUTILS_SITE ?= $(call github,open-power,p8-pore-binutils,$(P8_PORE_BINUTILS_VERSION))
P8_PORE_BINUTILS_LICENSE = GPLv3+
P8_PORE_BINUTILS_LICENSE_FILES = COPYING3 COPYING.LIB
HOST_P8_PORE_BINUTILS_DEPENDENCIES = host-binutils
P8_PORE_BINUTILS_DIR = $(STAGING_DIR)/p8-pore-binutils
P8_PORE_BINUTILS_BIN = $(STAGING_DIR)/p8-pore-binutils/linux
define HOST_P8_PORE_BINUTILS_BUILD_CMDS
cd $(@D) && \
./configure --prefix=$(P8_PORE_BINUTILS_DIR) \
--exec-prefix=$(P8_PORE_BINUTILS_BIN) \
--target=pore-elf64 && \
make configure-host && \
make LDFLAGS=-all-static
endef
define HOST_P8_PORE_BINUTILS_INSTALL_CMDS
bash -c 'cd $(@D) && make install'
endef
$(eval $(host-generic-package))