Skip to contentSkip to conversation

grub2 wchar defconfig fixes

PATCH New Nicholas Sielicki 3 participants 6 messages Sep 5, 2017 – Oct 16, 2017

lore
Share & tools
lore
#0 lore raw

v2 cover grub2 wchar defconfig fixes

Since a version bump of grub2 (5ffafd2353f5d67) it requires a toolchain with wide character support. Some defconfigs have lines to build grub2 (BR_TARGET_GRUB2=y) but this doesn't always take place, depending on whether BR2_USE_WCHAR is set. Because of this, some defconfigs will fail to successfully build images.

This v2 cuts out some unnecessary changes from v1 (ie: comments in configs to explicitly note this dependency without any other change) and splits up the remaining changes into individual patches. I did not test the minnowboard change, but the galileo change is tested.

Nicholas Sielicki (2):
configs/galileo: grub2 needs wchar toolchain configs/minnowboard_max-graphical: wchar/grub2 fix

 configs/galileo_defconfig                   | 2 ++
 configs/minnowboard_max-graphical_defconfig | 2 ++
 2 files changed, 4 insertions(+)
Signature · 1 line
2.14.1
#1 lore raw

PATCH v2 1/2 configs/galileo: grub2 needs wchar toolchain

The galileo_defconfig has the line "BR_TARGET_GRUB2=y", but this currently has no effect because BR_TARGET_GRUB2 cannot be selected without BR2_TOOLCHAIN_BUILDROOT_WCHAR=y, which is not set by default.

---
 configs/galileo_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/galileo_defconfig +2 -0
index 43639a41a..39622e331 100644
@@ -1,4 +1,6 @@
 BR2_x86_x1000=y
+# Needed for TARGET_GRUB2
+BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
 # Linux headers same as kernel, a 3.14 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14=y
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
Signature · 1 line
2.14.1
#2 lore raw

PATCH v2 1/2 configs/galileo: grub2 needs wchar toolchain

Hello,

Quoted 8 lines · Nicholas Sielicki

The galileo_defconfig has the line "BR_TARGET_GRUB2=y", but this currently has no effect because BR_TARGET_GRUB2 cannot be selected without BR2_TOOLCHAIN_BUILDROOT_WCHAR=y, which is not set by default.

---
 configs/galileo_defconfig | 2 ++
 1 file changed, 2 insertions(+)

Both applied. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH v2 1/2 configs/galileo: grub2 needs wchar toolchain

In reply to Nicholas Sielicki
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Nicholas" == Nicholas Sielicki <[email protected]> writes:

The galileo_defconfig has the line "BR_TARGET_GRUB2=y", but this currently has no effect because BR_TARGET_GRUB2 cannot be selected without BR2_TOOLCHAIN_BUILDROOT_WCHAR=y, which is not set by default.

Committed to 2017.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH v2 2/2 configs/minnowboard_max-graphical: wchar/grub2 fix

In reply to Nicholas Sielicki

minnowboard_max-graphical_defconfig has the line "BR_TARGET_GRUB2=y", but this currently has no effect because BR_TARGET_GRUB2 cannot be selected without BR2_TOOLCHAIN_BUILDROOT_WCHAR=y, which is not set by default.

The minnowboard max defconfig was updated to fix this problem, but the graphical variant was not updated alongside it.

---
 configs/minnowboard_max-graphical_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/minnowboard_max-graphical_defconfig +2 -0
index ef0947cb7..2c11fb378 100644
@@ -6,6 +6,8 @@ BR2_x86_atom=y
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_12=y
 BR2_TOOLCHAIN_BUILDROOT_LOCALE=y
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
+# needed for TARGET_GRUB2
+BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
 
 # System configuration
 BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
Signature · 1 line
2.14.1
#5 lore raw

PATCH v2 2/2 configs/minnowboard_max-graphical: wchar/grub2 fix

Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Nicholas" == Nicholas Sielicki <[email protected]> writes:

minnowboard_max-graphical_defconfig has the line "BR_TARGET_GRUB2=y", but this currently has no effect because BR_TARGET_GRUB2 cannot be selected without BR2_TOOLCHAIN_BUILDROOT_WCHAR=y, which is not set by default.

The minnowboard max defconfig was updated to fix this problem, but the graphical variant was not updated alongside it.

Committed to 2017.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard