m5: Unset DEVICE_PATH in the product makefile
authorBruno Martins <bgcngm@gmail.com>
Thu, 9 Jun 2022 14:08:33 +0000 (15:08 +0100)
committerBruno Martins <bgcngm@gmail.com>
Thu, 9 Jun 2022 14:22:17 +0000 (16:22 +0200)
There's no need for this, make use of LOCAL_PATH instead.

Change-Id: I94642c86049d85d1b4f372309bc5899f9876ffe3

device.mk

index 637462f47e7f73a52c93f97522f8e63cd7903b1f..4df23ccc15082a4f2b52f48eb04c18e9a082c373 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -1,11 +1,9 @@
 #
-# Copyright (C) 2021 The LineageOS Project
+# Copyright (C) 2021-2022 The LineageOS Project
 #
 # SPDX-License-Identifier: Apache-2.0
 #
 
-DEVICE_PATH := device/bananapi/m5
-
 $(call inherit-product, device/amlogic/g12-common/g12.mk)
 
 ## Bluetooth
@@ -18,7 +16,7 @@ PRODUCT_HOST_PACKAGES += \
 
 ## Init-Files
 PRODUCT_COPY_FILES += \
-    $(DEVICE_PATH)/init-files/init.amlogic.wifi_buildin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.wifi_buildin.rc
+    $(LOCAL_PATH)/init-files/init.amlogic.wifi_buildin.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.amlogic.wifi_buildin.rc
 
 ## Kernel Modules
 PRODUCT_PACKAGES += \
@@ -27,4 +25,4 @@ PRODUCT_PACKAGES += \
 
 ## Overlays
 DEVICE_PACKAGE_OVERLAYS += \
-    $(DEVICE_PATH)/overlay
+    $(LOCAL_PATH)/overlay