1
0

207-disable-modorder.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. From c9ef4ab0f54356ee9f91d9676ea0ec123840ddc7 Mon Sep 17 00:00:00 2001
  2. From: Felix Fietkau <nbd@nbd.name>
  3. Date: Fri, 7 Jul 2017 16:57:33 +0200
  4. Subject: kernel: do not build modules.order
  5. It is not needed for anything on the system and skipping this saves some
  6. build time, especially in cases where there is nothing to do.
  7. lede-commit: afc1675833a7bf5df094f59f7250369520646d04
  8. Signed-off-by: Felix Fietkau <nbd@nbd.name>
  9. ---
  10. Makefile | 2 --
  11. scripts/Makefile.build | 2 +-
  12. 2 files changed, 1 insertion(+), 3 deletions(-)
  13. --- a/Makefile
  14. +++ b/Makefile
  15. @@ -1275,7 +1275,6 @@ endif
  16. PHONY += modules
  17. modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin
  18. - $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
  19. @$(kecho) ' Building modules, stage 2.';
  20. $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
  21. @@ -1304,7 +1303,6 @@ _modinst_:
  22. rm -f $(MODLIB)/build ; \
  23. ln -s $(CURDIR) $(MODLIB)/build ; \
  24. fi
  25. - @cp -f $(objtree)/modules.order $(MODLIB)/
  26. @cp -f $(objtree)/modules.builtin $(MODLIB)/
  27. $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
  28. --- a/scripts/Makefile.build
  29. +++ b/scripts/Makefile.build
  30. @@ -94,7 +94,7 @@ modorder-target := $(obj)/modules.order
  31. # We keep a list of all modules in $(MODVERDIR)
  32. __build: $(if $(KBUILD_BUILTIN),$(builtin-target) $(lib-target) $(extra-y)) \
  33. - $(if $(KBUILD_MODULES),$(obj-m) $(modorder-target)) \
  34. + $(if $(KBUILD_MODULES),$(obj-m)) \
  35. $(subdir-ym) $(always)
  36. @: