fix kernel-headers compile
authorFelix Fietkau <nbd@openwrt.org>
Thu, 14 Dec 2006 04:57:55 +0000 (04:57 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 14 Dec 2006 04:57:55 +0000 (04:57 +0000)
SVN-Revision: 5781

toolchain/kernel-headers/Makefile

index d2d9c3dd32930d322cefda7d4c44da3629033f30..d823f196c286d2c90016ce8b1b21d78c506b6334 100644 (file)
@@ -31,11 +31,13 @@ define Build/Configure/powerpc
        mv $(PKG_BUILD_DIR)/include/asm-powerpc $(PKG_BUILD_DIR)/include/asm-ppc
 endef
 
-define Build/Configure
-       yes '' | $(MAKE) -C $(PKG_BUILD_DIR) \
+KMAKE := $(MAKE) -C $(PKG_BUILD_DIR) \
                ARCH=$(LINUX_KARCH) \
-               CONFIG_SHELL=$(BASH) \
-               oldconfig include/linux/version.h include/asm
+               CONFIG_SHELL=$(BASH)
+
+define Build/Configure
+       yes '' | $(KMAKE) oldconfig
+       $(KMAKE) include/linux/version.h include/asm
        $(call Build/Configure/$(ARCH))
 endef