move lua from packages/ to trunk in anticipation of upcoming stuff ;)
[openwrt.git] / include / kernel-defaults.mk
index 69ff8fa..55e6cca 100644 (file)
@@ -22,6 +22,7 @@ endif
 KERNEL_MAKEOPTS := -C $(LINUX_DIR) \
        CROSS_COMPILE="$(KERNEL_CROSS)" \
        ARCH="$(LINUX_KARCH)" \
+       KBUILD_HAVE_NLS=no \
        CONFIG_SHELL="$(BASH)"
 
 INITRAMFS_EXTRA_FILES ?= $(GENERIC_PLATFORM_DIR)/image/initramfs-base-files.txt
@@ -32,11 +33,21 @@ endif
 
 # defined in quilt.mk
 Kernel/Patch:=$(Kernel/Patch/Default)
+ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
 define Kernel/Prepare/Default
        bzcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
        $(Kernel/Patch)
        $(if $(QUILT),touch $(LINUX_DIR)/.quilt_used)
 endef
+else
+define Kernel/Prepare/Default
+       mkdir -p $(KERNEL_BUILD_DIR)
+       if [ -d $(LINUX_DIR) ]; then \
+               rmdir $(LINUX_DIR); \
+       fi
+       ln -s $(CONFIG_EXTERNAL_KERNEL_TREE) $(LINUX_DIR)
+endef
+endif
 
 define Kernel/Configure/2.4
        $(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile
This page took 0.021199 seconds and 4 git commands to generate.