blob: 2ebdf5b855d223ebb73d53e5fc3225ac91b121e3 [file] [log] [blame]
################################################################################
#
# ppe42-gcc
#
################################################################################
PPE42_GCC_VERSION ?= d8a1bac8634033a3edd4e9a22455f97318718f43
PPE42_GCC_SITE ?= $(call github,open-power,ppe42-gcc,$(PPE42_GCC_VERSION))
PPE42_GCC_LICENSE = GPLv3+
PPE42_GCC_DEPENDENCIES = ppe42-binutils
PPE42_GCC_DIR = $(STAGING_DIR)/ppe42-binutils
PPE42_GCC_BIN = $(STAGING_DIR)/ppe42-binutils/linux
define HOST_PPE42_GCC_BUILD_CMDS
cd $(@D) && \
./configure --prefix=$(PPE42_GCC_DIR) \
--exec-prefix=$(PPE42_GCC_BIN) \
--target=powerpc-eabi \
--without-headers \
--with-newlib \
--with-gnu-as \
--with-gnu-ld \
--with-gmp=$(HOST_DIR)/usr \
--with-mpfr=$(HOST_DIR)/usr \
&& \
make configure-host && \
make all-gcc
endef
define HOST_PPE42_GCC_INSTALL_CMDS
bash -c 'cd $(@D) && make install-gcc'
endef
$(eval $(host-generic-package))