exynos9610: build the vendor image
authorJan Altensen <info@stricted.net>
Fri, 15 May 2020 10:27:17 +0000 (12:27 +0200)
committerJan Altensen <info@stricted.net>
Mon, 10 Aug 2020 22:08:54 +0000 (00:08 +0200)
Change-Id: Ic7030f997f7f16fca5f2d39a5dc8d683bbb1e516

BoardConfigCommon.mk
common.mk
extract-files.sh
proprietary-files-vendor.txt [new file with mode: 0644]
setup-makefiles.sh

index 4946c6b93d0e18caa891fa649f3d95e51f061cd9..4e605ae7619f74618aec98e55369727f187184ed 100644 (file)
@@ -69,12 +69,15 @@ BOARD_KERNEL_IMAGE_NAME := Image
 # partitions
 BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
 BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
+BOARD_VENDORIMAGE_PARTITION_SIZE := 805306368
 BOARD_USERDATAIMAGE_PARTITION_SIZE := 118974455808
 BOARD_DTBOIMG_PARTITION_SIZE := 1048576
 BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
 BOARD_FLASH_BLOCK_SIZE := 131072 # (BOARD_KERNEL_PAGESIZE * 64)
 TARGET_USES_MKE2FS := true
 BOARD_USES_METADATA_PARTITION := true
+BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
+TARGET_COPY_OUT_VENDOR := vendor
 
 # Recovery
 BOARD_USES_RECOVERY_AS_BOOT := true
index 3d25afa9206273ec47cfe2a20c48c6d52173970e..6fa63e3bceb49eb2955eda161c5a4decd1f28b4e 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -30,7 +30,8 @@ AB_OTA_PARTITIONS += \
     boot \
     dtbo \
     system \
-    vbmeta
+    vbmeta \
+    vendor
 
 AB_OTA_POSTINSTALL_CONFIG += \
     RUN_POSTINSTALL_system=true \
index a217e02967d277fff60291a7c9bd4c8cf6529368..7be3dd18433a9af9462df9b319e1196162f58736 100755 (executable)
@@ -65,6 +65,9 @@ setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${LINEAGE_ROOT}" true "${CLEAN_VEND
 extract "${MY_DIR}/proprietary-files.txt" "${SRC}" \
         "${KANG}" --section "${SECTION}"
 
+extract "${MY_DIR}/proprietary-files-vendor.txt" "${SRC}" \
+        "${KANG}" --section "${SECTION}"
+
 # Fix proprietary blobs
 BLOB_ROOT="$LINEAGE_ROOT"/vendor/"$VENDOR"/"$DEVICE_COMMON"/proprietary
 patchelf --replace-needed libmedia.so libmedia_ims.so $BLOB_ROOT/lib64/libmediaadaptor.so
diff --git a/proprietary-files-vendor.txt b/proprietary-files-vendor.txt
new file mode 100644 (file)
index 0000000..e69de29
index adf83d4224068997b5934977c2713af3c7704fe4..71ff8c6ab2caace708ccacde6261962043edee4c 100755 (executable)
@@ -43,6 +43,7 @@ write_headers "kane troika"
 
 # The standard blobs
 write_makefiles "${MY_DIR}/proprietary-files.txt" true
+write_makefiles "${MY_DIR}/proprietary-files-vendor.txt" true
 
 # Finish
 write_footers