blob: 070e4dcdbe4b4fec5d6cd4c11815f83b0fa527ca [file] [log] [blame]
################################################################################
#
# p8-pore-binutils
#
################################################################################
P8_PORE_BINUTILS_VERSION ?= 1d6a41d5a5104ce9bc8b6ad59f8e58c3a50824a4
P8_PORE_BINUTILS_SITE ?= $(call github,open-power,p8-pore-binutils,$(P8_PORE_BINUTILS_VERSION))
P8_PORE_BINUTILS_LICENSE = GPLv3+
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))