support inline kernel building

This commit is contained in:
milaq 2012-06-11 01:33:43 +02:00
parent 3dae885c92
commit 8b0d4e4f2d
2 changed files with 4 additions and 20 deletions

View File

@ -125,6 +125,10 @@ BOARD_FLASH_BLOCK_SIZE := 131072
TARGET_RELEASETOOLS_EXTENSIONS := device/htc/common
# Define kernel config for inline building
TARGET_KERNEL_CONFIG := htcleo_defconfig
TARGET_PREBUILT_KERNEL := device/htc/leo/prebuilt/kernel
# to enable the GPS HAL

20
leo.mk
View File

@ -228,30 +228,10 @@ PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/ppp/ppp:system/ppp \
device/htc/leo/prebuilt/ppp/options:system/etc/ppp/options
# Kernel Modules
PRODUCT_COPY_FILES += $(shell \
find device/htc/leo/prebuilt/modules -name '*.ko' \
| sed -r 's/^\/?(.*\/)([^/ ]+)$$/\1\2:system\/lib\/modules\/\2/' \
| tr '\n' ' ')
# kernel
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/kernel:kernel
ifeq ($(TARGET_PREBUILT_KERNEL),)
LOCAL_KERNEL := device/htc/leo/prebuilt/kernel
else
LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
endif
# The gps config appropriate for this device
PRODUCT_COPY_FILES += \
device/htc/leo/prebuilt/gps.conf:system/etc/gps.conf
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# stuff common to all HTC phones
$(call inherit-product, device/htc/common/common.mk)