mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 18:17:32 +02:00
add external kernel tree support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@9584 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3b8c7ad8bb
commit
43440b4f1b
@ -142,6 +142,11 @@ config SOURCE_FEEDS_REV
|
|||||||
prompt "Revision for the source feed svn checkout" if BUILDOPTS
|
prompt "Revision for the source feed svn checkout" if BUILDOPTS
|
||||||
default ""
|
default ""
|
||||||
|
|
||||||
|
config EXTERNAL_KERNEL_TREE
|
||||||
|
string
|
||||||
|
prompt "Use external kernel tree" if DEVEL
|
||||||
|
default ""
|
||||||
|
|
||||||
|
|
||||||
source "toolchain/Config.in"
|
source "toolchain/Config.in"
|
||||||
menuconfig BUILDSYSTEM_SETTINGS
|
menuconfig BUILDSYSTEM_SETTINGS
|
||||||
|
@ -32,11 +32,21 @@ endif
|
|||||||
|
|
||||||
# defined in quilt.mk
|
# defined in quilt.mk
|
||||||
Kernel/Patch:=$(Kernel/Patch/Default)
|
Kernel/Patch:=$(Kernel/Patch/Default)
|
||||||
|
ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
|
||||||
define Kernel/Prepare/Default
|
define Kernel/Prepare/Default
|
||||||
bzcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
|
bzcat $(DL_DIR)/$(LINUX_SOURCE) | $(TAR) -C $(KERNEL_BUILD_DIR) $(TAR_OPTIONS)
|
||||||
$(Kernel/Patch)
|
$(Kernel/Patch)
|
||||||
$(if $(QUILT),touch $(LINUX_DIR)/.quilt_used)
|
$(if $(QUILT),touch $(LINUX_DIR)/.quilt_used)
|
||||||
endef
|
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
|
define Kernel/Configure/2.4
|
||||||
$(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile
|
$(SED) "s,\-mcpu=,\-mtune=,g;" $(LINUX_DIR)/arch/mips/Makefile
|
||||||
|
Loading…
Reference in New Issue
Block a user