[coreboot] Patch merged into coreboot/master: 7ed3bc9 Clean up #ifs
gerrit at coreboot.org
gerrit at coreboot.org
Tue May 8 00:34:36 CEST 2012
the following patch was just integrated into master:
commit 7ed3bc96c090f58a503a63277860be967fce6d14
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Sat May 5 15:29:32 2012 +0200
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 at georgi-clan.de>
Build-Tested: build bot (Jenkins) at Sun May 6 10:31:07 2012, giving +1
See http://review.coreboot.org/1004 for details.
-gerrit
More information about the coreboot
mailing list