uboot/scripts
Masahiro Yamada e19b0fb485 kbuild: generate u-boot.cfg as a byproduct of include/autoconf.mk
Our build system still parses ad-hoc CONFIG options in header files
and generates include/autoconf.mk so that Makefiles can reference
them.  This gimmick was introduced in the pre-Kconfig days and will
be kept until Kconfig migration is completed.

The include/autoconf.mk is generated like follows:

  [1] Preprocess include/common.h with -DDO_DEPS_ONLY and
      retrieve macros into include/autoconf.mk.tmp
  [2] Reformat include/autoconf.mk.dep into include/autoconf.mk
      with tools/scripts/define2mk.sed script
  [3] Remove include/autoconf.mk.tmp

Here, include/autoconf.mk.tmp is similar to u-boot.cfg, which is
also generated by preprocessing include/config.h with -DDO_DEPS_ONLY.
In other words, there is much overlap among include/autoconf.mk and
u-boot.cfg build rules.

So, the idea is to split the build rule of include/autoconf.mk
into two stages.  The first preprocesses headers into u-boot.cfg.
The second parses the u-boot.cfg into include/autoconf.mk.  The
build rules of u-boot.cfg in Makefile and spl/Makefile will be gone.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2016-10-07 14:26:34 +00:00
..
basic kbuild: fixdep: Check fstat(2) return value 2016-05-23 11:50:21 -04:00
coccinelle/net scripts: Add a cocci patch for miiphy_register 2016-08-15 15:26:23 -05:00
kconfig Add more SPDX-License-Identifier tags 2016-01-19 08:31:21 -05:00
.gitignore
Kbuild.include kbuild: Add clang detection 2016-01-25 10:39:44 -05:00
Lindent
Makefile
Makefile.autoconf kbuild: generate u-boot.cfg as a byproduct of include/autoconf.mk 2016-10-07 14:26:34 +00:00
Makefile.build scripts/Makefile* Add SPDX-License-Identifier tag 2016-01-19 08:31:17 -05:00
Makefile.clean scripts/Makefile* Add SPDX-License-Identifier tag 2016-01-19 08:31:17 -05:00
Makefile.extrawarn scripts/Makefile* Add SPDX-License-Identifier tag 2016-01-19 08:31:17 -05:00
Makefile.host dm: Add a more efficient libfdt library 2016-07-14 20:40:24 -06:00
Makefile.lib scripts: Makefile.lib: Sanitize DTB names 2016-08-20 11:34:59 -04:00
Makefile.spl kbuild: generate u-boot.cfg as a byproduct of include/autoconf.mk 2016-10-07 14:26:34 +00:00
Makefile.uncmd_spl scripts/Makefile* Add SPDX-License-Identifier tag 2016-01-19 08:31:17 -05:00
binutils-version.sh
build-whitelist.sh build-whitelist: do not add new options to whitelist when update 2016-10-07 14:26:30 +00:00
check-config.sh check-config: fix wrong comment about how to build whitelist 2016-10-07 14:26:32 +00:00
checkpatch.pl Various, accumulated typos collected from around the tree. 2016-10-06 20:57:40 -04:00
checkstack.pl
cleanpatch
config_whitelist.txt config_whitelist: remove bogus options 2016-10-07 14:26:31 +00:00
coreboot.sed x86: Add a script to aid code conversion from coreboot 2016-03-17 10:27:23 +08:00
docproc.c
dtc-version.sh
fill_scrapyard.py
gcc-stack-usage.sh
gcc-version.sh
get_default_envs.sh scripts: Add script to extract default environment 2016-10-06 21:00:53 -04:00
get_maintainer.pl get_maintainer: fix perl 5.22/5.24 deprecated/incompatible "\C" use 2016-01-08 10:15:47 -05:00
kernel-doc
ld-version.sh
mailmapper
mkmakefile
objdiff
setlocalversion
show-gnu-make