diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2007-09-24 09:05:31 -0600 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2007-11-20 22:33:38 -0700 |
commit | 2f155f6c0a1f5e9a306a3f1f4fbe067db7ced3b1 (patch) | |
tree | 872745bafb23aa357e7abbdfed81d17c0250ca85 /config.mk | |
parent | f92edbd8a0ef16a2b9127cbb564c09685728e4b0 (diff) | |
download | u-boot-imx-2f155f6c0a1f5e9a306a3f1f4fbe067db7ced3b1.zip u-boot-imx-2f155f6c0a1f5e9a306a3f1f4fbe067db7ced3b1.tar.gz u-boot-imx-2f155f6c0a1f5e9a306a3f1f4fbe067db7ced3b1.tar.bz2 |
[BUILD] Generate include/autoconf.mk from board config files
Use cpp and sed to postprocess config.h and import the defined values
into include/autoconf.mk. autoconf.mk is then included by config.mk to
give 'make' access to the board configuration.
Doing this enables conditional compilation at the Makefile level instead
of by wrapping every .c file with #ifdef/#endif wrappers.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -87,6 +87,9 @@ ifdef BOARD sinclude $(TOPDIR)/board/$(BOARDDIR)/config.mk # include board specific rules endif +# Load generated board configuration +sinclude $(OBJTREE)/include/autoconf.mk + ######################################################################### CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \ |