blob: 8aa73ceb0187a2ab172c3880d4cdf552fa9fe778 [file] [log] [blame]
################################################################################
#
# ppe42-gcc
#
################################################################################
PPE42_GCC_VERSION ?= b4772a9fa65ea0dd812f8f305ce157bb1cb5ab4a
PPE42_GCC_SITE ?= $(call github,open-power,ppe42-gcc,$(PPE42_GCC_VERSION))
PPE42_GCC_LICENSE = GPLv3+
PPE42_GCC_DEPENDENCIES = ppe42-binutils gmp mpfr mpc
HOST_PPE42_GCC_DEPENDENCIES = host-ppe42-binutils host-gmp host-mpfr host-mpc
PPE42_GCC_PROVIDES = ppe42-toolchain
PPE42_GCC_DIR = $(HOST_DIR)/$(PPE42_TOOLCHAIN_DIR)
PPE42_GCC_BIN = $(HOST_DIR)/$(PPE42_TOOLCHAIN_BIN)
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) CFLAGS=-Wno-error all-gcc
endef
define HOST_PPE42_GCC_INSTALL_CMDS
bash -c 'cd $(@D) && make install-gcc'
endef
$(eval $(host-generic-package))