sabrina: Inherit common tree after device vars are set
authorNolen Johnson <johnsonnolen@gmail.com>
Thu, 9 Jun 2022 02:35:35 +0000 (22:35 -0400)
committerBruno Martins <bgcngm@gmail.com>
Thu, 9 Jun 2022 19:26:17 +0000 (20:26 +0100)
* Allows several variables to be read in common tree.

Change-Id: Ic8f3a4d210568254d814b013b67d8f06efff5e63

BoardConfig.mk
device.mk

index de6fb7e7170d05bede1fa18954f9c9f581bc6e0d..665fb2a12da2c87c22b49c624f5330ee391039f8 100644 (file)
@@ -1,13 +1,11 @@
 #
-# Copyright (C) 2021 The LineageOS Project
+# Copyright (C) 2021-2022 The LineageOS Project
 #
 # SPDX-License-Identifier: Apache-2.0
 #
 
 include vendor/google/sabrina/BoardConfigVendor.mk
 
-include device/amlogic/g12-common/BoardConfigCommon.mk
-
 DEVICE_PATH := device/google/sabrina
 
 ## Bluetooth
@@ -37,3 +35,6 @@ WIFI_DRIVER_FW_PATH_AP := "/vendor/etc/wifi/buildin/fw_fw_bcm4356a2_ag_apsta.bin
 WIFI_DRIVER_FW_PATH_STA := "/vendor/etc/wifi/buildin/fw_bcm4356a2_ag.bin"
 WIFI_DRIVER_FW_PATH_PARAM := "/sys/module/dhd/parameters/firmware_path"
 WPA_SUPPLICANT_VERSION := VER_0_8_X
+
+## Include the common tree BoardConfig makefile
+include device/amlogic/g12-common/BoardConfigCommon.mk
index e6a7770e858d5691fe8eb283a2959aaa43080b97..9d19ca2d24e03cf01cbe6ad297e509a604834f24 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -6,8 +6,6 @@
 
 $(call inherit-product, vendor/google/sabrina/sabrina-vendor.mk)
 
-$(call inherit-product, device/amlogic/g12-common/g12.mk)
-
 ## Bluetooth
 PRODUCT_PACKAGES += \
     libbt-vendor
@@ -30,4 +28,8 @@ DEVICE_PACKAGE_OVERLAYS += \
 ## Wi-Fi
 TARGET_DHD_VERSION := bcmdhd.100.10.545.x
 
+## Wi-Fi Firmware
 include hardware/amlogic/kernel-modules/dhd-driver/firmware/firmware.mk
+
+## Inherit from the common tree product makefile
+$(call inherit-product, device/amlogic/g12-common/g12.mk)