Skip to contentSkip to conversation

configs/imx6-sabresd_qt5: add missing dependency on host-openssl

PATCH New Thomas Petazzoni 4 participants 12 messages Nov 22, 2018 – Nov 26, 2018 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/6 configs/imx6-sabresd_qt5: add missing dependency on host-openssl

host-openssl is needed to build the Linux kernel. This is the same issue that was fixed in commit 5dac3b9b8d72ea2b4aa264bfaa54e41f32595009 ("configs/imx6-sabresd: needs host-openssl for the Linux kernel build") for the minimal defconfig for the same board.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771070

---
 configs/imx6-sabresd_qt5_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/imx6-sabresd_qt5_defconfig +1 -0
index 7457af3135..2534d5cb87 100644
@@ -43,6 +43,7 @@ BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6q-sabresd imx6dl-sabresd imx6qp-sabresd"
 BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/freescale/imx6-sabresd/linux_qt5.fragment"
+BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
 
 # GL driver
 BR2_PACKAGE_MESA3D=y
Signature · 1 line
2.19.1
#1 lore raw

PATCH 2/6 configs/cubieboard2: U-Boot needs pylibfdt

When building U-Boot for this platform:

unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1 scripts/dtc/pylibfdt/Makefile:27: recipe for target 'scripts/dtc/pylibfdt/_libfdt.so' failed

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771048

---
 configs/cubieboard2_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/cubieboard2_defconfig +1 -0
index fa86be3622..fd50742d09 100644
@@ -21,6 +21,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.09"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="Cubieboard2"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
 BR2_TARGET_UBOOT_SPL=y
 BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
 BR2_TARGET_UBOOT_BOOT_SCRIPT=y
Signature · 1 line
2.19.1
#2 lore raw

PATCH 3/6 configs/armadeus_apf27: fix U-Boot configuration

In reply to Thomas Petazzoni

The U-Boot part of the defconfig was not specifying explicitly any U-Boot version. Since commit 21e3ae8a18bb77943c0a2492ab9ebf14cab333f9 ("boot/uboot: default to kconfig buildsystem for latest version"), we default to using the kconfig build system when the default U-Boot version is used. Following this change, the apf27 defconfig therefore started using kconfig, for which the BR2_TARGET_UBOOT_BOARDNAME Config.in option is not used. Due to this, the build fails with:

boot/uboot/uboot.mk:411: *** No board defconfig name specified, check your BR2_TARGET_UBOOT_BOARD_DEFCONFIG setting. Stop.

Indeed, when Kconfig is used, the board defconfig must be specified with BR2_TARGET_UBOOT_BOARD_DEFCONFIG.

As part of fixing this, we also set a fixed U-Boot version for this defconfig, like we do in all other defconfigs.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771003

---
 configs/armadeus_apf27_defconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
configs/armadeus_apf27_defconfig +4 -1
index 6f78b74d3a..457a14b02d 100644
@@ -28,4 +28,7 @@ BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx27-apf27dev"
 
 # U-boot
 BR2_TARGET_UBOOT=y
-BR2_TARGET_UBOOT_BOARDNAME="apf27"
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION=y
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.09"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="apf27"
Signature · 1 line
2.19.1
#4 lore raw

PATCH 4/6 configs/olimex_a20_olinuxino_lime_legacy: use gcc 6.x and not the default version

In reply to Thomas Petazzoni

The old 3.4 Linux kernel used by this defconfig doesn't build with gcc 7.x:

include/linux/compiler-gcc.h:106:1: fatal error: linux/compiler-gcc7.h: No such file or directory

So let's use gcc 6.x for the time being.

Long term, we should use a newer or different kernel source for this defconfig, or get rid of the defconfig entirely if there's no updated kernel with a fix.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771091

---
 configs/olimex_a20_olinuxino_lime_legacy_defconfig | 3 +++
 1 file changed, 3 insertions(+)
configs/olimex_a20_olinuxino_lime_legacy_defconfig +3 -0
index c14c2ca995..2c33f05e56 100644
@@ -3,6 +3,9 @@ BR2_arm=y
 BR2_cortex_a7=y
 BR2_ARM_EABIHF=y
 
+# The old 3.4 kernel doesn't build with gcc >= 7.x
+BR2_GCC_VERSION_6_X=y
+
 # Linux headers same as kernel, a 3.4 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_4=y
 
Signature · 1 line
2.19.1
#8 lore raw

PATCH 5/6 configs/orangepi_zero_plus2: U-Boot needs pylibfdt

In reply to Thomas Petazzoni

When building U-Boot for this platform:

unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1 scripts/dtc/pylibfdt/Makefile:26: recipe for target 'scripts/dtc/pylibfdt/_libfdt.so' failed

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771103

---
 configs/orangepi_zero_plus2_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/orangepi_zero_plus2_defconfig +1 -0
index 8c83b3acd1..618104ff5e 100644
@@ -21,6 +21,7 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2018.01"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="orangepi_zero_plus2"
 BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
 BR2_TARGET_UBOOT_NEEDS_ATF_BL31=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
 BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot.itb"
Signature · 1 line
2.19.1
#10 lore raw

PATCH 6/6 board/pc: use frame pointer unwinder in linux.config

In reply to Thomas Petazzoni

The default ORC unwinder requires libelf to be built. While we could build libelf using BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF, we probably don't really need the ORC unwinder in the PC defconfigs, so let's use the frame pointer unwinder instead.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771107

