]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
rockchip: add config decide whether to build common.c
authorhuang lin <hl@rock-chips.com>
Tue, 17 Nov 2015 06:20:12 +0000 (14:20 +0800)
committerSimon Glass <sjg@chromium.org>
Tue, 1 Dec 2015 15:07:22 +0000 (08:07 -0700)
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 <hl@rock-chips.com>
Acked-by: Simon Glass <sjg@chromium.org>
arch/arm/mach-rockchip/Makefile
include/configs/rk3288_common.h

index 7088711ee31b474a23f1a971499bf3730504345b..902235b86746cd42c479252bd5dfcb6f96d477c2 100644 (file)
@@ -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/
index af62227793f489db878861c28469ec0caae47b69..cd7477be187f8b6fad47a8de7dbf1d797a4b9a61 100644 (file)
@@ -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