| commit | 8a9062a0842c70920ac1c95ba48b7d4f2e1538f0 | [log] [tgz] |
|---|---|---|
| author | Nico Huber <nico.h@gmx.de> | Sun Jun 17 23:15:52 2018 +0200 |
| committer | Nico Huber <nico.h@gmx.de> | Wed May 08 13:21:37 2019 +0000 |
| tree | bd53eb7165dfe93dda277722022efdd5fddf1418 | |
| parent | 6a996dc7bafc5a1b56c7cd9d1a00a6f8ef5617fd [diff] |
gma config: Enable Restrictions (No_Elaboration_Code) Forcing compile-time evaluation seems to be the right thing and works well now. It also helps to compare binaries after refactorizations. Change-Id: I4eea973836a05eefcc2c98de75e6721ef3cd278b Signed-off-by: Nico Huber <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/c/libgfxinit/+/27143 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
diff --git a/common/hw-gfx-gma-config.ads.template b/common/hw-gfx-gma-config.ads.template index 721252b..bf69dc8 100644 --- a/common/hw-gfx-gma-config.ads.template +++ b/common/hw-gfx-gma-config.ads.template
@@ -12,6 +12,8 @@ -- GNU General Public License for more details. -- +pragma Restrictions (No_Elaboration_Code); + private package HW.GFX.GMA.Config is Gen : constant Generation := <<GEN>>;