summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVishal Mahaveer2017-08-23 09:49:29 -0500
committerVishal Mahaveer2017-08-23 11:01:44 -0500
commit052966042a996b26c9fbdc7e9445e5533994719e (patch)
treea179114500f18eca1936e8b6d3fb8b14a8ef3b73
parent736085b853393a0b6df68c2ac5d4416d4d1384b1 (diff)
downloaddevice-ti-jacinto6evm-052966042a996b26c9fbdc7e9445e5533994719e.tar.gz
device-ti-jacinto6evm-052966042a996b26c9fbdc7e9445e5533994719e.tar.xz
device-ti-jacinto6evm-052966042a996b26c9fbdc7e9445e5533994719e.zip
jacinto6evm: add vendor partition
Initial changes for creating separate vendor partition. Change-Id: If98caaa1d4c65c12c6afe1e60e35f5c37838ea32 Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
-rw-r--r--BoardConfig.mk4
-rw-r--r--device.mk2
-rwxr-xr-xfastboot.sh10
-rw-r--r--fstab.jacinto6evmboard1
-rw-r--r--sepolicy/file_contexts4
5 files changed, 16 insertions, 5 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 286cda7..8ea2b0b 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -57,6 +57,10 @@ BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
57BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4 57BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
58BOARD_FLASH_BLOCK_SIZE := 4096 58BOARD_FLASH_BLOCK_SIZE := 4096
59 59
60BOARD_VENDORIMAGE_PARTITION_SIZE := 268435456
61BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
62TARGET_COPY_OUT_VENDOR := vendor
63
60TARGET_RECOVERY_FSTAB = device/ti/jacinto6evm/fstab.jacinto6evmboard 64TARGET_RECOVERY_FSTAB = device/ti/jacinto6evm/fstab.jacinto6evmboard
61TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888" 65TARGET_RECOVERY_PIXEL_FORMAT := "BGRA_8888"
62TARGET_RELEASETOOLS_EXTENSIONS := device/ti/jacinto6evm 66TARGET_RELEASETOOLS_EXTENSIONS := device/ti/jacinto6evm
diff --git a/device.mk b/device.mk
index 779ff17..62e2ffb 100644
--- a/device.mk
+++ b/device.mk
@@ -41,7 +41,7 @@ PRODUCT_PACKAGES += \
41PRODUCT_COPY_FILES := \ 41PRODUCT_COPY_FILES := \
42 $(LOCAL_KERNEL):kernel \ 42 $(LOCAL_KERNEL):kernel \
43 device/ti/jacinto6evm/tablet_core_hardware_jacinto6evm.xml:system/etc/permissions/tablet_core_hardware_jacinto6evm.xml \ 43 device/ti/jacinto6evm/tablet_core_hardware_jacinto6evm.xml:system/etc/permissions/tablet_core_hardware_jacinto6evm.xml \
44 device/ti/jacinto6evm/manifest.xml:system/vendor/manifest.xml \ 44 device/ti/jacinto6evm/manifest.xml:vendor/manifest.xml \
45 device/ti/jacinto6evm/init.jacinto6evmboard.rc:root/init.jacinto6evmboard.rc \ 45 device/ti/jacinto6evm/init.jacinto6evmboard.rc:root/init.jacinto6evmboard.rc \
46 device/ti/jacinto6evm/init.jacinto6evmboard.usb.rc:root/init.jacinto6evmboard.usb.rc \ 46 device/ti/jacinto6evm/init.jacinto6evmboard.usb.rc:root/init.jacinto6evmboard.usb.rc \
47 device/ti/jacinto6evm/ueventd.jacinto6evmboard.rc:root/ueventd.jacinto6evmboard.rc \ 47 device/ti/jacinto6evm/ueventd.jacinto6evmboard.rc:root/ueventd.jacinto6evmboard.rc \
diff --git a/fastboot.sh b/fastboot.sh
index ebbc7c8..352900f 100755
--- a/fastboot.sh
+++ b/fastboot.sh
@@ -101,7 +101,7 @@ systemimg="${PRODUCT_OUT}system.img"
101userdataimg="${PRODUCT_OUT}userdata.img" 101userdataimg="${PRODUCT_OUT}userdata.img"
102cacheimg="${PRODUCT_OUT}cache.img" 102cacheimg="${PRODUCT_OUT}cache.img"
103recoveryimg="${PRODUCT_OUT}recovery.img" 103recoveryimg="${PRODUCT_OUT}recovery.img"
104 104vendorimg="${PRODUCT_OUT}vendor.img"
105 105
106# Verify that all the files required for the fastboot flash 106# Verify that all the files required for the fastboot flash
107# process are available 107# process are available
@@ -137,7 +137,12 @@ if [ ! -e "${cacheimg}" ] ; then
137 exit -1; 137 exit -1;
138fi 138fi
139if [ ! -e "${recoveryimg}" ] ; then 139if [ ! -e "${recoveryimg}" ] ; then
140 echo "Missing ${recoveryimg}" 140 echo "missing ${recoveryimg}"
141 exit -1;
142fi
143
144if [ ! -e "${vendorimg}" ] ; then
145 echo "missing ${vendorimg}"
141 exit -1; 146 exit -1;
142fi 147fi
143 148
@@ -172,6 +177,7 @@ echo " environment: ${environment}"
172${FASTBOOT} flash environment ${environment} 177${FASTBOOT} flash environment ${environment}
173${FASTBOOT} flash recovery ${recoveryimg} 178${FASTBOOT} flash recovery ${recoveryimg}
174${FASTBOOT} flash system ${systemimg} 179${FASTBOOT} flash system ${systemimg}
180${FASTBOOT} flash vendor ${vendorimg}
175 181
176userdataimg_orig="${userdataimg}.orig" 182userdataimg_orig="${userdataimg}.orig"
177if [ ! -f $userdataimg_orig ]; then 183if [ ! -f $userdataimg_orig ]; then
diff --git a/fstab.jacinto6evmboard b/fstab.jacinto6evmboard
index f3fd5dc..120e007 100644
--- a/fstab.jacinto6evmboard
+++ b/fstab.jacinto6evmboard
@@ -4,6 +4,7 @@
4# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK 4# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
5 5
6/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/system /system ext4 ro wait 6/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/system /system ext4 ro wait
7/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/vendor /vendor ext4 ro wait
7/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/cache /cache ext4 noatime,nosuid,nodev wait,check 8/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/cache /cache ext4 noatime,nosuid,nodev wait,check
8/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/userdata /data ext4 noatime,nosuid,nodev wait,check 9/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/userdata /data ext4 noatime,nosuid,nodev wait,check
9/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/recovery /recovery emmc defaults defaults 10/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/recovery /recovery emmc defaults defaults
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 2a77ada..0cf7a77 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -13,8 +13,8 @@
13/dev/pvr_sync u:object_r:gpu_device:s0 13/dev/pvr_sync u:object_r:gpu_device:s0
14/dev/sw_sync u:object_r:gpu_device:s0 14/dev/sw_sync u:object_r:gpu_device:s0
15 15
16/system/vendor/bin/pvrsrvctl u:object_r:pvr_exec:s0 16/vendor/bin/pvrsrvctl u:object_r:pvr_exec:s0
17/system/vendor/bin/pvrsrvinit u:object_r:pvr_exec:s0 17/vendor/bin/pvrsrvinit u:object_r:pvr_exec:s0
18 18
19#rpmsg 19#rpmsg
20/dev/rpmsg-dce u:object_r:rpmsg_device:s0 20/dev/rpmsg-dce u:object_r:rpmsg_device:s0