rockchip: theobroma-systems: use HAVE_VENDOR_COMMON_LIB to simplify Makefile
authorQuentin Schulz <quentin.schulz@cherry.de>
Wed, 29 Jan 2025 15:24:23 +0000 (16:24 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Wed, 23 Apr 2025 14:12:01 +0000 (22:12 +0800)
The build system uses HAVE_VENDOR_COMMON_LIB to automatically include
board/$(VENDOR)/common/Makefile, therefore let's use that to implicitly
include board/theobroma-systems/common/Makefile and compile the common.c
file when building proper.

Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
board/theobroma-systems/common/Makefile [new file with mode: 0644]
board/theobroma-systems/jaguar_rk3588/Makefile
board/theobroma-systems/puma_rk3399/Makefile
board/theobroma-systems/ringneck_px30/Makefile
board/theobroma-systems/tiger_rk3588/Makefile

diff --git a/board/theobroma-systems/common/Makefile b/board/theobroma-systems/common/Makefile
new file mode 100644 (file)
index 0000000..c1cadb4
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# Copyright (c) 2025 Cherry Embedded Solutions GmbH
+#
+# SPDX-License-Identifier:     GPL-2.0+
+#
+
+ifneq ($(CONFIG_XPL_BUILD),y)
+obj-y  += common.o
+endif
index d43bf19..38b73d2 100644 (file)
@@ -5,6 +5,3 @@
 #
 
 obj-y += jaguar_rk3588.o
-ifneq ($(CONFIG_XPL_BUILD),y)
-obj-y  += ../common/common.o
-endif
index 2256e72..d962b56 100644 (file)
@@ -5,6 +5,3 @@
 #
 
 obj-y  += puma-rk3399.o
-ifneq ($(CONFIG_XPL_BUILD),y)
-obj-y  += ../common/common.o
-endif
index 4d108f2..31ada1a 100644 (file)
@@ -5,6 +5,3 @@
 #
 
 obj-y  += ringneck-px30.o
-ifneq ($(CONFIG_XPL_BUILD),y)
-obj-y  += ../common/common.o
-endif
index 94b0859..9006477 100644 (file)
@@ -5,6 +5,3 @@
 #
 
 obj-y += tiger_rk3588.o
-ifneq ($(CONFIG_XPL_BUILD),y)
-obj-y  += ../common/common.o
-endif