mirror of
https://xff.cz/git/u-boot/
synced 2025-09-30 06:51:28 +02:00
rockchip: clean makefile for misc.c
Use obj-$(config) instead of #ifdef $config to make the code looks clean, and move the misc_init for U-Boot proper only. Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0+
|
# SPDX-License-Identifier: GPL-2.0+
|
||||||
#
|
#
|
||||||
# Copyright (c) 2014 Google, Inc
|
# Copyright (c) 2014 Google, Inc
|
||||||
|
# Copyright (c) 2019 Rockchip Electronics Co., Ltd.
|
||||||
|
|
||||||
# We don't want the bootrom-helper present in a full U-Boot build, as
|
# We don't want the bootrom-helper present in a full U-Boot build, as
|
||||||
# this may have entered from ATF with the stack-pointer pointing to
|
# this may have entered from ATF with the stack-pointer pointing to
|
||||||
@@ -21,14 +22,11 @@ ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_TPL_BUILD),)
|
|||||||
# meaning "turn it off".
|
# meaning "turn it off".
|
||||||
obj-y += boot_mode.o
|
obj-y += boot_mode.o
|
||||||
obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o
|
obj-$(CONFIG_ROCKCHIP_COMMON_BOARD) += board.o
|
||||||
|
obj-$(CONFIG_MISC_INIT_R) += misc.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
|
obj-$(CONFIG_$(SPL_TPL_)RAM) += sdram_common.o
|
||||||
|
|
||||||
ifdef CONFIG_MISC_INIT_R
|
|
||||||
obj-y += misc.o
|
|
||||||
endif
|
|
||||||
|
|
||||||
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
|
obj-$(CONFIG_ROCKCHIP_RK3036) += rk3036/
|
||||||
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
|
obj-$(CONFIG_ROCKCHIP_RK3128) += rk3128/
|
||||||
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
|
obj-$(CONFIG_ROCKCHIP_RK3188) += rk3188/
|
||||||
|
Reference in New Issue
Block a user