From c7d2d7f90a91f43f5609d021e966e04d45da2c1f Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 29 Jan 2025 18:04:28 +0100 Subject: ARM: renesas: Simplify board Makefiles Introduce board/renesas/common/Makefile and remove the multiple duplicate copies of obj := ../common/*.o from board Makefiles. Let the build system include the common Makefile using the HAVE_VENDOR_COMMON_LIB and build the common objects that are shared by all the boards that way. No functional change intended. Some of the remaining board files which include board specific settings have been updated to use obj-y += to avoid rewriting the board obj-y target and avoid dropping object files from the build. The board/renesas/common/Makefile is now also used when building RZG2L targets which also set CONFIG_RCAR_64 symbol and 32bit R-Car Gen2 targets, however, this common code is specific to 64bit R-Car only. Inhibit the build of this common code for RZG2L using extra ifndef CONFIG_RZG2L and do not include any code for R-Car Gen2 so far. Signed-off-by: Marek Vasut Reviewed-by: Quentin Schulz --- board/renesas/common/common.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'board/renesas/common/common.c') diff --git a/board/renesas/common/common.c b/board/renesas/common/common.c index 7fba8d10ff5..74ec0a46e6f 100644 --- a/board/renesas/common/common.c +++ b/board/renesas/common/common.c @@ -18,8 +18,6 @@ #include #include -#ifdef CONFIG_RCAR_64 - DECLARE_GLOBAL_DATA_PTR; int dram_init(void) @@ -67,5 +65,3 @@ int __weak board_init(void) { return 0; } - -#endif -- cgit v1.2.3