1
0

Makefile 570 B

123456789101112131415161718192021222324
  1. PATH_PREFIX=..
  2. include ../common.mk
  3. HOST_STAMP_BUILT:=$(HOST_BUILD_DIR)/.utils_built
  4. HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.uclibc_utils_installed
  5. define Host/Compile
  6. $(SED) 's,^CROSS=.*,CROSS=$(TARGET_CROSS),g' $(HOST_BUILD_DIR)/Rules.mak
  7. $(UCLIBC_MAKE) PREFIX= utils
  8. endef
  9. define Host/Install
  10. $(INSTALL_DIR) $(TOOLCHAIN_DIR)/bin
  11. $(INSTALL_BIN) \
  12. $(HOST_BUILD_DIR)/utils/ldd \
  13. $(TOOLCHAIN_DIR)/bin/
  14. $(INSTALL_DIR) $(TOOLCHAIN_DIR)/sbin
  15. $(INSTALL_BIN) \
  16. $(HOST_BUILD_DIR)/utils/ldconfig \
  17. $(TOOLCHAIN_DIR)/sbin/
  18. endef
  19. $(eval $(call HostBuild))