Permalink
Browse files

kernel: Change path to kernel/<vendor>/<device>

Derive the kernel path from the device's own path (just replace "device"
with "kernel")

Change-Id: Idd44a0489e1ce280adf5ec4d9cfe2385c75dd115
  • Loading branch information...
1 parent acd85c8 commit a9531db5c9af0d2ccbdf1c16c9bd8eb94edd8e7a @rmcc rmcc committed Apr 16, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 core/tasks/kernel.mk
@@ -1,8 +1,10 @@
#Android makefile to build kernel as a part of Android Build
+TARGET_AUTO_KDIR := $(shell echo $(TARGET_DEVICE_DIR) | sed -e 's/^device/kernel/g')
+
## Externally influenced variables
-# kernel location - optional, defaults to kernel/<board>
-TARGET_KERNEL_SOURCE ?= kernel/$(TARGET_BOOTLOADER_BOARD_NAME)
+# kernel location - optional, defaults to kernel/<vendor>/<device>
+TARGET_KERNEL_SOURCE ?= $(TARGET_AUTO_KDIR)
KERNEL_SRC := $(TARGET_KERNEL_SOURCE)
# kernel configuration - mandatory
KERNEL_DEFCONFIG := $(TARGET_KERNEL_CONFIG)

0 comments on commit a9531db

Please sign in to comment.