diff options
| author | codeworkx <codeworkx@cyanogenmod.org> | 2016-02-12 17:30:57 +0100 |
|---|---|---|
| committer | Sinisa (thermskin) <sinisa.sehovic@gmail.com> | 2016-02-13 09:30:15 +0100 |
| commit | d131fd303112134b39201d451cea377a10278cf5 (patch) | |
| tree | 2a1e02c0a30889f96a897c74a55fd2247879a2ca | |
| parent | cd61a13d3663e0def40b7a35ff4b5a08eb1bb5b2 (diff) | |
h815: add device specific init rc and split fstab per variant
Change-Id: I8d3f280ac4eaed41ea8cc9232a45e749f4c79273
| -rw-r--r-- | device.mk | 5 | ||||
| -rw-r--r-- | rootdir/Android.mk | 20 | ||||
| -rw-r--r-- | rootdir/etc/fstab.h815 | 10 | ||||
| -rw-r--r-- | rootdir/etc/init.device.rc | 2 |
4 files changed, 37 insertions, 0 deletions
@@ -22,6 +22,11 @@ $(call inherit-product-if-exists, vendor/lge/h815/h815-vendor.mk) # Overlays DEVICE_PACKAGE_OVERLAYS += $(LOCAL_PATH)/overlay +# Init configuration +PRODUCT_PACKAGES += \ + fstab.h815 \ + init.device.rc \ + # Audio PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/audio/audio_platform_info.xml:system/etc/audio_platform_info.xml diff --git a/rootdir/Android.mk b/rootdir/Android.mk new file mode 100644 index 0000000..6a44a00 --- /dev/null +++ b/rootdir/Android.mk @@ -0,0 +1,20 @@ +LOCAL_PATH:= $(call my-dir) +include $(CLEAR_VARS) + +# Device init scripts + +include $(CLEAR_VARS) +LOCAL_MODULE := fstab.h815 +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/fstab.h815 +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) + +include $(CLEAR_VARS) +LOCAL_MODULE := init.device.rc +LOCAL_MODULE_TAGS := optional eng +LOCAL_MODULE_CLASS := ETC +LOCAL_SRC_FILES := etc/init.device.rc +LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT) +include $(BUILD_PREBUILT) diff --git a/rootdir/etc/fstab.h815 b/rootdir/etc/fstab.h815 new file mode 100644 index 0000000..431df37 --- /dev/null +++ b/rootdir/etc/fstab.h815 @@ -0,0 +1,10 @@ +# Android fstab file. +# The filesystem that contains the filesystem checker binary (typically /system) cannot +# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK + +#TODO: Add 'check' as fs_mgr_flags with data partition. +# Currently we dont have e2fsck compiled. So fs check would failed. + +#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags> +/dev/block/bootdevice/by-name/cust /cust ext4 ro,nosuid,nodev,barrier=1,noauto_da_alloc defaults,notrim +/dev/block/bootdevice/by-name/mpt /mpt ext4 nosuid,nodev,barrier=1,noatime,noauto_da_alloc,errors=continue wait,notrim diff --git a/rootdir/etc/init.device.rc b/rootdir/etc/init.device.rc new file mode 100644 index 0000000..d6844db --- /dev/null +++ b/rootdir/etc/init.device.rc @@ -0,0 +1,2 @@ +on early-fs + mount_all fstab.h815 |