---
 board/pc/linux.config | 1 +
 1 file changed, 1 insertion(+)
board/pc/linux.config +1 -0
index 0fff117080..f86352e1ea 100644
@@ -82,3 +82,4 @@ CONFIG_EXT4_FS=y
 CONFIG_FUSE_FS=y
 CONFIG_TMPFS_POSIX_ACL=y
 CONFIG_SQUASHFS=y
+CONFIG_UNWINDER_FRAME_POINTER=y
Signature · 1 line
2.19.1
#5 lore raw

PATCH 4/6 configs/olimex_a20_olinuxino_lime_legacy: use gcc 6.x and not the default version

In reply to Thomas Petazzoni

Hi Thomas,

Quoted 9 lines · Thomas Petazzoni

The old 3.4 Linux kernel used by this defconfig doesn't build with gcc 7.x:

include/linux/compiler-gcc.h:106:1: fatal error: linux/compiler-gcc7.h: No such file or directory

So let's use gcc 6.x for the time being.

Long term, we should use a newer or different kernel source for this defconfig, or get rid of the defconfig entirely if there's no updated kernel with a fix.

Adding the author of the Lime legacy support to the recipients.

Fran?ois, if memory serves, the old kernel was needed for GPU support. Is it still the case?

Thanks,

Signature · 1 line
Luca
#6 lore raw

PATCH 4/6 configs/olimex_a20_olinuxino_lime_legacy: use gcc 6.x and not the default version

Le ven. 23 nov. 2018 ? 14:57, Luca Ceresoli <[email protected]> a ?crit :

Quoted 9 lines

Hi Thomas,

Quoted 1 line · Thomas Petazzoni

The old 3.4 Linux kernel used by this defconfig doesn't build with gcc

7.x:

Quoted 2 lines

include/linux/compiler-gcc.h:106:1: fatal error: linux/compiler-gcc7.h:

No such file or directory

Quoted 1 line
Quoted 9 lines
Quoted 5 lines

So let's use gcc 6.x for the time being.

Long term, we should use a newer or different kernel source for this defconfig, or get rid of the defconfig entirely if there's no updated kernel with a fix.

Adding the author of the Lime legacy support to the recipients.

After the release of BR 2019.02, I will remove:
- configs/olimex_a20_olinuxino_lime_legacy_defconfig
- package/sunxi-mali

Now, we have package/sunxi-mali-mainline.

Fran?ois

Quoted 11 lines

Fran?ois, if memory serves, the old kernel was needed for GPU support. Is it still the case?

Thanks,
--
Luca
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20181124/ae79fe36/attachment.html>

#11 lore raw

PATCH 1/6 configs/imx6-sabresd_qt5: add missing dependency on host-openssl

In reply to Thomas Petazzoni
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

host-openssl is needed to build the Linux kernel. This is the same issue that was fixed in commit 5dac3b9b8d72ea2b4aa264bfaa54e41f32595009 ("configs/imx6-sabresd: needs host-openssl for the Linux kernel build") for the minimal defconfig for the same board.

Quoted 5 lines

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771070

Committed to 2018.02.x and 2018.08.x, thanks.

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

PATCH 3/6 configs/armadeus_apf27: fix U-Boot configuration

In reply to Thomas Petazzoni
Quoted 15 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

The U-Boot part of the defconfig was not specifying explicitly any U-Boot version. Since commit 21e3ae8a18bb77943c0a2492ab9ebf14cab333f9 ("boot/uboot: default to kconfig buildsystem for latest version"), we default to using the kconfig build system when the default U-Boot version is used. Following this change, the apf27 defconfig therefore started using kconfig, for which the BR2_TARGET_UBOOT_BOARDNAME Config.in option is not used. Due to this, the build fails with:

boot/uboot/uboot.mk:411: *** No board defconfig name specified, check your BR2_TARGET_UBOOT_BOARD_DEFCONFIG setting. Stop.

Indeed, when Kconfig is used, the board defconfig must be specified with BR2_TARGET_UBOOT_BOARD_DEFCONFIG.

Quoted 8 lines

As part of fixing this, we also set a fixed U-Boot version for this defconfig, like we do in all other defconfigs.

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771003

Committed to 2018.02.x and 2018.08.x, thanks.

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

PATCH 4/6 configs/olimex_a20_olinuxino_lime_legacy: use gcc 6.x and not the default version

In reply to Thomas Petazzoni
Quoted 11 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

The old 3.4 Linux kernel used by this defconfig doesn't build with gcc 7.x:
include/linux/compiler-gcc.h:106:1: fatal error: linux/compiler-gcc7.h: No such file or directory

So let's use gcc 6.x for the time being.

Long term, we should use a newer or different kernel source for this defconfig, or get rid of the defconfig entirely if there's no updated kernel with a fix.

Quoted 5 lines

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771091

Committed to 2018.08.x, thanks.

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

PATCH 5/6 configs/orangepi_zero_plus2: U-Boot needs pylibfdt

In reply to Thomas Petazzoni
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

When building U-Boot for this platform:
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1 scripts/dtc/pylibfdt/Makefile:26: recipe for target 'scripts/dtc/pylibfdt/_libfdt.so' failed

Quoted 5 lines

Fixes:

https://gitlab.com/buildroot.org/buildroot/-/jobs/123771103

Committed to 2018.08.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard