source: trunk/openwrt/patches/lede/all/021_03_install_kernel_modules_and_merge_debwrt_config @ 924

Last change on this file since 924 was 924, checked in by amain, 2 years ago

lede: update patches, split patch 021_install_kernel_modules_and_merge_debwrt_config

File size: 1.8 KB
Line 
1--- trunk-HEAD/include/kernel-defaults.mk.org   2017-01-26 19:03:39.208569377 +0100
2+++ trunk-HEAD/include/kernel-defaults.mk       2017-01-26 19:04:24.875739657 +0100
3@@ -136,6 +136,45 @@
4        @echo
5        $(SCRIPT_DIR)/package-metadata.pl kconfig $(TMP_DIR)/.packageinfo $(TOPDIR)/.config $(KERNEL_PATCHVER) > $(LINUX_DIR)/.config.override
6        $(SCRIPT_DIR)/kconfig.pl 'm+' '+' $(LINUX_DIR)/.config.target /dev/null $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config.set
7+       @echo
8+       @echo
9+       @echo ">>> KCONFIG"
10+       @echo ">>> from:  LINUX_DIR/.config.target, LINUX_DIR/.config.override"
11+       @echo ">>> to  :  LINUX_DIR/.config"
12+       @echo
13+       $(SCRIPT_DIR)/kconfig.pl 'm+' '+' $(LINUX_DIR)/.config.target /dev/null $(LINUX_DIR)/.config.override > $(LINUX_DIR)/.config
14+       @echo
15+       @echo
16+       @echo ">>> Kernel oldnoconfig [openwrt] (1ste pass)"
17+       @echo
18+       +$(MAKE) $(KERNEL_MAKEOPTS) oldnoconfig
19+       mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.openwrt
20+       sort $(LINUX_DIR)/.config.openwrt | grep -v '#' > $(LINUX_DIR)/.config.1
21+       @echo
22+       @echo
23+       @echo ">>> Merge DebWrt config with kernel config"
24+       @echo ">>> from: TOPDIR/.config.debwrt, LINUX_DIR/.config.openwrt"
25+       @echo ">>> to  : LINUX_DIR/.config"
26+       @echo
27+       $(SCRIPT_DIR)/kconfig.pl + $(LINUX_DIR)/.config.openwrt $(TOPDIR)/.config.debwrt > $(LINUX_DIR)/.config
28+       @echo
29+       @echo
30+       @echo ">>> Kernel oldnoconfig [debwrt] (2nd pass)"
31+       @echo
32+       +$(MAKE) $(KERNEL_MAKEOPTS) oldnoconfig
33+       sort $(LINUX_DIR)/.config | grep -v '^#' > $(LINUX_DIR)/.config.2
34+       @echo
35+       @echo ">>>    start diff openwrt versus debwrt"
36+       @echo
37+       @echo
38+       @echo ">>> Move LINUX_DIR/.config"
39+       @echo ">>> to: LINUX_DIR/.config.set"
40+       @echo
41+       mv $(LINUX_DIR)/.config $(LINUX_DIR)/.config.set
42+       @echo
43+       @echo
44+       @echo ">>> Set no initramfs"
45+       @echo
46        $(call Kernel/SetNoInitramfs)
47        rm -rf $(KERNEL_BUILD_DIR)/modules
48        cmp -s $(LINUX_DIR)/.config.set $(LINUX_DIR)/.config.prev || { \
Note: See TracBrowser for help on using the repository browser.