coreboot/src/mainboard
Julius Werner de110ee07d google/gru: Change UART _Static_assert() condition to #if
_Static_assert() gets evaluated even when the code path it's in is
unreachable (e.g. inside an if (0) block). Unfortunately, Kconfigs that
depend on a disabled Kconfig are always 0, meaning that
CONFIG_CONSOLE_SERIAL_UART_ADDRESS on Gru cannot evaluate to UART2 when
CONFIG_CONSOLE_SERIAL (which it depends on) is disabled. Switch the
condition it is wrapped in to a preprocessor #if so that the
_Static_assert() is not evaluated when building without serial support.

BRANCH=None
BUG=None
TEST=Built and booted Kevin without serial

Change-Id: I391325fcc4b7d64b4866a7fce4444e2f28365b7d
Signed-off-by: Martin Roth <martinroth@chromium.org>
Original-Commit-Id: f5e5cf0644
Original-Change-Id: I33d51d4ef09b218c14173d39a12795f0cef6bb40
Original-Signed-off-by: Julius Werner <jwerner@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/361581
Original-Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://review.coreboot.org/15810
Tested-by: build bot (Jenkins)
Reviewed-by: Furquan Shaikh <furquan@google.com>
2016-07-25 18:57:32 +02:00
..
a-trend intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
aaeon AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
abit intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
adi adi/rc-dff: Add Initial implementaion 2016-06-08 18:49:52 +02:00
adlink
advansus AGESA vendorcode: Build a common amdlib 2016-05-18 10:44:43 +02:00
amd amd/db-ft3b-lc: Add board support 2016-07-20 06:36:23 +02:00
aopen intel/car/cache_as_ram_ht.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:43:20 +02:00
apple intel/model_6ex: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:49:12 +02:00
artecgroup AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
asrock AGESA boards: Split dispatcher to romstage and ramstage 2016-06-04 23:44:33 +02:00
asus timestamp: Drop duplicate TS_END_ROMSTAGE entries 2016-07-21 15:36:00 +02:00
avalue AGESA vendorcode: Build a common amdlib 2016-05-18 10:44:43 +02:00
azza intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
bachmann AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
bap AGESA boards: Split dispatcher to romstage and ramstage 2016-06-04 23:44:33 +02:00
bcom AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
bifferos rdc/r8610: Move to src/soc 2016-05-05 20:08:58 +02:00
biostar intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
broadcom
compaq intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
cubietech mainboard/cubieboard: use bootblock_mainboard_early_init 2016-01-29 17:03:52 +01:00
digitallogic AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
dmp dmp/vortex86ex: Drop excessive include 2016-06-18 20:00:58 +02:00
ecs intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
emulation spike-riscv: Look for the CBFS in RAM 2016-07-14 18:24:34 +02:00
esd FSP1_0 does not support HAVE_ACPI_RESUME 2016-07-13 18:35:03 +02:00
getac intel/model_6ex: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:49:12 +02:00
gigabyte intel/car/cache_as_ram_ht.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:43:20 +02:00
gizmosphere AGESA boards: Split dispatcher to romstage and ramstage 2016-06-04 23:44:33 +02:00
google google/gru: Change UART _Static_assert() condition to #if 2016-07-25 18:57:32 +02:00
hp intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
ibase intel/model_6ex: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:49:12 +02:00
iei AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
intel skylake: Move CHROMEOS config to SoC 2016-07-25 18:55:21 +02:00
iwave intel/car/cache_as_ram_ht.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:43:20 +02:00
iwill ASL: Remove unused local variables. 2016-02-09 19:56:59 +01:00
jetway AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
kontron intel/sandybridge: Fix builds with System Agent blob 2016-06-23 21:52:46 +02:00
lanner intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
lenovo lenovo/t530: Don't enforce native gfx init 2016-07-07 17:12:44 +02:00
linutop
lippert AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
mitac intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
msi intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
nec intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
nokia intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
nvidia lib: compile mdelay for romstage 2016-01-22 22:15:09 +01:00
packardbell intel/nehalem: Use common ACPI S3 recovery 2016-06-26 14:04:02 +02:00
pcengines AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
purism kbuild: Allow drivers to fit src/drivers/[X]/[Y]/ scheme 2016-04-19 18:34:18 +02:00
rca intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
roda intel/gm45: Use common ACPI S3 recovery 2016-06-26 14:03:26 +02:00
samsung mainboards: align on using ACPI_Sx definitions 2016-07-15 08:30:31 +02:00
siemens siemens/mc_bdx1: Add usage of external RTC PCF8523 2016-07-14 07:04:18 +02:00
soyo intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
sunw lib: compile mdelay for romstage 2016-01-22 22:15:09 +01:00
supermicro intel/model_6ex: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:49:12 +02:00
technexion lib: compile mdelay for romstage 2016-01-22 22:15:09 +01:00
thomson intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
ti beaglebone: Update bootblock.c to use new structs/code 2016-06-21 00:46:42 +02:00
traverse AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
tyan intel/car/cache_as_ram.inc: Prepare for dynamic CONFIG_RAMTOP 2016-06-21 00:39:47 +02:00
via AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
winent AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
wyse AMD boards: Fix romstage main() declaration 2016-06-18 20:01:48 +02:00
Kconfig mainboard: Support ROM_SIZE > 16 MiB 2016-06-09 22:45:51 +02:00