• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

build


Commit MetaInfo

Revisãod60b379e2e9e1fe97d2e733a9999a86f9818241b (tree)
Hora2011-12-29 15:22:52
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Mensagem de Log

kernel.mk: allow to specify KERNEL_DIR

Mudança Sumário

Diff

--- a/core/kernel.mk
+++ b/core/kernel.mk
@@ -10,6 +10,8 @@
1010
1111 ifeq ($(TARGET_PREBUILT_KERNEL),)
1212
13+KERNEL_DIR ?= kernel
14+
1315 ifeq ($(TARGET_ARCH),x86)
1416 KERNEL_TARGET := bzImage
1517 TARGET_KERNEL_CONFIG ?= android-x86_defconfig
@@ -20,7 +22,7 @@ TARGET_KERNEL_CONFIG ?= goldfish_defconfig
2022 endif
2123
2224 KBUILD_OUTPUT := $(CURDIR)/$(TARGET_OUT_INTERMEDIATES)/kernel
23-mk_kernel := + $(hide) $(MAKE) -C kernel O=$(KBUILD_OUTPUT) ARCH=$(TARGET_ARCH) $(if $(SHOW_COMMANDS),V=1)
25+mk_kernel := + $(hide) $(MAKE) -C $(KERNEL_DIR) O=$(KBUILD_OUTPUT) ARCH=$(TARGET_ARCH) $(if $(SHOW_COMMANDS),V=1)
2426 ifneq ($(TARGET_ARCH),$(HOST_ARCH))
2527 mk_kernel += CROSS_COMPILE=$(CURDIR)/$(TARGET_TOOLS_PREFIX)
2628 endif
@@ -28,7 +30,7 @@ endif
2830 ifneq ($(wildcard $(TARGET_KERNEL_CONFIG)),)
2931 KERNEL_CONFIG_FILE := $(TARGET_KERNEL_CONFIG)
3032 else
31-KERNEL_CONFIG_FILE := kernel/arch/$(TARGET_ARCH)/configs/$(TARGET_KERNEL_CONFIG)
33+KERNEL_CONFIG_FILE := $(KERNEL_DIR)/arch/$(TARGET_ARCH)/configs/$(TARGET_KERNEL_CONFIG)
3234 endif
3335 MOD_ENABLED := $(shell grep ^CONFIG_MODULES=y $(KERNEL_CONFIG_FILE))
3436 FIRMWARE_ENABLED := $(shell grep ^CONFIG_FIRMWARE_IN_KERNEL=y $(KERNEL_CONFIG_FILE))
@@ -54,8 +56,8 @@ $(INSTALLED_KERNEL_TARGET): $(KERNEL_DOTCONFIG_FILE)
5456 # based on broadcomsetup.sh of Kyle Evans
5557 WL_ENABLED := $(shell grep ^CONFIG_WL=[my] $(KERNEL_CONFIG_FILE))
5658 WL_PATH := drivers/net/wireless/wl
57-WL_SRC := kernel/$(WL_PATH)/hybrid-portsrc_x86_32-v5_100_82_112.tar.gz
58-WL_MK := kernel/$(WL_PATH)/Makefile
59+WL_SRC := $(KERNEL_DIR)/$(WL_PATH)/hybrid-portsrc_x86_32-v5_100_82_112.tar.gz
60+WL_MK := $(KERNEL_DIR)/$(WL_PATH)/Makefile
5961 $(WL_SRC):
6062 @echo Downloading $(@F)...
6163 $(hide) curl http://www.broadcom.com/docs/linux_sta/$(@F) > $@