Lines Matching +full:auto +full:- +full:boot

1 # SPDX-License-Identifier: GPL-2.0
3 # - symbolic links (arch/$ARCH/include/asm/arch
4 # - include/autoconf.mk, {spl,tpl}/include/autoconf.mk
5 # - include/config.h
13 ifeq ($(shell grep -q '^CONFIG_SPL=y' include/config/auto.conf 2>/dev/null && echo y),y)
17 ifeq ($(shell grep -q '^CONFIG_TPL=y' include/config/auto.conf 2>/dev/null && echo y),y)
21 include include/config/auto.conf
29 CPP = $(CC) -E
34 -Iinclude \
35 $(if $(KBUILD_SRC), -I$(srctree)/include) \
36 -I$(srctree)/arch/$(ARCH)/include \
37 -include $(srctree)/include/linux/kconfig.h
43 cmd_autoconf_dep = $(CC) -x c -DDO_DEPS_ONLY -M -MP $(c_flags) \
44 -MQ include/config/auto.conf $(srctree)/include/common.h > $@ || { \
52 # - include/config/auto.conf (generated by Kconfig)
53 # - include/autoconf.mk (used in the U-Boot conventional configuration)
55 # include/config/auto.conf is grepped in order to avoid duplication of the
59 sed -n -f $(srctree)/tools/scripts/define2mk.sed $< | \
61 if [ -n "${KCONFIG_IGNORE_DUPLICATES}" ] || \
62 ! grep -q "$${line%=*}=" include/config/auto.conf; then \
69 $(CPP) $(c_flags) $2 -DDO_DEPS_ONLY -dM $(srctree)/include/common.h > $@.tmp && { \
76 u-boot.cfg: include/config.h FORCE
79 spl/u-boot.cfg: include/config.h FORCE
80 $(Q)mkdir -p $(dir $@)
81 $(call cmd,u_boot_cfg,-DCONFIG_SPL_BUILD)
83 tpl/u-boot.cfg: include/config.h FORCE
84 $(Q)mkdir -p $(dir $@)
85 $(call cmd,u_boot_cfg,-DCONFIG_SPL_BUILD -DCONFIG_TPL_BUILD)
87 include/autoconf.mk: u-boot.cfg
90 spl/include/autoconf.mk: spl/u-boot.cfg
91 $(Q)mkdir -p $(dir $@)
94 tpl/include/autoconf.mk: tpl/u-boot.cfg
95 $(Q)mkdir -p $(dir $@)
101 (echo "/* Automatically generated - do not edit */"; \
119 # If arch/$(ARCH)/mach-$(SOC)/include/mach exists,
121 # Otherwise, create a symbolic link to arch/$(ARCH)/include/asm/arch-$(SOC).
126 $(Q)mkdir -p include/asm
127 $(Q)if [ -d $(KBUILD_SRC)/arch/$(ARCH)/mach-$(SOC)/include/mach ]; then \
128 dest=arch/$(ARCH)/mach-$(SOC)/include/mach; \
130 dest=arch/$(ARCH)/include/asm/arch-$(if $(SOC),$(SOC),$(CPU)); \
132 ln -fsn $(KBUILD_SRC)/$$dest include/asm/arch
134 $(Q)if [ -d arch/$(ARCH)/mach-$(SOC)/include/mach ]; then \
135 dest=../../mach-$(SOC)/include/mach; \
137 dest=arch-$(if $(SOC),$(SOC),$(CPU)); \
139 ln -fsn $$dest arch/$(ARCH)/include/asm/arch