aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Blaesius <skate4life@gmx.de>2015-07-16 21:53:04 +0200
committerAndreas Blaesius <skate4life@gmx.de>2015-07-18 19:23:23 +0200
commitc6da88e4fc27014fabbefb60af0a9acc164eb982 (patch)
treec40d9be11670e0ee96517ea83397f759908abec4
parent63d82f0fcfba52d97a649b5e0d7606be6d780922 (diff)
downloaddevice_samsung_espresso3g-c6da88e4fc27014fabbefb60af0a9acc164eb982.zip
device_samsung_espresso3g-c6da88e4fc27014fabbefb60af0a9acc164eb982.tar.gz
device_samsung_espresso3g-c6da88e4fc27014fabbefb60af0a9acc164eb982.tar.bz2
P51XX: cleanup / rework ramdisk parts for better readability (1/2)
Change-Id: Ic5ea906ccbc348a4201628ac3269f5500e7830f7
-rw-r--r--BoardConfigCommon.mk2
-rwxr-xr-xp51xx-common.mk12
-rw-r--r--rootdir/Android.mk45
-rw-r--r--rootdir/etc/fstab.espresso10 (renamed from rootdir/fstab.espresso10)0
-rwxr-xr-xrootdir/etc/init.espresso10.rc (renamed from rootdir/init.espresso10.rc)0
-rwxr-xr-xrootdir/etc/init.espresso10.usb.rc (renamed from rootdir/init.espresso10.usb.rc)0
-rw-r--r--rootdir/etc/ueventd.espresso10.rc (renamed from rootdir/ueventd.espresso10.rc)0
7 files changed, 52 insertions, 7 deletions
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 467c0ef..3013fa3 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -115,7 +115,7 @@ BOARD_USES_MMCUTILS := true
BOARD_HAS_NO_MISC_PARTITION := true
BOARD_HAS_NO_SELECT_BUTTON := true
BOARD_SUPPRESS_EMMC_WIPE := true
-TARGET_RECOVERY_FSTAB := device/samsung/p5100/rootdir/fstab.espresso10
+TARGET_RECOVERY_FSTAB := device/samsung/p5100/rootdir/etc/fstab.espresso10
RECOVERY_FSTAB_VERSION := 2
BOARD_HAS_DOWNLOAD_MODE := true
diff --git a/p51xx-common.mk b/p51xx-common.mk
index ab24105..7c6d478 100755
--- a/p51xx-common.mk
+++ b/p51xx-common.mk
@@ -31,12 +31,12 @@ PRODUCT_AAPT_CONFIG := large
PRODUCT_AAPT_PREF_CONFIG := mdpi
PRODUCT_LOCALES += mdpi
-# Init files
-PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/rootdir/init.espresso10.usb.rc:root/init.espresso10.usb.rc \
- $(LOCAL_PATH)/rootdir/init.espresso10.rc:root/init.espresso10.rc \
- $(LOCAL_PATH)/rootdir/ueventd.espresso10.rc:root/ueventd.espresso10.rc \
- $(LOCAL_PATH)/rootdir/fstab.espresso10:root/fstab.espresso10
+# Ramdisk
+PRODUCT_PACKAGES += \
+ fstab.espresso10 \
+ init.espresso10.usb.rc \
+ init.espresso10.rc \
+ ueventd.espresso10.rc
# GPS
PRODUCT_COPY_FILES += \
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
new file mode 100644
index 0000000..1aeafd0
--- /dev/null
+++ b/rootdir/Android.mk
@@ -0,0 +1,45 @@
+LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
+
+# boot.img parts
+include $(CLEAR_VARS)
+LOCAL_MODULE := fstab.espresso10
+LOCAL_MODULE_TAGS := optional eng
+LOCAL_MODULE_CLASS := ETC
+LOCAL_SRC_FILES := etc/fstab.espresso10
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := init.espresso10.rc
+LOCAL_MODULE_TAGS := optional eng
+LOCAL_MODULE_CLASS := ETC
+LOCAL_SRC_FILES := etc/init.espresso10.rc
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := init.espresso10.usb.rc
+LOCAL_MODULE_TAGS := optional eng
+LOCAL_MODULE_CLASS := ETC
+LOCAL_SRC_FILES := etc/init.espresso10.usb.rc
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+include $(BUILD_PREBUILT)
+
+include $(CLEAR_VARS)
+LOCAL_MODULE := ueventd.espresso10.rc
+LOCAL_MODULE_TAGS := optional eng
+LOCAL_MODULE_CLASS := ETC
+LOCAL_SRC_FILES := etc/ueventd.espresso10.rc
+LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
+include $(BUILD_PREBUILT)
+
+
+# recovery.img parts
+include $(CLEAR_VARS)
+LOCAL_MODULE := twrp.fstab
+LOCAL_MODULE_TAGS := optional eng
+LOCAL_MODULE_CLASS := ETC
+LOCAL_SRC_FILES := ../recovery/root/etc/twrp.fstab
+LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/etc
+include $(BUILD_PREBUILT)
diff --git a/rootdir/fstab.espresso10 b/rootdir/etc/fstab.espresso10
index ec2e4f4..ec2e4f4 100644
--- a/rootdir/fstab.espresso10
+++ b/rootdir/etc/fstab.espresso10
diff --git a/rootdir/init.espresso10.rc b/rootdir/etc/init.espresso10.rc
index d8697d5..d8697d5 100755
--- a/rootdir/init.espresso10.rc
+++ b/rootdir/etc/init.espresso10.rc
diff --git a/rootdir/init.espresso10.usb.rc b/rootdir/etc/init.espresso10.usb.rc
index e86a7bd..e86a7bd 100755
--- a/rootdir/init.espresso10.usb.rc
+++ b/rootdir/etc/init.espresso10.usb.rc
diff --git a/rootdir/ueventd.espresso10.rc b/rootdir/etc/ueventd.espresso10.rc
index f67f204..f67f204 100644
--- a/rootdir/ueventd.espresso10.rc
+++ b/rootdir/etc/ueventd.espresso10.rc