Last change
on this file since 349 was
349,
checked in by ehem, 10 years ago
|
Rework the openwrt/patch target. Instead of patching with a hand-rolled
list of patches, scan the appropriate directories for patch files. Patch
filenames now MUST match the pattern [0-9]+(-[0-9]*:[0-9]*)_<name>. The
lead digits specify order of application, lower numbers are applied
first. If present, the two subsequent numbers indicate a range of
Subversion revisions that a given patch applies to. If a number is
absent, the range is interpreted to include all older revisions or all
newer revisions as appropriate.
Adjust openwrt/unpatch target to match (patches are now removed in
reverse order). Adjust the generate script to match.
|
File size:
1.4 KB
|
Line | |
---|
1 | --- include/kernel-defaults.mk.org 2010-01-24 18:54:27.180961698 +0100 |
---|
2 | +++ include/kernel-defaults.mk 2010-01-24 18:54:16.741060956 +0100 |
---|
3 | @@ -96,7 +96,9 @@ |
---|
4 | -$(_SINGLE)$(MAKE) $(KERNEL_MAKEOPTS) oldconfig prepare scripts |
---|
5 | endef |
---|
6 | define Kernel/Configure/Default |
---|
7 | - $(LINUX_CONFCMD) > $(LINUX_DIR)/.config.target |
---|
8 | + # DebWrt: merge our custom config |
---|
9 | + $(LINUX_CONFCMD) > $(LINUX_DIR)/.config.target.default |
---|
10 | + $(SCRIPT_DIR)/kconfig.pl + $(LINUX_DIR)/.config.target.default $(TOPDIR)/.config.debwrt > $(LINUX_DIR)/.config.target |
---|
11 | # copy CONFIG_KERNEL_* settings over to .config.target |
---|
12 | awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIG_KERNEL_","CONFIG_");print}' $(TOPDIR)/.config >> $(LINUX_DIR)/.config.target |
---|
13 | echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> $(LINUX_DIR)/.config.target |
---|
14 | @@ -113,7 +115,12 @@ |
---|
15 | |
---|
16 | define Kernel/CompileModules/Default |
---|
17 | rm -f $(LINUX_DIR)/vmlinux $(LINUX_DIR)/System.map |
---|
18 | - +$(MAKE) $(KERNEL_MAKEOPTS) modules |
---|
19 | + # DebWrt make modules install |
---|
20 | + -mkdir -p $(TMP_DIR)/modules |
---|
21 | + +$(MAKE) $(KERNEL_MAKEOPTS) modules modules_install INSTALL_MOD_PATH=$(TMP_DIR)/modules |
---|
22 | + echo "OPENWRT_LINUX_VERSION=$(LINUX_VERSION)" >> $(TOPDIR)/.openwrt_env |
---|
23 | + echo "OPENWRT_LINUX_UNAME_VERSION=$(LINUX_UNAME_VERSION)" >> $(TOPDIR)/.openwrt_env |
---|
24 | + echo "OPENWRT_LINUX_DIR=$(LINUX_DIR)" >> $(TOPDIR)/.openwrt_env |
---|
25 | endef |
---|
26 | |
---|
27 | OBJCOPY_STRIP = -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id |
---|
Note: See
TracBrowser
for help on using the repository browser.