From: huang lin Date: Tue, 17 Nov 2015 06:20:12 +0000 (+0800) Subject: rockchip: add config decide whether to build common.c X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=302d1767b994e209c0a021c0602d287a2a8d979d;p=project%2Fbcm63xx%2Fu-boot.git rockchip: add config decide whether to build common.c some rockchips soc will not use uclass in SPL stage, so define config to decide whether to build common.c Signed-off-by: Lin Huang Acked-by: Simon Glass --- diff --git a/arch/arm/mach-rockchip/Makefile b/arch/arm/mach-rockchip/Makefile index 7088711ee3..902235b867 100644 --- a/arch/arm/mach-rockchip/Makefile +++ b/arch/arm/mach-rockchip/Makefile @@ -9,6 +9,6 @@ obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288-board-spl.o else obj-y += board.o endif -obj-y += common.o obj-y += rk_timer.o +obj-$(CONFIG_$(SPL_)ROCKCHIP_COMMON) += common.o obj-$(CONFIG_ROCKCHIP_RK3288) += rk3288/ diff --git a/include/configs/rk3288_common.h b/include/configs/rk3288_common.h index af62227793..cd7477be18 100644 --- a/include/configs/rk3288_common.h +++ b/include/configs/rk3288_common.h @@ -42,6 +42,9 @@ #define CONFIG_SPL_STACK 0xff718000 #define CONFIG_SPL_TEXT_BASE 0xff704004 +#define CONFIG_ROCKCHIP_COMMON +#define CONFIG_SPL_ROCKCHIP_COMMON + /* MMC/SD IP block */ #define CONFIG_MMC #define CONFIG_GENERIC_MMC