Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit a9531db5c9af0d2ccbdf1c16c9bd8eb94edd8e7a 1 parent acd85c8
@rmcc rmcc authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 core/tasks/kernel.mk
View
6 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)
Please sign in to comment.
Something went wrong with that request. Please try again.