]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: cros: Check ROM exists before building vboot
authorSimon Glass <sjg@chromium.org>
Sun, 27 Jun 2021 23:51:09 +0000 (17:51 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 15 Jul 2021 11:50:25 +0000 (19:50 +0800)
All the x86 devicetree files are built at once, whichever board is
actually being built. If coreboot is the target build, CONFIG_ROM_SIZE
is not defined and samus cannot build Chromium OS verified boot. Add
this condition to avoid errors about CONFIG_ROM_SIZE being missing.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
arch/x86/dts/chromebook_coral.dts
arch/x86/dts/chromebook_samus.dts

index c8cb4e21c6dc5c7f559fa0aca812c7d713ed245a..66c31efb6cdaf4c4398abab0b805a93f7d98d536 100644 (file)
@@ -10,7 +10,7 @@
 /include/ "rtc.dtsi"
 /include/ "tsc_timer.dtsi"
 
-#ifdef CONFIG_CHROMEOS_VBOOT
+#if defined(CONFIG_CHROMEOS_VBOOT) && defined(CONFIG_ROM_SIZE)
 #include "chromeos-x86.dtsi"
 #include "flashmap-x86-ro.dtsi"
 #include "flashmap-16mb-rw.dtsi"
index adaeb1ea35581c63491c8782b1894616b461ba8f..ad35ab2e3fd3a31615fe36b657fc3803a03c823c 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "smbios.dtsi"
 
-#ifdef CONFIG_CHROMEOS_VBOOT
+#if defined(CONFIG_CHROMEOS_VBOOT) && defined(CONFIG_ROM_SIZE)
 #include "chromeos-x86.dtsi"
 #include "flashmap-x86-ro.dtsi"
 #include "flashmap-8mb-rw.dtsi"