Makefile 547 B

1234567891011121314151617181920212223242526272829
  1. GCC_VARIANT:=minimal
  2. GCC_PREPARE=$(if $(CONFIG_USE_MUSL),,1)
  3. include ../common.mk
  4. GCC_CONFIGURE += \
  5. --with-newlib \
  6. --without-headers \
  7. --enable-languages=c \
  8. --disable-libsanitizer \
  9. --disable-libssp \
  10. --disable-shared \
  11. --disable-threads
  12. define Host/Compile
  13. +$(GCC_MAKE) $(HOST_JOBS) -C $(GCC_BUILD_DIR) all-gcc all-target-libgcc
  14. endef
  15. define Host/Install
  16. $(GCC_MAKE) -C $(GCC_BUILD_DIR) install-gcc install-target-libgcc
  17. endef
  18. define Host/Clean
  19. rm -rf \
  20. $(HOST_BUILD_DIR) \
  21. $(GCC_BUILD_DIR)
  22. endef
  23. $(eval $(call HostBuild))