diff options
author | Eugene Konev <ejka@openwrt.org> | 2007-11-20 13:21:01 +0000 |
---|---|---|
committer | Eugene Konev <ejka@openwrt.org> | 2007-11-20 13:21:01 +0000 |
commit | 3436dab5116a89d2d05247905dd4c4101fe7024d (patch) | |
tree | a5015a6117ba5c9a48e4043cd98be6cce3bb8083 /include | |
parent | b03c1401f616809522ac22b28e052dd3bee6f1a4 (diff) | |
download | master-187ad058-3436dab5116a89d2d05247905dd4c4101fe7024d.tar.gz master-187ad058-3436dab5116a89d2d05247905dd4c4101fe7024d.tar.bz2 master-187ad058-3436dab5116a89d2d05247905dd4c4101fe7024d.zip |
add external kernel tree support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9584 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel-defaults.mk | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk index 69ff8fa6f0..1e0b28b2ed 100644 --- a/include/kernel-defaults.mk +++ b/include/kernel-defaults.mk @@ -32,11 +32,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 |