mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-03 00:17:43 +00:00
gcc: improve configuration for snapshot versions
Make the selection of a snapshot version a normal gcc version choice, and make sure BR2_GCC_VERSION is properly defined. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
5c6ccd9f20
commit
636afc4664
@ -55,11 +55,11 @@ choice
|
|||||||
config BR2_GCC_VERSION_4_4_X
|
config BR2_GCC_VERSION_4_4_X
|
||||||
depends on !BR2_avr32 && !BR2_nios2
|
depends on !BR2_avr32 && !BR2_nios2
|
||||||
bool "gcc 4.4.x"
|
bool "gcc 4.4.x"
|
||||||
endchoice
|
|
||||||
|
|
||||||
config BR2_GCC_IS_SNAP
|
config BR2_GCC_VERSION_SNAP
|
||||||
depends on !BR2_avr32
|
depends on !BR2_avr32 && !BR2_nios2
|
||||||
bool
|
bool "gcc snapshot"
|
||||||
|
endchoice
|
||||||
|
|
||||||
config BR2_GCC_SUPPORTS_SYSROOT
|
config BR2_GCC_SUPPORTS_SYSROOT
|
||||||
bool
|
bool
|
||||||
@ -72,7 +72,7 @@ config BR2_GCC_SUPPORTS_FINEGRAINEDMTUNE
|
|||||||
config BR2_GCC_SNAP_DATE
|
config BR2_GCC_SNAP_DATE
|
||||||
string "GCC snapshot date"
|
string "GCC snapshot date"
|
||||||
default "20070921"
|
default "20070921"
|
||||||
depends on BR2_GCC_IS_SNAP
|
depends on BR2_GCC_VERSION_SNAP
|
||||||
help
|
help
|
||||||
Enter snapshot date to use for gcc. Format is:
|
Enter snapshot date to use for gcc. Format is:
|
||||||
YYYYMMDD
|
YYYYMMDD
|
||||||
@ -89,6 +89,7 @@ config BR2_GCC_VERSION
|
|||||||
default "4.3.3" if BR2_GCC_VERSION_4_3_3
|
default "4.3.3" if BR2_GCC_VERSION_4_3_3
|
||||||
default "4.3.4" if BR2_GCC_VERSION_4_3_4
|
default "4.3.4" if BR2_GCC_VERSION_4_3_4
|
||||||
default "4.4.2" if BR2_GCC_VERSION_4_4_X
|
default "4.4.2" if BR2_GCC_VERSION_4_4_X
|
||||||
|
default $BR2_GCC_SNAP_DATE if BR2_GCC_VERSION_SNAP
|
||||||
|
|
||||||
config BR2_TOOLCHAIN_SYSROOT
|
config BR2_TOOLCHAIN_SYSROOT
|
||||||
bool "Enable toolchain with --sysroot support"
|
bool "Enable toolchain with --sysroot support"
|
||||||
|
@ -8,7 +8,7 @@ GCC_VERSION:=$(call qstrip,$(BR2_GCC_VERSION))
|
|||||||
TARGET_OPTIMIZATION:=$(call qstrip,$(BR2_TARGET_OPTIMIZATION))
|
TARGET_OPTIMIZATION:=$(call qstrip,$(BR2_TARGET_OPTIMIZATION))
|
||||||
EXTRA_GCC_CONFIG_OPTIONS:=$(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
|
EXTRA_GCC_CONFIG_OPTIONS:=$(call qstrip,$(BR2_EXTRA_GCC_CONFIG_OPTIONS))
|
||||||
|
|
||||||
ifeq ($(call qstrip,$(BR2_GCC_IS_SNAP)),y)
|
ifeq ($(call qstrip,$(BR2_GCC_VERSION_SNAP)),y)
|
||||||
GCC_SNAP_DATE:=$(call qstrip,$(BR2_GCC_SNAP_DATE))
|
GCC_SNAP_DATE:=$(call qstrip,$(BR2_GCC_SNAP_DATE))
|
||||||
else
|
else
|
||||||
GCC_SNAP_DATE:=
|
GCC_SNAP_DATE:=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user