aboutsummaryrefslogtreecommitdiffstats
path: root/rootdir/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rootdir/Android.mk')
-rw-r--r--rootdir/Android.mk42
1 files changed, 22 insertions, 20 deletions
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
index 4d6686f..ea48207 100644
--- a/rootdir/Android.mk
+++ b/rootdir/Android.mk
@@ -3,17 +3,35 @@ include $(CLEAR_VARS)
# boot.img parts
include $(CLEAR_VARS)
-ifneq ($(filter p3100 p3110,$(TARGET_DEVICE)),)
LOCAL_MODULE := fstab.espresso
-else
-LOCAL_MODULE := fstab.espresso10
-endif
LOCAL_MODULE_TAGS := optional eng
LOCAL_MODULE_CLASS := ETC
LOCAL_SRC_FILES := etc/fstab.tab2
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
+ifneq ($(filter p5100 p5110,$(TARGET_DEVICE)),)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := fstab.espresso10
+LOCAL_MODULE_TAGS := optional eng
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+
+include $(BUILD_SYSTEM)/base_rules.mk
+
+$(LOCAL_BUILT_MODULE): TARGET := $(TARGET_ROOT_OUT)/fstab.espresso
+$(LOCAL_BUILT_MODULE): SYMLINK := $(TARGET_ROOT_OUT)/$(LOCAL_MODULE)
+$(LOCAL_BUILT_MODULE):
+ $(hide) echo "Symlink: $(SYMLINK) -> $(TARGET)"
+ $(hide) mkdir -p $(dir $@)
+ $(hide) mkdir -p $(dir $(SYMLINK))
+ $(hide) rm -rf $@
+ $(hide) rm -rf $(SYMLINK)
+ $(hide) ln -sf $(TARGET) $(SYMLINK)
+ $(hide) touch $@
+endif
+
include $(CLEAR_VARS)
ifneq ($(filter p3100 p3110,$(TARGET_DEVICE)),)
LOCAL_MODULE := init.espresso.rc
@@ -50,22 +68,6 @@ LOCAL_SRC_FILES := etc/ueventd.tab2.rc
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
-include $(CLEAR_VARS)
-ifneq ($(filter p3100 p3110,$(TARGET_DEVICE)),)
-LOCAL_MODULE := init.device.espresso.rc
-else
-LOCAL_MODULE := init.device.espresso10.rc
-endif
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-ifneq ($(filter p3100 p3110,$(TARGET_DEVICE)),)
-LOCAL_SRC_FILES := etc/init.device.espresso.rc
-else
-LOCAL_SRC_FILES := etc/init.device.espresso10.rc
-endif
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
# recovery.img parts
ifneq ($(filter p3100 p3110,$(TARGET_DEVICE)),)
include $(CLEAR_VARS)