m5: Split g12a/sm1 proprietary files
authorNolen Johnson <johnsonnolen@gmail.com>
Mon, 10 Jun 2024 05:35:29 +0000 (01:35 -0400)
committerNolen Johnson <johnsonnolen@gmail.com>
Mon, 10 Jun 2024 05:40:15 +0000 (05:40 +0000)
Change-Id: Ifb6554802f32809c93110a492393f6c3bd8122d8

BoardConfig.mk
device.mk
extract-files.sh
proprietary-files.txt [new file with mode: 0644]
setup-makefiles.sh

index e99ff6e0a9b895ffd56f95a17574e793eba52808..f88805629ee08b602dce284be75c750bc98f18a5 100644 (file)
@@ -31,3 +31,6 @@ PRODUCT_CFI_INCLUDE_PATHS += hardware/realtek/wlan/wpa_supplicant_8_lib
 
 ## Include the common tree BoardConfig makefile
 include device/amlogic/g12-common/BoardConfigCommon.mk
+
+## Include the proprietary BoardConfig makefile
+include vendor/amlogic/m5/BoardConfigVendor.mk
index 591f4e0bfdc9acfccfb77afcfe52b494d5d1bb9e..9129efb4f537ac0fad3ee0a9d76ebcbec10ee832 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -25,8 +25,14 @@ PRODUCT_PACKAGES += \
 DEVICE_PACKAGE_OVERLAYS += \
     $(LOCAL_PATH)/overlay
 
+## Platform
+TARGET_AMLOGIC_SOC := sm1
+
 ## TEE
 TARGET_HAS_TEE := false
 
 ## Inherit from the common tree product makefile
 $(call inherit-product, device/amlogic/g12-common/g12.mk)
+
+## Inherit from the proprietary files makefile
+$(call inherit-product, vendor/amlogic/m5/m5-vendor.mk)
index 19765e60bbb84233813c7b1976427b0aa5f0d966..c93ab1ac3f94002d7e565ed082d6a05f89d2723d 100755 (executable)
@@ -16,7 +16,9 @@ set -e
 
 export DEVICE=m5
 export DEVICE_COMMON=g12-common
-export VENDOR=bananapi
+export TARGET_SOC=sm1
+export VENDOR=amlogic
+export VENDOR_BRAND=bananapi
 export VENDOR_COMMON=amlogic
 
 "./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"
diff --git a/proprietary-files.txt b/proprietary-files.txt
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
index 4ecfd343e22ea2377d2105bdcb81e5abea6c7429..69707cf86c9f598cb214ad275104dfd3faf59f62 100755 (executable)
@@ -10,7 +10,9 @@ set -e
 
 export DEVICE=m5
 export DEVICE_COMMON=g12-common
-export VENDOR=bananapi
+export TARGET_SOC=sm1
+export VENDOR=amlogic
+export VENDOR_BRAND=bananapi
 export VENDOR_COMMON=amlogic
 
 "./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"