From: Nolen Johnson Date: Thu, 9 Jun 2022 02:41:02 +0000 (-0400) Subject: m5: Inherit common tree after device vars are set X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c9242281d1b15b151ee0e930d1c60d7eb004e13a;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_bananapi_m5.git m5: Inherit common tree after device vars are set * Allows several variables to be read in common tree. Change-Id: Ic8f3a4d210568254d814b013b67d8f06efff5e63 --- diff --git a/BoardConfig.mk b/BoardConfig.mk index ec27ac6..9b14b08 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -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 diff --git a/device.mk b/device.mk index 4df23cc..b75390d 100644 --- 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)