Skip to contentSkip to conversation

x86: Reduce size of samus image

PATCH New Simon Glass 2 participants 3 messages Jan 31, 2021 – Feb 1, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: Reduce size of samus image

With the recent addition of ACPI generation, the image size has got beyond its current limit.

Samus does not actually use this, nor x86 emulation for PCI ROMs, so disable both features.

---

 configs/chromebook_samus_defconfig | 1 +
 include/configs/chromebook_samus.h | 3 +++
 2 files changed, 4 insertions(+)
configs/chromebook_samus_defconfig +1 -0
index c0d2b04ccdf..71b5f8bdfea 100644
@@ -54,6 +54,7 @@ CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_REGMAP=y
 CONFIG_SYSCON=y
+# CONFIG_ACPIGEN is not set
 CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_DW=y
include/configs/chromebook_samus.h +3 -0
index dfeede7e91a..2fe3e721993 100644
@@ -15,6 +15,9 @@
 #include <configs/x86-common.h>
 #include <configs/x86-chromebook.h>
 
+/* We can rely on running natively, and this saves code size */
+#undef CONFIG_BIOSEMU
+
 #undef CONFIG_STD_DEVICES_SETTINGS
 #define CONFIG_STD_DEVICES_SETTINGS     "stdin=usbkbd,i8042-kbd,serial\0" \
 					"stdout=vidconsole,serial\0" \
Signature · 1 line
2.30.0.365.g02bc693789-goog
#1 lore raw

PATCH 1/1 x86: Reduce size of samus image

Quoted 7 lines · Simon Glass

With the recent addition of ACPI generation, the image size has got beyond its current limit.

Samus does not actually use this, nor x86 emulation for PCI ROMs, so disable both features.

Quoted 7 lines

---

 configs/chromebook_samus_defconfig | 1 +
 include/configs/chromebook_samus.h | 3 +++
 2 files changed, 4 insertions(+)
#2 lore raw

PATCH 1/1 x86: Reduce size of samus image

Quoted 12 lines · Bin Meng
Quoted 10 lines · Simon Glass

With the recent addition of ACPI generation, the image size has got beyond its current limit.

Samus does not actually use this, nor x86 emulation for PCI ROMs, so disable both features.

---

Quoted 6 lines
Quoted 4 lines
 configs/chromebook_samus_defconfig | 1 +
 include/configs/chromebook_samus.h | 3 +++
 2 files changed, 4 insertions(+)

applied to u-boot-x86, thanks!