summaryrefslogtreecommitdiff
path: root/include/kernel-defaults.mk
diff options
context:
space:
mode:
authorEugene Konev <ejka@imfi.kspu.ru>2007-11-20 13:21:01 +0000
committerEugene Konev <ejka@imfi.kspu.ru>2007-11-20 13:21:01 +0000
commit4735a0f5fedcdc13ceff5ca2727471f704b2e197 (patch)
treef7d1e0a76c6535622b3677ebc8833badd47bec06 /include/kernel-defaults.mk
parent85b17a4e9e515a74095ecc691e60fd62e4819a9d (diff)
downloadmtk-20170518-4735a0f5fedcdc13ceff5ca2727471f704b2e197.zip
mtk-20170518-4735a0f5fedcdc13ceff5ca2727471f704b2e197.tar.gz
mtk-20170518-4735a0f5fedcdc13ceff5ca2727471f704b2e197.tar.bz2
add external kernel tree support
SVN-Revision: 9584
Diffstat (limited to 'include/kernel-defaults.mk')
-rw-r--r--include/kernel-defaults.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/kernel-defaults.mk b/include/kernel-defaults.mk
index 69ff8fa..1e0b28b 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