rockchip: theobroma-systems: use HAVE_VENDOR_COMMON_LIB to simplify Makefile

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>
This commit is contained in:
Quentin Schulz 2025-01-29 16:24:23 +01:00 committed by Kever Yang
parent 231777ca8b
commit 1fd8fc0b2f
5 changed files with 9 additions and 12 deletions

View File

@ -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

View File

@ -5,6 +5,3 @@
#
obj-y += jaguar_rk3588.o
ifneq ($(CONFIG_XPL_BUILD),y)
obj-y += ../common/common.o
endif

View File

@ -5,6 +5,3 @@
#
obj-y += puma-rk3399.o
ifneq ($(CONFIG_XPL_BUILD),y)
obj-y += ../common/common.o
endif

View File

@ -5,6 +5,3 @@
#
obj-y += ringneck-px30.o
ifneq ($(CONFIG_XPL_BUILD),y)
obj-y += ../common/common.o
endif

View File

@ -5,6 +5,3 @@
#
obj-y += tiger_rk3588.o
ifneq ($(CONFIG_XPL_BUILD),y)
obj-y += ../common/common.o
endif