2010-07-20 20:57:21 +00:00
|
|
|
GCC_VARIANT:=initial
|
2016-07-07 14:12:30 +02:00
|
|
|
GCC_PREPARE=$(CONFIG_USE_MUSL)
|
2010-07-20 20:57:21 +00:00
|
|
|
|
|
|
|
include ../common.mk
|
|
|
|
|
|
|
|
GCC_CONFIGURE += \
|
|
|
|
--with-newlib \
|
2010-08-19 12:49:51 +00:00
|
|
|
--with-sysroot=$(TOOLCHAIN_DIR) \
|
2010-07-20 20:57:21 +00:00
|
|
|
--enable-languages=c \
|
|
|
|
--disable-shared \
|
|
|
|
--disable-threads \
|
|
|
|
|
|
|
|
define Host/Compile
|
2012-09-23 09:50:01 +00:00
|
|
|
+$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
|
2010-07-20 20:57:21 +00:00
|
|
|
all-build-libiberty \
|
|
|
|
all-gcc \
|
2013-04-01 15:43:23 +00:00
|
|
|
all-target-libgcc
|
2010-07-20 20:57:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Host/Install
|
2017-02-09 13:35:07 +01:00
|
|
|
+$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
|
2010-07-20 20:57:21 +00:00
|
|
|
install-gcc \
|
2013-04-01 15:43:23 +00:00
|
|
|
install-target-libgcc
|
2010-07-20 20:57:21 +00:00
|
|
|
|
2023-02-07 21:33:33 +01:00
|
|
|
$(call FixupLibdir,$(TOOLCHAIN_DIR))
|
2010-07-20 20:57:21 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call HostBuild))
|