kernel: split patches folder up into backport, pending and hack folders
[openwrt/openwrt.git] / target / linux / generic / hack-4.9 / 207-disable-modorder.patch
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
6 It is not needed for anything on the system and skipping this saves some
7 build time, especially in cases where there is nothing to do.
8
9 lede-commit: afc1675833a7bf5df094f59f7250369520646d04
10 Signed-off-by: Felix Fietkau <nbd@nbd.name>
11 ---
12 Makefile | 2 --
13 scripts/Makefile.build | 2 +-
14 2 files changed, 1 insertion(+), 3 deletions(-)
15
16 diff --git a/Makefile b/Makefile
17 index 984eb5907d00..cce1c68e48ae 100644
18 --- a/Makefile
19 +++ b/Makefile
20 @@ -1193,7 +1193,6 @@ all: modules
21
22 PHONY += modules
23 modules: $(vmlinux-dirs) $(if $(KBUILD_BUILTIN),vmlinux) modules.builtin
24 - $(Q)$(AWK) '!x[$$0]++' $(vmlinux-dirs:%=$(objtree)/%/modules.order) > $(objtree)/modules.order
25 @$(kecho) ' Building modules, stage 2.';
26 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
27 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.fwinst obj=firmware __fw_modbuild
28 @@ -1223,7 +1222,6 @@ _modinst_:
29 rm -f $(MODLIB)/build ; \
30 ln -s $(CURDIR) $(MODLIB)/build ; \
31 fi
32 - @cp -f $(objtree)/modules.order $(MODLIB)/
33 @cp -f $(objtree)/modules.builtin $(MODLIB)/
34 $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modinst
35
36 diff --git a/scripts/Makefile.build b/scripts/Makefile.build
37 index 7675d11ee65e..108d73273788 100644
38 --- a/scripts/Makefile.build
39 +++ b/scripts/Makefile.build
40 @@ -93,7 +93,7 @@ modorder-target := $(obj)/modules.order
41 # We keep a list of all modules in $(MODVERDIR)
42
43 __build: $(if $(KBUILD_BUILTIN),$(builtin-target) $(lib-target) $(extra-y)) \
44 - $(if $(KBUILD_MODULES),$(obj-m) $(modorder-target)) \
45 + $(if $(KBUILD_MODULES),$(obj-m)) \
46 $(subdir-ym) $(always)
47 @:
48
49 --
50 2.11.0
51