aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-08-08 12:20:18 -0600
committerTom Rini <trini@konsulko.com>2021-09-04 12:26:02 -0400
commit807cc640ed238feed61bdc920cec2394c0e6d6de (patch)
tree5f4e5e3e7cf20d9fb2913c6b79f4c8de8ee57a3e
parentf7560376aec089357da0e4b9faf7d4f594ef1ebd (diff)
downloadu-boot-807cc640ed238feed61bdc920cec2394c0e6d6de.zip
u-boot-807cc640ed238feed61bdc920cec2394c0e6d6de.tar.gz
u-boot-807cc640ed238feed61bdc920cec2394c0e6d6de.tar.bz2
Makefile: Unify the rules for BOOTCOUNT_LIMIT
Use a single rule that works for all phases. Signed-off-by: Simon Glass <sjg@chromium.org>
-rw-r--r--drivers/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/Makefile b/drivers/Makefile
index d62e3de..9d113de 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0+
+obj-$(CONFIG_$(SPL_TPL_)BOOTCOUNT_LIMIT) += bootcount/
obj-$(CONFIG_$(SPL_TPL_)BUTTON) += button/
obj-$(CONFIG_$(SPL_TPL_)CACHE) += cache/
obj-$(CONFIG_$(SPL_TPL_)CLK) += clk/
@@ -36,7 +37,6 @@ obj-$(CONFIG_$(SPL_)FPGA) += fpga/
ifndef CONFIG_TPL_BUILD
ifdef CONFIG_SPL_BUILD
-obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
obj-$(CONFIG_SPL_CPU) += cpu/
obj-$(CONFIG_SPL_CRYPTO) += crypto/
obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR) += ddr/fsl/
@@ -69,7 +69,6 @@ endif
ifdef CONFIG_TPL_BUILD
-obj-$(CONFIG_TPL_BOOTCOUNT_LIMIT) += bootcount/
obj-$(CONFIG_TPL_MPC8XXX_INIT_DDR) += ddr/fsl/
endif
@@ -82,7 +81,6 @@ obj-y += bus/
obj-$(CONFIG_DM_DEMO) += demo/
obj-$(CONFIG_BIOSEMU) += bios_emulator/
obj-y += block/
-obj-$(CONFIG_BOOTCOUNT_LIMIT) += bootcount/
obj-y += cache/
obj-$(CONFIG_CPU) += cpu/
obj-y += crypto/