0025-tools-compile-flock-before-everything-else.patch 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sun, 24 Apr 2016 08:44:47 +0200
  3. Subject: tools: compile flock before everything else
  4. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
  5. Backport of r48413
  6. diff --git a/tools/Makefile b/tools/Makefile
  7. index 98ce8c5..3402c08 100644
  8. --- a/tools/Makefile
  9. +++ b/tools/Makefile
  10. @@ -26,7 +26,7 @@ endif
  11. tools-$(BUILD_TOOLCHAIN) += gmp mpfr mpc libelf
  12. tools-y += m4 libtool autoconf automake flex bison pkg-config sed mklibs
  13. tools-y += sstrip make-ext4fs e2fsprogs mtd-utils mkimage
  14. -tools-y += firmware-utils patch-image patch quilt yaffs2 flock padjffs2
  15. +tools-y += firmware-utils patch-image patch quilt yaffs2 padjffs2
  16. tools-y += mm-macros missing-macros xz cmake scons bc findutils gengetopt patchelf
  17. tools-$(CONFIG_TARGET_orion_generic) += wrt350nv2-builder upslug2
  18. tools-$(CONFIG_powerpc) += upx
  19. @@ -84,6 +84,9 @@ $(foreach tool, $(tools-y), $(if $(wildcard $(curdir)/$(tool)/patches),$(eval $(
  20. $(foreach tool, $(tools-y), $(eval $(curdir)/$(tool)/compile += $(curdir)/tar/install))
  21. tools-y += tar
  22. +$(curdir)/tar/compile := $(curdir)/flock/install
  23. +tools-y += flock
  24. +
  25. $(curdir)/builddirs := $(tools-y) $(tools-dep) $(tools-)
  26. $(curdir)/builddirs-default := $(tools-y)