AGESA: Allow const PcieComplexList for OemCustomize
commite66e39059e037d0fcb2b6ed6c1eae13a17d1a433
authorKyösti Mälkki <kyosti.malkki@gmail.com>
Thu, 21 Sep 2017 09:58:20 +0000 (21 12:58 +0300)
committerKyösti Mälkki <kyosti.malkki@gmail.com>
Tue, 26 Sep 2017 09:21:43 +0000 (26 09:21 +0000)
tree4d17099104cfccd0560a257f4e60d25224a18c20
parente52738b42889a8bf6b96fe86b87fbdd73947b367
AGESA: Allow const PcieComplexList for OemCustomize

It's already implemented like this with binaryPI API header.
That implementation is essentially the same with 'const' qualifier
just being ignored in the build process for PI blob.

For open-source AGESA build, work around -Werror=discarded-qualifier
using a simple but ugly cast.

Change-Id: Ib84eb9aa40f1f4442f7aeaa8c15f6f1cbc6ca295
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/21630
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Marc Jones <marc@marcjonesconsulting.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
src/vendorcode/amd/agesa/f12/AGESA.h
src/vendorcode/amd/agesa/f12/Proc/GNB/Modules/GnbPcieConfig/PcieConfigData.c
src/vendorcode/amd/agesa/f14/AGESA.h
src/vendorcode/amd/agesa/f14/Proc/GNB/Modules/GnbPcieConfig/PcieConfigData.c
src/vendorcode/amd/agesa/f15/AGESA.h
src/vendorcode/amd/agesa/f15tn/AGESA.h
src/vendorcode/amd/agesa/f15tn/Proc/GNB/Modules/GnbPcieConfig/PcieConfigData.c
src/vendorcode/amd/agesa/f16kb/AGESA.h
src/vendorcode/amd/agesa/f16kb/Proc/GNB/Modules/GnbPcieConfig/PcieConfigData.c