summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2010-09-02 15:31:08 -0700
committerJean-Baptiste Queru <jbq@google.com>2010-09-02 16:15:31 -0700
commit95d023575d09c3f2816cd21787181f83f628c14d (patch)
tree4a57fd9613c7200acf6ccf2c5c27c3c76390544c
parent5b0d6c4cc2745ce8c2ab727b914aa31d397d294a (diff)
downloaddevice_samsung_crespo-95d023575d09c3f2816cd21787181f83f628c14d.zip
device_samsung_crespo-95d023575d09c3f2816cd21787181f83f628c14d.tar.gz
device_samsung_crespo-95d023575d09c3f2816cd21787181f83f628c14d.tar.bz2
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
-rwxr-xr-xAndroidBoard.mk27
-rw-r--r--device.mk10
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 \