]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - scripts/Makefile.autoconf
dm: blk: conditionally disable functions that don't play well with CONFIG_DM_MMC
[karo-tx-uboot.git] / scripts / Makefile.autoconf
index 36bfa17b47e66a15a26f08dfd8e3997a89cba53a..01a739d23f7191b0a03b7d7604f6bc0f797a5230 100644 (file)
@@ -6,6 +6,9 @@
 # When our migration to Kconfig is done
 # (= When we move all CONFIGs from header files to Kconfig)
 # this makefile can be deleted.
+#
+# SPDX-License-Identifier:     GPL-2.0
+#
 
 __all: include/autoconf.mk include/autoconf.mk.dep
 
@@ -107,6 +110,7 @@ include/config.h: scripts/Makefile.autoconf create_symlink FORCE
 # Otherwise, create a symbolic link to arch/$(ARCH)/include/asm/arch-$(SOC).
 PHONY += create_symlink
 create_symlink:
+ifdef CONFIG_CREATE_ARCH_SYMLINK
 ifneq ($(KBUILD_SRC),)
        $(Q)mkdir -p include/asm
        $(Q)if [ -d $(KBUILD_SRC)/arch/$(ARCH)/mach-$(SOC)/include/mach ]; then \
@@ -123,6 +127,7 @@ else
        fi;                                                             \
        ln -fsn $$dest arch/$(ARCH)/include/asm/arch
 endif
+endif
 
 PHONY += FORCE
 FORCE: