beast: 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:08 +0000 (16:22 +0200)
There's no need for this, make use of LOCAL_PATH instead.

Change-Id: I94642c86049d85d1b4f372309bc5899f9876ffe3

device.mk

index 2e30c5b72ff7a9ed4a274a5df88e298a58d9c024..de965581b777ca100c7f3b55a4efad5c6d429868 100644 (file)
--- a/device.mk
+++ b/device.mk
@@ -4,8 +4,6 @@
 # SPDX-License-Identifier: Apache-2.0
 #
 
-DEVICE_PATH := device/google/beast
-
 $(call inherit-product, vendor/google/beast/beast-vendor.mk)
 
 $(call inherit-product, device/amlogic/gx-common/gx.mk)
@@ -16,7 +14,7 @@ include hardware/realtek/rtkbt/rtkbt.mk
 
 ## 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 += \
@@ -24,7 +22,7 @@ PRODUCT_PACKAGES += \
 
 ## Overlays
 DEVICE_PACKAGE_OVERLAYS += \
-    $(DEVICE_PATH)/overlay
+    $(LOCAL_PATH)/overlay
 
 ## Platform
 TARGET_AMLOGIC_SOC := gxl