Except for TPL, always compile cpu-info.c file without guard by DISPLAY_CPUINFO at Makefile level, to provide at least the weak implementation of rockchip_get_reset_cause().
In this way, any code using rockchip_get_reset_cause() (weak or not) will not be broken when deselecting DISPLAY_CPUINFO. Previously, it was not possible to compile TARGET_ROC_PC_RK3399 with DISPLAY_CPUINFO deselected. Signed-off-by: Massimo Pegorer <[email protected]> --- arch/arm/mach-rockchip/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/Makefile b/arch/arm/mach-rockchip/Makefile index d3bc0689f89..a76ef200d65 100644 --- a/arch/arm/mach-rockchip/Makefile +++ b/arch/arm/mach-rockchip/Makefile @@ -26,7 +26,7 @@ obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o endif ifeq ($(CONFIG_TPL_BUILD),) -obj-$(CONFIG_DISPLAY_CPUINFO) += cpu-info.o +obj-y += cpu-info.o endif obj-$(CONFIG_$(PHASE_)RAM) += sdram.o -- 2.34.1
