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

Change-Id: Ic8f3a4d210568254d814b013b67d8f06efff5e63

BoardConfig.mk
device.mk

index ec27ac6b295e6d6dbeb539e8d1e424a8da8bee8c..9b14b08fa3388158f88f412920c57ff7b0a5077f 100644 (file)
@@ -1,11 +1,9 @@
 #
-# Copyright (C) 2021 The LineageOS Project
+# Copyright (C) 2021-2022 The LineageOS Project
 #
 # SPDX-License-Identifier: Apache-2.0
 #
 
-include device/amlogic/g12-common/BoardConfigCommon.mk
-
 DEVICE_PATH := device/bananapi/m5
 
 ## Bootloader
@@ -26,3 +24,6 @@ BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl
 BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_rtl
 WIFI_DRIVER_SOCKET_IFACE := wlan0
 PRODUCT_CFI_INCLUDE_PATHS += hardware/realtek/wlan/wpa_supplicant_8_lib
+
+## Include the common tree BoardConfig makefile
+include device/amlogic/g12-common/BoardConfigCommon.mk
index 4df23ccc15082a4f2b52f48eb04c18e9a082c373..b75390d014c308687184df3a77349fbfe5d272fd 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -4,8 +4,6 @@
 # SPDX-License-Identifier: Apache-2.0
 #
 
-$(call inherit-product, device/amlogic/g12-common/g12.mk)
-
 ## Bluetooth
 BOARD_HAVE_BLUETOOTH_RTK_TV := true
 include hardware/realtek/rtkbt/rtkbt.mk
@@ -26,3 +24,6 @@ PRODUCT_PACKAGES += \
 ## Overlays
 DEVICE_PACKAGE_OVERLAYS += \
     $(LOCAL_PATH)/overlay
+
+## Inherit from the common tree product makefile
+$(call inherit-product, device/amlogic/g12-common/g12.mk)