wade: 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:31:18 +0000 (20:31 +0100)
* Allows several variables to be read in common tree.

Change-Id: Ic8f3a4d210568254d814b013b67d8f06efff5e63

BoardConfig.mk
device.mk

index 7cc57f9abab6ffae04c4b4c00ad6e91938a33830..cb48d221ee6a78a3967736c193fe6d63ee43ce89 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/askey/wade/BoardConfigVendor.mk
 
-include device/amlogic/g12-common/BoardConfigCommon.mk
-
 DEVICE_PATH := device/askey/wade
 
 ## Bluetooth
@@ -35,3 +33,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 8b2208c8981bceee347ad5ead677b629c6d8de5f..de19050062ed8b7f7601256859b83a98553c744b 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -6,8 +6,6 @@
 
 $(call inherit-product, vendor/askey/wade/wade-vendor.mk)
 
-$(call inherit-product, device/amlogic/g12-common/g12.mk)
-
 ## Bluetooth
 PRODUCT_PACKAGES += \
     libbt-vendor
@@ -24,4 +22,8 @@ PRODUCT_PACKAGES += \
 DEVICE_PACKAGE_OVERLAYS += \
     $(LOCAL_PATH)/overlay
 
+## 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)