coreboot-kgpe-d16/src/northbridge/amd/amdht
Patrick Georgi e166782f39 Clean up #ifs
Replace #if CONFIG_FOO==1 with #if CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*1[[:space:]]*\$,#if \1," {} +

Replace #if (CONFIG_FOO==1) with #if CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*(\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*1)[[:space:]]*\$,#if \1," {} +

Replace #if CONFIG_FOO==0 with #if !CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*0[[:space:]]*\$,#if \!\1," {} +

Replace #if (CONFIG_FOO==0) with #if !CONFIG_FOO:
find src -name \*.[ch] -exec sed -i "s,#if[[:space:]]*(\(CONFIG_[A-Z0-9_]*\)[[:space:]]*==[[:space:]]*0)[[:space:]]*\$,#if \!\1," {} +

(and some manual changes to fix false positives)

Change-Id: Iac6ca7605a5f99885258cf1a9a2473a92de27c42
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/1004
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Reviewed-by: Martin Roth <martin@se-eng.com>
2012-05-08 00:34:34 +02:00
..
AsPsDefs.h remove trailing whitespace 2011-11-01 19:07:45 +01:00
AsPsNb.c Convert some comments to proper Doxygen syntax. 2010-10-26 22:46:43 +00:00
AsPsNb.h Please bear with me - another rename checkin. This qualifies as trivial, no 2008-01-18 10:35:56 +00:00
comlib.c printk_foo -> printk(BIOS_FOO, ...) 2010-03-22 11:42:32 +00:00
comlib.h Rename almost all occurences of LinuxBIOS to coreboot. 2008-01-18 15:08:58 +00:00
h3ffeat.h Clean up comments, whitespace, and copyright date in the AMD HT code. 2008-07-16 21:09:31 +00:00
h3finit.c Mark read-only data as read-only, so the global vars test doesn't fail on it. 2010-09-25 17:24:10 +00:00
h3finit.h Mark read-only data as read-only, so the global vars test doesn't fail on it. 2010-09-25 17:24:10 +00:00
h3gtopo.h Remove another set of includes from Fam10 romstages: 2010-05-14 11:02:56 +00:00
h3ncmn.c The "temp" will be used later. So it has to be calculated correctly. 2011-04-19 06:40:56 +00:00
h3ncmn.h Please bear with me - another rename checkin. This qualifies as trivial, no 2008-01-18 10:35:56 +00:00
ht_wrapper.c Clean up #ifs 2012-05-08 00:34:34 +02:00
porting.h Remove extra NULL #define in amdht code. The 2010-05-09 21:44:52 +00:00