Skip to contentSkip to conversation

Correctly detect GCC version when GCC 7 is available in the host

PATCH New Adrian Perez de Castro 3 participants 4 messages Jul 5, 2017

lore
Share & tools
lore
#0 lore raw

cover Correctly detect GCC version when GCC 7 is available in the host

Hi everybody,

Arch Linux has had GCC 7.x packages for a while, and when using it the BR2_HOST_GCC_AT_LEAST_<num> configuration variables are not populated.

The following patch fixes the issue. I have just finished successfully a complete build for the Raspberry Pi 3 including some packages which depend on BR2_HOST_GCC_AT_LEAST_<num> config variables.

Cheers,

Adrian Perez de Castro (1):
Config.in: add BR2_HOST_GCC_AT_LEAST_7

 Config.in | 5 +++++
 1 file changed, 5 insertions(+)
Signature · 1 line
2.13.2
#1 lore raw

PATCH 1/1 Config.in: add BR2_HOST_GCC_AT_LEAST_7

---
 Config.in | 5 +++++
 1 file changed, 5 insertions(+)
Config.in +5 -0
index 72ceadfde6..e395995ec9 100644
@@ -57,6 +57,11 @@ config BR2_HOST_GCC_AT_LEAST_6
 	default y if BR2_HOST_GCC_VERSION = "6"
 	select BR2_HOST_GCC_AT_LEAST_5
 
+config BR2_HOST_GCC_AT_LEAST_7
+	bool
+	default y if BR2_HOST_GCC_VERSION = "7"
+	select BR2_HOST_GCC_AT_LEAST_6
+
 # Hidden boolean selected by packages in need of Java in order to build
 # (example: xbmc)
 config BR2_NEEDS_HOST_JAVA
Signature · 1 line
2.13.2
#2 lore raw

PATCH 1/1 Config.in: add BR2_HOST_GCC_AT_LEAST_7

Hello,

Quoted 4 lines · Adrian Perez de Castro
---
 Config.in | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas

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