0001-tools-Makefile-fix-host-tools-build-dependencies.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sat, 26 Jul 2014 06:10:23 +0200
  3. Subject: tools/Makefile: fix host tools build dependencies
  4. diff --git a/tools/Makefile b/tools/Makefile
  5. index d2fe2ff..c6cded8 100644
  6. --- a/tools/Makefile
  7. +++ b/tools/Makefile
  8. @@ -95,10 +95,16 @@ define PrepareStaging
  9. endef
  10. # preparatory work
  11. +ifneq ($(ARCH),)
  12. +staging_prepared = $(STAGING_DIR)/.prepared
  13. +
  14. $(STAGING_DIR)/.prepared: $(TMP_DIR)/.build
  15. $(call PrepareStaging,$(STAGING_DIR))
  16. mkdir -p $(BUILD_DIR)/stamp
  17. touch $@
  18. +else
  19. +staging_prepared :=
  20. +endif
  21. $(STAGING_DIR_HOST)/.prepared: $(TMP_DIR)/.build
  22. $(call PrepareStaging,$(STAGING_DIR_HOST))
  23. @@ -110,8 +116,8 @@ $(STAGING_DIR_HOST)/.prepared: $(TMP_DIR)/.build
  24. endif
  25. -$(curdir)//prepare = $(STAGING_DIR)/.prepared $(STAGING_DIR_HOST)/.prepared
  26. -$(curdir)//compile = $(STAGING_DIR)/.prepared $(STAGING_DIR_HOST)/.prepared
  27. +$(curdir)//prepare = $(staging_prepared) $(STAGING_DIR_HOST)/.prepared
  28. +$(curdir)//compile = $(staging_prepared) $(STAGING_DIR_HOST)/.prepared
  29. # prerequisites for the individual targets
  30. $(curdir)/ := .config prereq