aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-09-21 19:32:46 -0400
committerTom Rini <trini@konsulko.com>2023-10-09 15:24:31 -0400
commit521ca0fa7832ee67ad2a1de37bf05fe8acd00b06 (patch)
treea0b1c08e4398e7dfc69a1ab6d7b5b6dcd4cdcf35 /Makefile
parent3d0fa4a4385e78a26096d9d806cfca6d8a7b7404 (diff)
downloadu-boot-521ca0fa7832ee67ad2a1de37bf05fe8acd00b06.zip
u-boot-521ca0fa7832ee67ad2a1de37bf05fe8acd00b06.tar.gz
u-boot-521ca0fa7832ee67ad2a1de37bf05fe8acd00b06.tar.bz2
Makefile: Allow for board directories to not have a Makefile
It is entirely possible at this point to have platforms in U-Boot that do not have board-specific C code (just Kconfig or environment) and so make it optional to have to descend in to and then build in the board directory. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4a2d99e..9d2e31e 100644
--- a/Makefile
+++ b/Makefile
@@ -886,7 +886,7 @@ libs-$(CONFIG_UT_ENV) += test/env/
libs-$(CONFIG_UT_OPTEE) += test/optee/
libs-$(CONFIG_UT_OVERLAY) += test/overlay/
-libs-y += $(if $(BOARDDIR),board/$(BOARDDIR)/)
+libs-y += $(if $(wildcard $(srctree)/board/$(BOARDDIR)/Makefile),board/$(BOARDDIR)/)
libs-y := $(sort $(libs-y))