Commit 19cb825c authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Back merge modifications from toolchains-1.4.x

parent 9a1704a8
......@@ -61,6 +61,16 @@ HOST_PATH = $(TOOLCHAINS_BASE_PATH)/$(HOST_DIR)
####### Additional Available Toolchains:
#######
# All ARM 32-bit series with Newlib
TOOLCHAIN_ARM32_NEWLIB = arm32-newlib
ARM32_NEWLIB_ARCH = arm-none-eabi
ARM32_NEWLIB_DIR = arm-NONE-eabi-newlib
ARM32_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(ARM32_NEWLIB_DIR)
### |---Toolchain-spec-handy-ruler----------------|
ARM32_NEWLIB_SPEC = All ARM 32-bit series newlib toolchain
# AT91SAM7S
TOOLCHAIN_AT91SAM7S_NEWLIB = at91sam7s-newlib
......@@ -101,24 +111,6 @@ OMAP543X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(OMAP543X_GLIBC_DIR)
OMAP543X_GLIBC_SPEC = Texas OMAP543x GNU Libc toolchain
# AllWinner A10
TOOLCHAIN_A1X_NEWLIB = a1x-newlib
A1X_NEWLIB_ARCH = arm-a1x-eabi
A1X_NEWLIB_DIR = arm-A1X-eabi-newlib
A1X_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(A1X_NEWLIB_DIR)
### |---Toolchain-spec-handy-ruler----------------|
A1X_NEWLIB_SPEC = Allwinner A1x newlib toolchain
# AllWinner A20
TOOLCHAIN_A2X_NEWLIB = a2x-newlib
A2X_NEWLIB_ARCH = arm-a2x-eabi
A2X_NEWLIB_DIR = arm-A2X-eabi-newlib
A2X_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(A2X_NEWLIB_DIR)
### |---Toolchain-spec-handy-ruler----------------|
A2X_NEWLIB_SPEC = Allwinner A2x newlib toolchain
# AllWinner A10-GLIBC
TOOLCHAIN_A1X_GLIBC = a1x-glibc
......@@ -139,15 +131,6 @@ A2X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(A2X_GLIBC_DIR)
A2X_GLIBC_SPEC = Allwinner A2x GNU Libc toolchain
# AllWinner H3-NEWLIB
TOOLCHAIN_H3_NEWLIB = h3-newlib
H3_NEWLIB_ARCH = arm-h3-eabi
H3_NEWLIB_DIR = arm-H3-eabi-newlib
H3_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(H3_NEWLIB_DIR)
### |---Toolchain-spec-handy-ruler----------------|
H3_NEWLIB_SPEC = Allwinner H3 newlib toolchain
# AllWinner H3-GLIBC
TOOLCHAIN_H3_GLIBC = h3-glibc
......@@ -177,15 +160,6 @@ H5_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(H5_GLIBC_DIR)
H5_GLIBC_SPEC = Allwinner H5 GNU Libc toolchain
# Amlogic S8XX
TOOLCHAIN_S8XX_NEWLIB = s8xx-newlib
S8XX_NEWLIB_ARCH = arm-s8xx-eabi
S8XX_NEWLIB_DIR = arm-S8XX-eabi-newlib
S8XX_NEWLIB_PATH = $(TOOLCHAINS_BASE_PATH)/$(S8XX_NEWLIB_DIR)
### |---Toolchain-spec-handy-ruler----------------|
S8XX_NEWLIB_SPEC = Amlogic S8xx newlib toolchain
# Amlogic S8XX-GLIBC
TOOLCHAIN_S8XX_GLIBC = s8xx-glibc
......@@ -260,6 +234,15 @@ RK33XX_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(RK33XX_GLIBC_DIR)
### |---Toolchain-spec-handy-ruler----------------|
RK33XX_GLIBC_SPEC = Rockchip RK33xx GNU Libc toolchain
# Rockchip RK339X-GLIBC
TOOLCHAIN_RK339X_GLIBC = rk339x-glibc
RK339X_GLIBC_ARCH = aarch64-rk339x-linux-gnu
RK339X_GLIBC_DIR = aarch64-RK339X-linux-glibc
RK339X_GLIBC_PATH = $(TOOLCHAINS_BASE_PATH)/$(RK339X_GLIBC_DIR)
### |---Toolchain-spec-handy-ruler----------------|
RK339X_GLIBC_SPEC = Rockchip RK339x GNU Libc toolchain
# Rockchip A33XX-GLIBC
TOOLCHAIN_A33XX_GLIBC = a33xx-glibc
......
......@@ -3,30 +3,21 @@
BUILD_HOST = true
# a1x-newlib:
BUILD_A1X_NEWLIB = true
# arm-none-eabi-newlib:
BUILD_ARM32_NEWLIB = true
# a2x-newlib:
BUILD_A2X_NEWLIB = true
# a33xx-newlib:
BUILD_A33XX_NEWLIB = true
# h3-newlib:
BUILD_H3_NEWLIB = true
# a9xx-newlib:
BUILD_A9XX_NEWLIB = true
# h5-newlib:
BUILD_H5_NEWLIB = true
# s8xx-newlib:
BUILD_S8XX_NEWLIB = true
# a9xx-newlib:
BUILD_A9XX_NEWLIB = true
# s9xx-newlib:
BUILD_S9XX_NEWLIB = true
# a33xx-newlib:
BUILD_A33XX_NEWLIB = true
# rk33xx-newlib:
BUILD_RK33XX_NEWLIB = true
......@@ -50,6 +41,21 @@ BUILD_H3_GLIBC = true
# h5-glibc:
BUILD_H5_GLIBC = true
# imx6-glibc:
BUILD_IMX6_GLIBC = true
# jz47xx-glibc:
BUILD_JZ47XX_GLIBC = true
# p5600-glibc:
BUILD_P5600_GLIBC = true
# omap543x-glibc:
BUILD_OMAP543X_GLIBC = true
# rk328x-glibc:
BUILD_RK328X_GLIBC = true
# s8xx-glibc:
BUILD_S8XX_GLIBC = true
......@@ -62,24 +68,12 @@ BUILD_A9XX_GLIBC = true
# rk33xx-glibc:
BUILD_RK33XX_GLIBC = true
# rk339x-glibc:
BUILD_RK339X_GLIBC = true
# a33xx-glibc:
BUILD_A33XX_GLIBC = true
# rk328x-glibc:
BUILD_RK328X_GLIBC = true
# imx6-glibc:
BUILD_IMX6_GLIBC = true
# omap543x-glibc:
BUILD_OMAP543X_GLIBC = true
# jz47xx-glibc:
BUILD_JZ47XX_GLIBC = true
# p5600-glibc:
BUILD_P5600_GLIBC = true
# power8-glibc:
BUILD_POWER8_GLIBC = true
......
COMPONENT_TARGETS = $(TOOLCHAIN_A1X_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A2X_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_H3_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_H5_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_S8XX_NEWLIB)
COMPONENT_TARGETS = $(TOOLCHAIN_ARM32_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_H5_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_AT91SAM7S_NEWLIB)
......@@ -26,6 +23,7 @@ COMPONENT_TARGETS += $(TOOLCHAIN_S8XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK339X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_POWER8_GLIBC)
......@@ -90,49 +88,24 @@ endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-cpu=cortex-a8
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-fpu=neon
extra_configure_switches += --with-abi=aapcs
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A2X_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-cpu=cortex-a7
extra_configure_switches += --with-arch=armv7ve
extra_configure_switches += --with-fpu=neon-vfpv4
extra_configure_switches += --with-abi=aapcs
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H3_NEWLIB))
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_ARM32_NEWLIB))
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
extra_configure_switches += --disable-werror
extra_configure_switches += --enable-interwork
extra_configure_switches += --enable-plugins
extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_NEWLIB))
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
extra_configure_switches += --enable-multiarch
extra_configure_switches += --disable-multilib
extra_configure_switches += --with-cpu=cortex-a53
extra_configure_switches += --with-arch=armv8-a
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-abi=aapcs
extra_configure_switches += --enable-plugins
extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S8XX_NEWLIB))
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_NEWLIB))
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
extra_configure_switches += --disable-werror
extra_configure_switches += --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-abi=aapcs
extra_configure_switches += --enable-plugins
extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
endif
......@@ -142,28 +115,30 @@ extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
extra_configure_switches += --disable-werror
extra_configure_switches += --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-abi=aapcs
extra_configure_switches += --enable-plugins
extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_NEWLIB))
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H5_NEWLIB))
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
extra_configure_switches += --enable-multiarch
extra_configure_switches += --disable-multilib
extra_configure_switches += --disable-multiarch
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-cpu=cortex-a53
extra_configure_switches += --with-arch=armv8-a
extra_configure_switches += --enable-plugins
extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_NEWLIB))
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_NEWLIB))
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
extra_configure_switches += --disable-werror
extra_configure_switches += --enable-interwork
extra_configure_switches += --with-cpu=cortex-m0
extra_configure_switches += --with-arch=armv6-m
extra_configure_switches += --disable-multiarch
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-cpu=cortex-a53
extra_configure_switches += --with-arch=armv8-a
extra_configure_switches += --enable-plugins
extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
endif
......@@ -171,8 +146,8 @@ endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_NEWLIB))
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
extra_configure_switches += --enable-multiarch
extra_configure_switches += --disable-multilib
extra_configure_switches += --disable-multiarch
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-cpu=cortex-a53
extra_configure_switches += --with-arch=armv8-a
extra_configure_switches += --enable-plugins
......@@ -180,6 +155,8 @@ extra_configure_switches += --with-sysroot=$(TOOLCHAIN_PATH)/$(TARGET)
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_AT91SAM7S_NEWLIB))
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-float=soft
......@@ -324,6 +301,22 @@ extra_configure_switches += --with-abi=lp64
extra_configure_switches += --with-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
# experimental gold linker( DEFAULT_LD=ld.bfd ):
extra_configure_switches += --enable-gold=yes
extra_configure_switches += --enable-ld=default
extra_configure_switches += --enable-werror=no
# standard options:
extra_configure_switches += --disable-multilib
extra_configure_switches += --with-cpu=cortex-a53
extra_configure_switches += --with-arch=armv8-a
extra_configure_switches += --with-fpu=neon-fp-armv8
extra_configure_switches += --with-abi=lp64
extra_configure_switches += --with-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A33XX_GLIBC)),)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=https://radix.pro'
......@@ -385,7 +378,7 @@ extra_configure_switches += --enable-werror=no
# standard options:
extra_configure_switches += --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-arch=armv7ve
extra_configure_switches += --with-tune=cortex-a15
extra_configure_switches += --with-fpu=neon-vfpv4
extra_configure_switches += --with-abi=aapcs-linux
......
This diff is collapsed.
../../../sources/GNU/gcc/patches/gcc-6.5.0-a1x-newlib.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-a2x-newlib.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-a33xx-multilib.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-a33xx-newlib.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-a9xx-multilib.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-a9xx-newlib.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-h3-multilib.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-s8xx-multilib.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libstdc++-docs.patch -p0
../../../sources/GNU/gcc/patches/gcc-6.5.0-libtool-no-rpath.patch -p0
COMPONENT_TARGETS = $(TOOLCHAIN_A1X_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A2X_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_H3_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_H5_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_S8XX_NEWLIB)
COMPONENT_TARGETS = $(TOOLCHAIN_ARM32_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_H5_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A1X_GLIBC)
......@@ -23,6 +20,7 @@ COMPONENT_TARGETS += $(TOOLCHAIN_S8XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_S9XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_A9XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK33XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK339X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_A33XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_POWER8_GLIBC)
......@@ -69,33 +67,28 @@ include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_NEWLIB))
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_ARM32_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a8
extra_configure_switches += --with-fpu=neon
extra_configure_switches += --with-abi=aapcs
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A2X_NEWLIB))
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=armv7ve
extra_configure_switches += --with-tune=cortex-a7
extra_configure_switches += --with-fpu=neon-vfpv4
extra_configure_switches += --with-arch=armv6-m
extra_configure_switches += --with-tune=cortex-m0
extra_configure_switches += --with-float=soft
extra_configure_switches += --with-abi=aapcs
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_H3_NEWLIB))
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A9XX_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a7
extra_configure_switches += --with-fpu=neon-vfpv4
extra_configure_switches += --with-arch=armv7-m
extra_configure_switches += --with-tune=cortex-m3
extra_configure_switches += --with-fpu=fpv4-sp-d16
extra_configure_switches += --with-float=hard
extra_configure_switches += --with-abi=aapcs
endif
......@@ -105,39 +98,12 @@ extra_configure_switches += --disable-multilib
extra_configure_switches += --with-arch=armv8-a
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S8XX_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-fpu=vfpv4
extra_configure_switches += --with-float=hard
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A9XX_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=armv7-m
extra_configure_switches += --with-fpu=fpv4-sp-d16
extra_configure_switches += --with-float=hard
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_S9XX_NEWLIB))
extra_configure_switches = --enable-multiarch
extra_configure_switches += --disable-multilib
extra_configure_switches += --with-arch=armv8-a
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A33XX_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=armv6-m
extra_configure_switches += --with-tune=cortex-m0
extra_configure_switches += --with-abi=aapcs
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_RK33XX_NEWLIB))
extra_configure_switches = --enable-multiarch
extra_configure_switches += --disable-multilib
......@@ -219,7 +185,7 @@ ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-arch=armv7ve
extra_configure_switches += --with-tune=cortex-a15
extra_configure_switches += --with-fpu=neon-vfpv4
extra_configure_switches += --with-abi=aapcs-linux
......@@ -273,6 +239,15 @@ extra_configure_switches += --with-abi=lp64
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK339X_GLIBC)),)
extra_configure_switches += --disable-multilib
extra_configure_switches += --with-arch=armv8-a
extra_configure_switches += --with-cpu=cortex-a53
extra_configure_switches += --with-fpu=neon-fp-armv8
extra_configure_switches += --with-abi=lp64
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A33XX_GLIBC)),)
extra_configure_switches += --disable-multilib
extra_configure_switches += --with-arch=armv8-a
......
COMPONENT_TARGETS = $(TOOLCHAIN_POWER8_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_POWER9_GLIBC)
FLAVOURS = headers full
include ../../../build-system/config.mk
SOURCE_REQUIRES = sources/GNU/glibc
ifeq ($(FLAVOUR),headers)
REQUIRES = core/linux/4.19.3
endif
ifeq ($(FLAVOUR),full)
REQUIRES = core/gcc/6.5.0^second
endif
# ======= __END_OF_REQUIRES__ =======
tar_xz_archive = $(SRC_PACKAGE_PATH)/GNU/glibc/glibc-2.27.tar.xz
SRC_ARCHIVE = $(tar_xz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/glibc-2.27
src_dir_name = glibc-2.27
src_done = $(TARGET_BUILD_DIR)/.source-done
PATCHES = PATCHES
full_dir = $(TARGET_BUILD_DIR)/build-full
headers_dir = $(TARGET_BUILD_DIR)/build-headers
sysroot_dir = $(TOOLCHAIN_PATH)/$(TARGET)/sys-root
headers_target = $(TARGET_BUILD_DIR)/.headers-installed
full_target = $(TARGET_BUILD_DIR)/.installed
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
env_sysroot = install_root=$(sysroot_dir)
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
environment += CC="$(CC)"
environment += AR=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ar
environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC="$(CCACHE)/usr/bin/gcc"
LIBSUFFIX =
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC))
environment += CFLAGS="-g -O3 -mcpu=power8 -mlong-double-128"
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_POWER9_GLIBC))
environment += CFLAGS="-g -O3 -mcpu=power9 -mlong-double-128"
endif
LIBSUFFIX = 32
TARGET32 = $(shell echo $(TARGET) | sed 's/ppc64/ppc/')
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_POWER8_GLIBC) $(TOOLCHAIN_POWER9_GLIBC)),)
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
extra_configure_switches += --with-headers=$(sysroot_dir)/usr/include
ifeq ($(FLAVOUR),headers)
extra_configure_switches += --with-binutils=$(TOOLCHAIN_PATH)/bin
extra_configure_switches += --enable-kernel=3.2.0
extra_configure_switches += --disable-profile
extra_configure_switches += --without-gd
extra_configure_switches += --without-cvs
endif
ifeq ($(FLAVOUR),full)
extra_configure_switches += --with-binutils=$(TOOLCHAIN_PATH)/bin
extra_configure_switches += --enable-kernel=3.2.0
extra_configure_switches += --disable-profile
extra_configure_switches += --without-gd
extra_configure_switches += --without-cvs
endif
endif
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
$(APPLY_PATCHES)
@touch $@
$(headers_target): $(src_done)
@mkdir -p $(headers_dir)
@cd $(headers_dir) && $(env_sysroot) $(environment) ../$(src_dir_name)/configure \
--prefix=/usr \
--build=$(BUILD) \
--host=$(TARGET32) \
$(extra_configure_switches)
@cd $(headers_dir) && $(MAKE) -j1 install-headers \
install-bootstrap-headers=yes $(env_sysroot)
@cd $(headers_dir) && $(environment) $(MAKE) -j1 csu/subdir_lib
# ======= install 'lib-names-32.h' =======
@mkdir -p $(sysroot_dir)/usr/include/gnu
@install --mode=0644 $(headers_dir)/gnu/lib-names-32.h $(sysroot_dir)/usr/include/gnu
# ========================================
@cd $(headers_dir) && $(environment) $(MAKE) -j1 csu/subdir_install $(env_sysroot)
@$(environment) $(CC) -nostdlib -nostartfiles -shared -x c /dev/null \
-o $(sysroot_dir)/usr/lib$(LIBSUFFIX)/libc.so
@echo " $(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/README
@touch $@
$(full_target): $(src_done)
@mkdir -p $(full_dir)
@echo "slibdir=/lib$(LIBSUFFIX)" >> $(full_dir)/configparms
@cd $(full_dir) && $(env_sysroot) $(environment) ../$(src_dir_name)/configure \
--prefix=/usr \
--build=$(BUILD) \
--host=$(TARGET32) \
$(extra_configure_switches)
@cd $(full_dir) && $(environment) $(MAKE) all
@cd $(full_dir) && $(environment) $(MAKE) -j1 install $(env_sysroot)
@echo " $(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/README
@touch $@
../../../sources/GNU/glibc/patches/glibc-2.27-i18n.patch -p0
../../../sources/GNU/glibc/patches/glibc-2.27-malloc-hooks.patch -p0
../../../sources/GNU/glibc/patches/glibc-2.27-sparc32-atomics.patch -p0
../../../sources/GNU/glibc/patches/glibc-2.27-x86-IFUNC-revert.patch -p0
../../../sources/GNU/glibc/patches/glibc-2.27-c-utf8-locale.patch -p0
COMPONENT_TARGETS = $(TOOLCHAIN_R1000_GLIBC)
FLAVOURS = headers full
include ../../../build-system/config.mk
SOURCE_REQUIRES = sources/GNU/glibc
ifeq ($(FLAVOUR),headers)
REQUIRES = core/linux/4.19.3
endif
ifeq ($(FLAVOUR),full)
REQUIRES = core/gcc/6.5.0^second
endif
# ======= __END_OF_REQUIRES__ =======