
These 2 patches enable conditional compilation at the Makefile level in u-boot. Using this we can finally start getting rid of the #ifdef/#endif wrappers around every .c file.
Wolfgang, I've also pushed this to the 5xxx git tree (see below). This change is much easier to merge, but is far more risky (because it's the first one). If we're doing a short cycle just for build changes, then this is probably the best time to do it.
I've tested with MAKEALL and verified image sizes didn't change when working with an earlier version of this series. Only things that have changes since them is dependency calculation on the new autoconf.mk file and rebasing to top of tree.
Cheers, g.
The following changes since commit f92edbd8a0ef16a2b9127cbb564c09685728e4b0: Grant Likely (1): Merge branch 'origin' into kconfig-for-1.3.1
are available in the git repository at:
git://www.denx.de/git/u-boot-mpc5xxx.git master
Grant Likely (2): [BUILD] Generate include/autoconf.mk from board config files [BUILD] conditionally compile common/cmd_*.c in common/Makefile
Makefile | 18 +++++++++- common/Makefile | 82 +++++++++++++++++++++++------------------- common/cmd_bdinfo.c | 2 - common/cmd_bedbug.c | 3 -- common/cmd_bmp.c | 4 -- common/cmd_console.c | 4 -- common/cmd_date.c | 4 -- common/cmd_dcr.c | 4 -- common/cmd_diag.c | 4 -- common/cmd_display.c | 4 -- common/cmd_doc.c | 5 --- common/cmd_dtt.c | 4 -- common/cmd_elf.c | 4 -- common/cmd_ext2.c | 4 -- common/cmd_fat.c | 7 ---- common/cmd_fdos.c | 4 -- common/cmd_fdt.c | 5 --- common/cmd_flash.c | 4 -- common/cmd_fpga.c | 3 -- common/cmd_i2c.c | 5 --- common/cmd_ide.c | 4 -- common/cmd_immap.c | 5 +-- common/cmd_itest.c | 3 -- common/cmd_jffs2.c | 5 --- common/cmd_log.c | 4 -- common/cmd_mfsl.c | 4 -- common/cmd_mii.c | 4 -- common/cmd_misc.c | 4 -- common/cmd_mmc.c | 5 --- common/cmd_net.c | 4 -- common/cmd_pci.c | 9 ----- common/cmd_portio.c | 4 -- common/cmd_reginfo.c | 5 --- common/cmd_reiser.c | 4 -- common/cmd_scsi.c | 4 -- common/cmd_spi.c | 4 -- common/cmd_universe.c | 4 -- common/cmd_usb.c | 10 ----- config.mk | 3 ++ include/configs/sbc2410x.h | 1 - include/configs/smdk2410.h | 1 - tools/scripts/define2mk.sed | 29 +++++++++++++++ 42 files changed, 95 insertions(+), 199 deletions(-)
-- Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd.