coreboot/src/ec
lilacious 40cb3fe94d commonlib/console/post_code.h: Change post code prefix to POSTCODE
The prefix POSTCODE makes it clear that the macro is a post code.
Hence, replace related macros starting with POST to POSTCODE and
also replace every instance the macros are invoked with the new
name.

The files was changed by running the following bash script from the
top level directory.

  sed -i'' '30,${s/#define POST/#define POSTCODE/g;}' \
  src/commonlib/include/commonlib/console/post_codes.h;
  myArray=`grep -e "^#define POSTCODE_" \
  src/commonlib/include/commonlib/console/post_codes.h | \
  grep -v "POST_CODES_H" | tr '\t' ' ' | cut -d ' ' -f 2`;

  for str in ${myArray[@]}; do
    splitstr=`echo $str | cut -d '_' -f2-`
    grep -r POST_$splitstr src | \
    cut -d ':' -f 1 | xargs sed -i'' -e "s/POST_$splitstr/$str/g";
    grep -r "POST_$splitstr" util/cbfstool | \
    cut -d ':' -f 1 | xargs sed -i'' -e "s/POST_$splitstr/$str/g";
  done

Change-Id: I25db79fa15f032c08678f66d86c10c928b7de9b8
Signed-off-by: lilacious <yuchenhe126@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76043
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subratabanik@google.com>
2023-06-23 15:06:04 +00:00
..
51nb/npce985la0dx
acpi ec/acpi/ec: replace misleading "recv_ec_data_timeout" console output 2023-04-14 23:47:29 +00:00
apple/acpi tree: Replace ShiftLeft(a,b) with ASL 2.0 syntax 2022-12-23 08:30:39 +00:00
clevo/it5570e ec/clevo/it5570e/acpi: Replace Index(a, b) with ASL 2.0 syntax 2022-12-12 21:43:31 +00:00
compal/ene932 {superio,ec}/acpi: Replace constant "Zero" with actual number 2022-12-27 09:06:29 +00:00
dell/mec5035 ec/dell: Add support for the SMSC MEC5035 2023-02-08 19:21:59 +00:00
google commonlib/console/post_code.h: Change post code prefix to POSTCODE 2023-06-23 15:06:04 +00:00
hp/kbc1126 tree/acpi: Replace Divide(a,b,c,d) with ASL 2.0 syntax 2022-12-26 19:57:44 +00:00
intel mb/intel/mtlrvp: Add MTL-P RVP board ids 2022-12-09 23:57:03 +00:00
kontron tree: Replace And(a,b) with ASL 2.0 syntax 2022-12-23 10:18:55 +00:00
lenovo ec/lenovo/pmh7/chip.h: Use 'bool' instead of 'int' 2023-04-08 03:36:07 +00:00
purism ec/purism,system76: Provide probe for fixed Librem-EC jack detect 2023-05-26 14:57:27 +00:00
quanta ec/quanta/ene_kb3940q/acpi: Fix PS2K under Windows 2023-05-13 18:35:44 +00:00
roda/it8518 treewide: Remove useless "_STA: Status" comment 2023-02-19 11:20:37 +00:00
smsc/mec1308 {superio,ec}/acpi: Replace constant "Zero" with actual number 2022-12-27 09:06:29 +00:00
starlabs/merlin ec/starlabs/merlin: Change the fallback value for fn_ctrl_swap 2023-05-03 21:50:36 +00:00
system76/ec ec/purism,system76: Provide probe for fixed Librem-EC jack detect 2023-05-26 14:57:27 +00:00
ec.h