aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-11-27 02:00:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-11-27 02:00:09 +0000
commitddcce99fc380eaa2d32665e53a54b768b070e28b (patch)
tree7fb20d26e123c478a526d02d53b47bc70b9a3858 /include
parent64828af3bd6f5baed241751a2c97670a7ec148d9 (diff)
downloadupstream-ddcce99fc380eaa2d32665e53a54b768b070e28b.tar.gz
upstream-ddcce99fc380eaa2d32665e53a54b768b070e28b.tar.bz2
upstream-ddcce99fc380eaa2d32665e53a54b768b070e28b.zip
minor cleanup and freebsd compile fix
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5654 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r--include/kernel-build.mk10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/kernel-build.mk b/include/kernel-build.mk
index 8462319f0a..2e6745084b 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