]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - Makefile
qoriq/p1_p2_rdb_pc: USB device-tree fixups for P1020
[karo-tx-uboot.git] / Makefile
index f8ecfd7130748e33e17c80adc5400d2f4236d9aa..dbc4b709b6a7315506937b59e22774adec4ca67a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -183,6 +183,16 @@ endif
 # load other configuration
 include $(TOPDIR)/config.mk
 
+# Targets which don't build the source code
+NON_BUILD_TARGETS = backup clean clobber distclean mkproper tidy unconfig
+
+# Only do the generic board check when actually building, not configuring
+ifeq ($(filter $(NON_BUILD_TARGETS),$(MAKECMDGOALS)),)
+ifeq ($(findstring _config,$(MAKECMDGOALS)),)
+$(CHECK_GENERIC_BOARD)
+endif
+endif
+
 # If board code explicitly specified LDSCRIPT or CONFIG_SYS_LDSCRIPT, use
 # that (or fail if absent).  Otherwise, search for a linker script in a
 # standard location.