diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-11-27 02:00:09 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-11-27 02:00:09 +0000 |
commit | 368dc17432eb7c367a892c4b604bdd77b700c487 (patch) | |
tree | e01f93fc225e6e656582e4252b2a0675beaf53df | |
parent | c962551b3ae579fe4d97082ebb4ebac3592bb29d (diff) | |
download | mtk-20170518-368dc17432eb7c367a892c4b604bdd77b700c487.zip mtk-20170518-368dc17432eb7c367a892c4b604bdd77b700c487.tar.gz mtk-20170518-368dc17432eb7c367a892c4b604bdd77b700c487.tar.bz2 |
minor cleanup and freebsd compile fix
SVN-Revision: 5654
-rw-r--r-- | include/kernel-build.mk | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk index 8462319..2e67450 100644 --- a/include/kernel-build.mk +++ b/include/kernel-build.mk @@ -70,14 +70,18 @@ define Kernel/Prepare $(call Kernel/Prepare/Default) endef +KERNEL_MAKEOPTS := -C $(LINUX_DIR) \ + CROSS_COMPILE="$(KERNEL_CROSS)" \ + ARCH="$(LINUX_KARCH)" \ + CONFIG_SHELL="$(BASH)" define Kernel/Configure/2.4 $(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile - $(MAKE) -C $(LINUX_DIR) CROSS_COMPILE="$(KERNEL_CROSS)" CC="$(KERNEL_CC)" ARCH=$(LINUX_KARCH) oldconfig include/linux/compile.h include/linux/version.h - $(MAKE) -C $(LINUX_DIR) CROSS_COMPILE="$(KERNEL_CROSS)" ARCH=$(LINUX_KARCH) dep + $(MAKE) $(KERNEL_MAKEOPTS) CC="$(KERNEL_CC)" oldconfig include/linux/compile.h include/linux/version.h + $(MAKE) $(KERNEL_MAKEOPTS) dep endef define Kernel/Configure/2.6 - $(MAKE) -C $(LINUX_DIR) CROSS_COMPILE="$(KERNEL_CROSS)" CC="$(KERNEL_CC)" ARCH=$(LINUX_KARCH) oldconfig prepare scripts + $(MAKE) $(KERNEL_MAKEOPTS) CC="$(KERNEL_CC)" oldconfig prepare scripts endef define Kernel/Configure/Default @$(CP) $(LINUX_CONFIG) $(LINUX_DIR)/.config |