1
0

Makefile 525 B

12345678910111213141516171819202122232425262728
  1. GCC_VARIANT:=initial
  2. GCC_PREPARE=$(CONFIG_USE_MUSL)
  3. include ../common.mk
  4. GCC_CONFIGURE += \
  5. --with-newlib \
  6. --with-sysroot=$(TOOLCHAIN_DIR) \
  7. --enable-languages=c \
  8. --disable-shared \
  9. --disable-threads \
  10. define Host/Compile
  11. +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
  12. all-build-libiberty \
  13. all-gcc \
  14. all-target-libgcc
  15. endef
  16. define Host/Install
  17. +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) \
  18. install-gcc \
  19. install-target-libgcc
  20. $(call FixupLibdir,$(TOOLCHAIN_DIR))
  21. endef
  22. $(eval $(call HostBuild))