Commit 0ea06e47 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

toolchains version 1.1.1

git-svn-id: https://svn.radix.pro/svn/toolchains/trunk@133 0df74aab-45ad-4799-93a1-122938110d35
parent 653229ca
......@@ -148,7 +148,7 @@ extra_configure_switches += --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-sysroot=$(sysroot_dir)
endif
......
......@@ -169,7 +169,7 @@ extra_configure_switches += --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-sysroot=$(sysroot_dir)
endif
......
......@@ -180,7 +180,7 @@ extra_configure_switches += --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-sysroot=$(sysroot_dir)
endif
......
This diff is collapsed.
../../../sources/GNU/binutils/patches/binutils-2.26-export-demangle.patch -p0
../../../sources/GNU/binutils/patches/binutils-2.26-no-config-check.patch -p0
../../../sources/uClinux/elf2flt/patches/elf2flt-1.64-arm.patch -p0
......@@ -121,7 +121,7 @@ environment += CFLAGS="-g -O3 -march=armv7ve -mtune=cortex-a7 -mfpu=neon-vfpv4 -
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_IMX6_EGLIBC))
environment += CFLAGS="-g -O3 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard"
environment += CFLAGS="-g -O3 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard"
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_OMAP35X_EGLIBC))
......
......@@ -357,7 +357,7 @@ ifeq ($(TOOLCHAIN),$(TOOLCHAIN_IMX6_EGLIBC))
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
# add
extra_configure_switches += --with-float=softfp
......
......@@ -384,7 +384,7 @@ ifeq ($(TOOLCHAIN),$(TOOLCHAIN_IMX6_EGLIBC))
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
# add
extra_configure_switches += --with-float=hard
......
......@@ -492,7 +492,7 @@ ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_EGLIBC) $(TOOLCHAIN_IMX6_GLIBC)),)
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
# add
extra_configure_switches += --with-float=hard
......
......@@ -70,6 +70,43 @@ endif
endif
ifneq ($(filter $(TOOLCHAIN_VERSION),1.1.1),)
ifneq ($(findstring newlib, $(TOOLCHAIN)),)
ifeq ($(FLAVOUR),static)
REQUIRES = core/newlib/2.3.0-20160226^headers
endif
ifeq ($(FLAVOUR),full)
REQUIRES = core/newlib/2.3.0-20160226^full
endif
endif
ifneq ($(findstring uclibc, $(TOOLCHAIN)),)
ifeq ($(FLAVOUR),static)
REQUIRES = core/binutils/2.26^flat
endif
ifeq ($(FLAVOUR),second)
REQUIRES = core/uclibc/0.9.33.2^headers
endif
ifeq ($(FLAVOUR),full)
REQUIRES = core/uclibc/0.9.33.2^full
endif
endif
ifneq ($(findstring -glibc, $(TOOLCHAIN)),)
ifeq ($(FLAVOUR),static)
REQUIRES = core/binutils/2.26
endif
ifeq ($(FLAVOUR),second)
REQUIRES = core/glibc/2.23^headers
endif
ifeq ($(FLAVOUR),full)
REQUIRES = core/glibc/2.23^full
endif
endif
endif
# ======= __END_OF_REQUIRES__ =======
tar_bz2_archive = $(SRC_PACKAGE_PATH)/GNU/gcc/gcc-5.3.0/gcc-5.3.0.tar.bz2
......@@ -306,7 +343,9 @@ endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_GLIBC)),)
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=http://www.radix.pro'
extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a8
extra_configure_switches += --with-fpu=neon
......@@ -357,7 +396,9 @@ endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=http://www.radix.pro'
extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=armv7ve
extra_configure_switches += --with-tune=cortex-a7
extra_configure_switches += --with-fpu=neon-vfpv4
......@@ -461,10 +502,12 @@ endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC)),)
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=http://www.radix.pro'
extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
# add
extra_configure_switches += --with-float=hard
......@@ -518,7 +561,9 @@ endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP35X_GLIBC)),)
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=http://www.radix.pro'
extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a8
extra_configure_switches += --with-fpu=neon
......@@ -569,7 +614,9 @@ endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP543X_GLIBC)),)
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=http://www.radix.pro'
extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a15
extra_configure_switches += --with-fpu=neon-vfpv4
......@@ -626,7 +673,9 @@ endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_DM644X_GLIBC)),)
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=http://www.radix.pro'
extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-float=soft
extra_configure_switches += --with-arch=armv5te
extra_configure_switches += --with-tune=arm926ej-s
......@@ -672,7 +721,9 @@ endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_BCM74X_GLIBC)),)
extra_configure_switches = --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=http://www.radix.pro'
extra_configure_switches += --libdir=$(TOOLCHAIN_PATH)/lib$(LIBSUFFIX)
extra_configure_switches += --with-arch=mips32
extra_configure_switches += --with-float=hard
extra_configure_switches += --enable-target-optspace
......
......@@ -98,7 +98,7 @@ extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
......
COMPONENT_TARGETS = $(TOOLCHAIN_A1X_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A2X_NEWLIB)
COMPONENT_TARGETS += $(TOOLCHAIN_A1X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_A2X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_IMX6_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_JZ47XX_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_P5600_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_OMAP35X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_OMAP543X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_RK328X_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_I486_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_GLIBC)
include ../../../build-system/config.mk
SOURCE_REQUIRES = sources/GNU/gdb
ifneq ($(filter $(TOOLCHAIN_VERSION),1.1.1),)
REQUIRES = core/gcc/5.3.0^full
endif
# ======= __END_OF_REQUIRES__ =======
tar_gz_archive = $(SRC_PACKAGE_PATH)/GNU/gdb/gdb-7.11.tar.gz
SRC_ARCHIVE = $(tar_gz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/gdb-7.11
src_dir_name = gdb-7.11
src_done = $(TARGET_BUILD_DIR)/.source-done
build_dir = $(TARGET_BUILD_DIR)/build
sysroot_dir = $(TOOLCHAIN_PATH)/$(TARGET)/sys-root
build_target = $(TARGET_BUILD_DIR)/.built
install_target = $(TARGET_BUILD_DIR)/.installed
environment = PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
BUILD_TARGETS = $(build_target)
BUILD_TARGETS += $(install_target)
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_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))
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-abi=aapcs
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A1X_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-tune=cortex-a8
extra_configure_switches += --with-fpu=neon
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_A2X_GLIBC)),)
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-abi=aapcs-linux
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_IMX6_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-tune=cortex-a9
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch-32=mips32r2
extra_configure_switches += --with-arch-64=mips64r2
extra_configure_switches += --with-float=hard
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-arch=mips32r5
extra_configure_switches += --with-tune=p5600
extra_configure_switches += --with-float=hard
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_OMAP35X_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-tune=cortex-a8
extra_configure_switches += --with-fpu=neon
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
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-tune=cortex-a15
extra_configure_switches += --with-fpu=neon-vfpv4
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_RK328X_GLIBC)),)
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-a17
extra_configure_switches += --with-fpu=neon-vfpv4
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_I486_GLIBC)),)
extra_configure_switches += --with-arch=i486
extra_configure_switches += --with-tune=i686
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC)),)
extra_configure_switches += --with-multilib-list=m64,m32
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
@touch $@
$(build_target): $(src_done)
@mkdir -p $(build_dir)
@cd $(build_dir) && $(environment) ../$(src_dir_name)/configure \
--prefix=$(TOOLCHAIN_PATH) \
--target=$(TARGET) \
--datadir=$(TOOLCHAIN_PATH)/share \
--infodir=$(TOOLCHAIN_PATH)/share/info \
--mandir=$(TOOLCHAIN_PATH)/share/man \
$(extra_configure_switches)
@$(MAKE) $(environment) -C $(build_dir) all
@touch $@
$(install_target): $(build_target)
@$(MAKE) $(environment) -j1 -C $(build_dir) install
@echo "$(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/components.txt
@touch $@
......@@ -100,7 +100,7 @@ extra_configure_switches += --enable-multilib
extra_configure_switches += --disable-libssp
extra_configure_switches += --with-cpu=cortex-a9
extra_configure_switches += --with-arch=armv7-a
extra_configure_switches += --with-fpu=vfpv3-d16
extra_configure_switches += --with-fpu=vfpv3
extra_configure_switches += --with-abi=aapcs-linux
extra_configure_switches += --with-build-sysroot=$(sysroot_dir)
endif
......
......@@ -132,7 +132,7 @@ environment += CFLAGS="-g -O2"
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC))
environment += CFLAGS="-g -O3 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard"
environment += CFLAGS="-g -O3 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard"
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
......
......@@ -136,7 +136,7 @@ environment += CFLAGS="-g -O2"
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_IMX6_GLIBC))
environment += CFLAGS="-g -O3 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -mfloat-abi=hard"
environment += CFLAGS="-g -O3 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3 -mfloat-abi=hard"
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
......
COMPONENT_TARGETS = $(TOOLCHAIN_X86_64_GLIBC)
FLAVOURS = headers full
include ../../../build-system/config.mk
SOURCE_REQUIRES = sources/GNU/glibc
ifneq ($(filter $(TOOLCHAIN_VERSION),1.1.1),)
ifeq ($(FLAVOUR),headers)
REQUIRES = core/linux/4.4.3
endif
ifeq ($(FLAVOUR),full)
REQUIRES = core/gcc/5.3.0^second
endif
endif
# ======= __END_OF_REQUIRES__ =======
tar_xz_archive = $(SRC_PACKAGE_PATH)/GNU/glibc/glibc-2.23.tar.xz
SRC_ARCHIVE = $(tar_xz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/glibc-2.23
src_dir_name = glibc-2.23
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_X86_64_GLIBC))
environment += CFLAGS="-g -O3 -march=i486 -mtune=i686"
LIBSUFFIX = 32
endif
TARGET32 = $(shell echo $(TARGET) | sed 's/x86_64/i486/')
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_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=2.6.36
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=2.6.36
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)/components.txt
@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)/components.txt
@touch $@
../../../sources/GNU/glibc/patches/glibc-2.23-i18n.patch -p0
This diff is collapsed.
../../../sources/GNU/glibc/patches/glibc-2.23-i18n.patch -p0
COMPONENT_TARGETS = $(TOOLCHAIN_I486_EGLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_EGLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_I486_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_P5600_GLIBC)
include ../../../build-system/config.mk
SOURCE_REQUIRES = sources/Linux/v4.x
ifneq ($(filter $(TOOLCHAIN_VERSION),1.1.1),)
REQUIRES = core/gcc/5.3.0^static
endif
# ======= __END_OF_REQUIRES__ =======
tar_xz_archive = $(SRC_PACKAGE_PATH)/Linux/v4.x/linux-4.1.18.tar.xz
SRC_ARCHIVE = $(tar_xz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/linux-4.1.18
src_done = $(TARGET_BUILD_DIR)/.source-done
sysroot_dir = $(TOOLCHAIN_PATH)/$(TARGET)/sys-root
headers_target = $(TARGET_BUILD_DIR)/.headers-installed
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_X86_64_EGLIBC) \
$(TOOLCHAIN_I486_EGLIBC) \
$(TOOLCHAIN_X86_64_GLIBC) \
$(TOOLCHAIN_I486_GLIBC)),)
arch = x86
endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_P5600_GLIBC)),)
arch = mips
endif
BUILD_TARGETS = $(headers_target)
include ../../../build-system/core.mk
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
@touch $@
$(SRC_DIR)/include/generated/uapi/linux/version.h: $(src_done)
@touch $(SRC_DIR)/.config
@$(MAKE) -C $(SRC_DIR) include/generated/uapi/linux/version.h
$(sysroot_dir)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/generated/uapi/linux/version.h
@$(MAKE) -C $(SRC_DIR) headers_install \
ARCH=$(arch) CROSS_COMPILE=$(TOOLCHAIN_PATH)/bin/$(TARGET)- \
INSTALL_HDR_PATH=$(sysroot_dir)/usr
@touch $@
$(headers_target): $(sysroot_dir)/usr/include/linux/autoconf.h
@( cd $(sysroot_dir)/usr/include ; \
for file in `find . -name *.install*` ; do \
rm -f $$file ; \
done ; \
)
@echo "$(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/components.txt
@touch $@
COMPONENT_TARGETS = $(TOOLCHAIN_I486_EGLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_EGLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_I486_GLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_GLIBC)
include ../../../build-system/config.mk
SOURCE_REQUIRES = sources/Linux/v4.x
ifneq ($(filter $(TOOLCHAIN_VERSION),1.1.1),)
REQUIRES = core/gcc/5.3.0^static
endif
# ======= __END_OF_REQUIRES__ =======
tar_xz_archive = $(SRC_PACKAGE_PATH)/Linux/v4.x/linux-4.4.3.tar.xz
SRC_ARCHIVE = $(tar_xz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/linux-4.4.3
src_done = $(TARGET_BUILD_DIR)/.source-done
sysroot_dir = $(TOOLCHAIN_PATH)/$(TARGET)/sys-root