Skip to contentSkip to conversation

arm: kirkwood: Pogo v4: Enable LTO

PATCH RESEND In review Tony Dinh 2 participants 3 messages Oct 16, 2023 – Oct 20, 2023

lore
Share & tools
lore

Tony Dinh

author
#0 lore raw

PATCH RESEND 1/1 arm: kirkwood: Pogo v4: Enable LTO

Enable building Pogo V4 u-boot image with LTO, which results in about 30K reduction in size.

Rebased to latest master and resend.

---

 configs/pogo_v4_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/pogo_v4_defconfig +1 -0
index cbbade3c0c..fd62146ed3 100644
@@ -15,6 +15,7 @@ CONFIG_ENV_OFFSET=0xC0000
 CONFIG_DEFAULT_DEVICE_TREE="kirkwood-pogoplug-series-4"
 CONFIG_IDENT_STRING="\nPogoplug V4"
 CONFIG_SYS_LOAD_ADDR=0x800000
+CONFIG_LTO=y
 CONFIG_PCI=y
 CONFIG_DISTRO_DEFAULTS=y
 CONFIG_BOOTSTAGE=y
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Tony Dinh

Enable building Pogo V4 u-boot image with LTO, which results in about 30K reduction in size.

Rebased to latest master and resend.

Nitpicking:

In such cases, please generate a v2 and put this description in the patch history below the "---" line. No need to do this now, I'll fix it up.

Quoted 1 line

Thanks,
Stefan

Quoted 10 lines

---

  configs/pogo_v4_defconfig | 1 +
  1 file changed, 1 insertion(+)
configs/pogo_v4_defconfig +0 -0
index cbbade3c0c..fd62146ed3 100644

configs/pogo_v4_defconfig CONFIG_ENV_OFFSET=0xC0000 · line 21

Quoted 7 lines
configs/pogo_v4_defconfig +1 -0
@@ -15,6 +15,7 @@ CONFIG_ENV_OFFSET=0xC0000
  CONFIG_DEFAULT_DEVICE_TREE="kirkwood-pogoplug-series-4"
  CONFIG_IDENT_STRING="\nPogoplug V4"
  CONFIG_SYS_LOAD_ADDR=0x800000
+CONFIG_LTO=y
  CONFIG_PCI=y
  CONFIG_DISTRO_DEFAULTS=y
  CONFIG_BOOTSTAGE=y

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
#2 lore raw
Quoted 8 lines · Stefan Roese
Quoted 4 lines · Tony Dinh

Enable building Pogo V4 u-boot image with LTO, which results in about 30K reduction in size.

Rebased to latest master and resend.

Nitpicking:

Quoted 7 lines

In such cases, please generate a v2 and put this description in the patch history below the "---" line. No need to do this now, I'll fix it up.

Quoted 1 line

Applied to u-boot-marvell/master

Thanks,
Stefan

Quoted 8 lines

Thanks,
Stefan

Quoted 5 lines

---

  configs/pogo_v4_defconfig | 1 +

  1 file changed, 1 insertion(+)
Quoted 16 lines
Quoted 5 lines
configs/pogo_v4_defconfig +0 -0
index cbbade3c0c..fd62146ed3 100644
@@ -15,6 +15,7 @@ CONFIG_ENV_OFFSET=0xC0000
Quoted 7 lines

  CONFIG_DEFAULT_DEVICE_TREE="kirkwood-pogoplug-series-4" CONFIG_IDENT_STRING="\nPogoplug V4" CONFIG_SYS_LOAD_ADDR=0x800000
+CONFIG_LTO=y
  CONFIG_PCI=y
  CONFIG_DISTRO_DEFAULTS=y
  CONFIG_BOOTSTAGE=y

Viele Grüße,
Stefan Roese

Viele Grüße,
Stefan Roese

Signature · 3 lines
DENX Software Engineering GmbH,      Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]