]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: cssi: Use HAVE_VENDOR_COMMON_LIB logic
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 13 Apr 2024 06:41:14 +0000 (08:41 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 18 Apr 2024 13:47:46 +0000 (15:47 +0200)
Instead of cross using cross-directory makefile directives,
add a Makefile in board/cssi/common/ directory in order to
benefit from HAVE_VENDOR_COMMON_LIB logic.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
board/cssi/cmpc885/Makefile
board/cssi/cmpcpro/Makefile
board/cssi/common/Makefile [new file with mode: 0644]

index baf9e5ab4f68ccfbedd18de19f3b27cb196b727f..6c055097cddb8126f33861a10445ac3732317180 100644 (file)
@@ -5,6 +5,6 @@
 # Christophe Leroy <christophe.leroy@c-s.fr>
 #
 
-obj-y += cmpc885.o ../common/common.o
+obj-y += cmpc885.o
 obj-y += sdram.o
 obj-$(CONFIG_CMD_NAND) += nand.o
index 73ff451ea1cf2723b45635b31907cfa7f71a3fab..30837781af61dd3f2e59a9dc3808c01ac17227e9 100644 (file)
@@ -5,4 +5,4 @@
 # SPDX-License-Identifier:     GPL-2.0+
 #
 
-obj-y += cmpcpro.o nand.o ../common/common.o
+obj-y += cmpcpro.o nand.o
diff --git a/board/cssi/common/Makefile b/board/cssi/common/Makefile
new file mode 100644 (file)
index 0000000..9735826
--- /dev/null
@@ -0,0 +1,8 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+# Copyright (C) 2024 CS GROUP France
+# Christophe Leroy <christophe.leroy@csgroup.eu>
+#
+
+obj-$(CONFIG_TARGET_CMPC885) += common.o
+obj-$(CONFIG_TARGET_CMPCPRO) += common.o