From 95d023575d09c3f2816cd21787181f83f628c14d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Queru Date: Thu, 2 Sep 2010 15:31:08 -0700 Subject: Handle .rc and .kl files as copied files. This is the mechanism we used for passion without a problem. Handling them in AndroidBoard.mk was a relic of ancient times. Change-Id: I554ae680a65b430887a16bc6abf667053e4944ee --- AndroidBoard.mk | 27 --------------------------- device.mk | 10 ++++++++++ 2 files changed, 10 insertions(+), 27 deletions(-) diff --git a/AndroidBoard.mk b/AndroidBoard.mk index f4e9b31..4ae216c 100755 --- a/AndroidBoard.mk +++ b/AndroidBoard.mk @@ -14,40 +14,13 @@ LOCAL_PATH := $(call my-dir) -file := $(TARGET_OUT_KEYLAYOUT)/s3c-keypad.kl -ALL_PREBUILT += $(file) -$(file) : $(LOCAL_PATH)/s3c-keypad.kl | $(ACP) - $(transform-prebuilt-to-target) - include $(CLEAR_VARS) LOCAL_SRC_FILES := s3c-keypad.kcm include $(BUILD_KEY_CHAR_MAP) -file := $(TARGET_OUT_KEYLAYOUT)/melfas-touchkey.kl -ALL_PREBUILT += $(file) -$(file) : $(LOCAL_PATH)/melfas-touchkey.kl | $(ACP) - $(transform-prebuilt-to-target) - include $(CLEAR_VARS) LOCAL_SRC_FILES := melfas-touchkey.kcm include $(BUILD_KEY_CHAR_MAP) -include $(CLEAR_VARS) -target_init_rc_file := $(TARGET_ROOT_OUT)/init.rc -$(target_init_rc_file) : $(LOCAL_PATH)/init.rc | $(ACP) - $(transform-prebuilt-to-target) -ALL_PREBUILT += $(target_init_rc_file) - -target_hw_init_rc_file := $(TARGET_ROOT_OUT)/init.smdkc110.rc -$(target_hw_init_rc_file) : $(LOCAL_PATH)/init.smdkc110.rc | $(ACP) - $(transform-prebuilt-to-target) -ALL_PREBUILT += $(target_hw_init_rc_file) - -$(INSTALLED_RAMDISK_TARGET): $(target_init_rc_file) $(target_hw_init_rc_file) - -# to build the bootloader you need the common boot stuff, -# the architecture specific stuff, and the board specific stuff -# include bootloader/legacy/Android.mk - # Use the non-open-source parts, if they're present -include vendor/samsung/crespo/AndroidBoardVendor.mk diff --git a/device.mk b/device.mk index 33e2933..69ab91b 100644 --- a/device.mk +++ b/device.mk @@ -48,6 +48,16 @@ PRODUCT_COPY_FILES := \ device/samsung/crespo/vold.fstab:system/etc/vold.fstab \ device/samsung/crespo/egl.cfg:system/lib/egl/egl.cfg +# Init files +PRODUCT_COPY_FILES += \ + device/samsung/crespo/init.rc:root/init.rc \ + device/samsung/crespo/init.smdkc110.rc:root/init.smdkc110.rc + +# Prebuilt keymaps +PRODUCT_COPY_FILES += \ + device/samsung/crespo/s3c-keypad.kl:system/usr/keylayout/s3c-keypad.kl \ + device/samsung/crespo/melfas-touchkey.kl:system/usr/keylayout/melfas-touchkey.kl + # These are the hardware-specific features PRODUCT_COPY_FILES += \ frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ -- cgit v1.1