mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 05:36:32 +00:00
Remove BR2_GNU_TARGET_SUFFIX and compute GNU_TARGET_NAME
Instead of asking the user about the GNU target suffix, just compute it automatically from the other configuration options. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
7eeb1ccef7
commit
65e80a0b0b
18
Config.in
18
Config.in
@ -103,24 +103,6 @@ config BR2_STAGING_DIR
|
|||||||
|
|
||||||
source "target/device/Config.in.mirrors"
|
source "target/device/Config.in.mirrors"
|
||||||
|
|
||||||
config BR2_GNU_TARGET_SUFFIX
|
|
||||||
string "GNU target suffix"
|
|
||||||
default "linux-uclibcgnueabi" if BR2_ARM_EABI
|
|
||||||
default "linux-uclibc"
|
|
||||||
help
|
|
||||||
The string used to pass to configure scripts via the
|
|
||||||
--target= option. Just specify the suffix here, the leading
|
|
||||||
arch will be filled in automatically.
|
|
||||||
|
|
||||||
Most users will want to stick with the default setting, though
|
|
||||||
other users (most notably ARM EABI) like to add on to this in
|
|
||||||
order to stay in line with gcc conventions.
|
|
||||||
|
|
||||||
Default options are:
|
|
||||||
linux-uclibcgnueabi for ARM EABI
|
|
||||||
linux-uclibc for the rest
|
|
||||||
gnuhurd-uclibc for the hurd
|
|
||||||
|
|
||||||
config BR2_JLEVEL
|
config BR2_JLEVEL
|
||||||
int "Number of jobs to run simultaneously"
|
int "Number of jobs to run simultaneously"
|
||||||
default "2"
|
default "2"
|
||||||
|
1
Makefile
1
Makefile
@ -214,6 +214,7 @@ ARCH:=$(call qstrip,$(BR2_ARCH))
|
|||||||
ifeq ($(ARCH),xtensa)
|
ifeq ($(ARCH),xtensa)
|
||||||
ARCH:=$(ARCH)_$(call qstrip,$(BR2_xtensa_core_name))
|
ARCH:=$(ARCH)_$(call qstrip,$(BR2_xtensa_core_name))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
WGET:=$(call qstrip,$(BR2_WGET)) $(SPIDER) $(QUIET)
|
WGET:=$(call qstrip,$(BR2_WGET)) $(SPIDER) $(QUIET)
|
||||||
SVN_CO:=$(call qstrip,$(BR2_SVN_CO)) $(QUIET)
|
SVN_CO:=$(call qstrip,$(BR2_SVN_CO)) $(QUIET)
|
||||||
SVN_UP:=$(call qstrip,$(BR2_SVN_UP)) $(QUIET)
|
SVN_UP:=$(call qstrip,$(BR2_SVN_UP)) $(QUIET)
|
||||||
|
@ -96,19 +96,32 @@ TARGET_LDFLAGS=--sysroot $(STAGING_DIR)/
|
|||||||
endif
|
endif
|
||||||
#########################################################################
|
#########################################################################
|
||||||
|
|
||||||
|
# Compute GNU_TARGET_NAME and REAL_GNU_TARGET_NAME
|
||||||
|
GNU_TARGET_NAME=$(ARCH)-linux
|
||||||
|
|
||||||
|
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||||
|
LIBC=uclibc
|
||||||
|
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL_UCLIBC),y)
|
||||||
|
LIBC=uclibc
|
||||||
|
else
|
||||||
|
LIBC=glibc
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_ARM_EABI),y)
|
||||||
|
ABI=gnueabi
|
||||||
|
endif
|
||||||
|
|
||||||
|
REAL_GNU_TARGET_NAME=$(ARCH)-unknown-linux-$(LIBC)$(ABI)
|
||||||
|
|
||||||
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
ifeq ($(BR2_TOOLCHAIN_BUILDROOT),y)
|
||||||
|
|
||||||
# Quotes are needed for spaces et al in path components.
|
# Quotes are needed for spaces et al in path components.
|
||||||
TARGET_PATH="$(TOOLCHAIN_DIR)/bin:$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:$(PATH)"
|
TARGET_PATH="$(TOOLCHAIN_DIR)/bin:$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(STAGING_DIR)/bin:$(STAGING_DIR)/usr/bin:$(PATH)"
|
||||||
GNU_TARGET_NAME=$(ARCH)-linux
|
|
||||||
REAL_GNU_TARGET_NAME=$(ARCH)$(GNU_TARGET_SUFFIX)
|
|
||||||
TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-
|
TARGET_CROSS=$(STAGING_DIR)/usr/bin/$(REAL_GNU_TARGET_NAME)-
|
||||||
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
else ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
||||||
TOOLCHAIN_EXTERNAL_PREFIX:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))
|
TOOLCHAIN_EXTERNAL_PREFIX:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))
|
||||||
TOOLCHAIN_EXTERNAL_PATH:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH))
|
TOOLCHAIN_EXTERNAL_PATH:=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH))
|
||||||
TARGET_PATH="$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(TOOLCHAIN_DIR)/bin:$(TOOLCHAIN_EXTERNAL_PATH)/bin:$(PATH)"
|
TARGET_PATH="$(HOST_DIR)/bin:$(HOST_DIR)/usr/bin:$(HOST_DIR)/usr/sbin/:$(TOOLCHAIN_DIR)/bin:$(TOOLCHAIN_EXTERNAL_PATH)/bin:$(PATH)"
|
||||||
REAL_GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX)
|
|
||||||
GNU_TARGET_NAME=$(TOOLCHAIN_EXTERNAL_PREFIX)
|
|
||||||
TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
|
TARGET_CROSS=$(TOOLCHAIN_EXTERNAL_PATH)/bin/$(TOOLCHAIN_EXTERNAL_PREFIX)-
|
||||||
endif
|
endif
|
||||||
TARGET_AR=$(TARGET_CROSS)ar
|
TARGET_AR=$(TARGET_CROSS)ar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user