Skip to content

Enable Makefile conditional compilation

Wolfgang Denk u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 2 patches 0 repliesNew

1 of 2 patches is in this archive. The cover letter announces 2.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Generate include/autoconf.mk from board config files+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot-Users] [PATCH 0/2] Enable Makefile conditional compilation
Quoted 21 lines · In message <[email protected]> you…

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

Quoted 7 lines

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

Merged into u-boot-testing repo.

Previous state is now in mainline.

Thanks a lot.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Documentation is like sex: when it is good, it is  very,  very  good;
and when it is bad, it is better than nothing.         - Dick Brandon