Commit d7ee6ec2 authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

remove linux-3.5.4; tune jz47xx binutils,gcc,glibc

git-svn-id: https://svn.radix.pro/svn/toolchains/trunk@108 0df74aab-45ad-4799-93a1-122938110d35
parent 066622a9
COMPONENT_TARGETS = $(TOOLCHAIN_AT91SAM7S_NEWLIB)
include ../../../build-system/config.mk
SOURCE_REQUIRES = sources/GNU/binutils
# ======= __END_OF_REQUIRES__ =======
tar_bz2_archive = $(SRC_PACKAGE_PATH)/GNU/binutils/binutils-2.16.1a.tar.bz2
SRC_ARCHIVE = $(tar_bz2_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/binutils-2.16.1
src_dir_name = binutils-2.16.1
src_done = $(SRC_DIR)/.source-done
build_dir = $(TARGET_BUILD_DIR)/build
install_dir = $(TOOLCHAIN_PATH)
build_target = $(TARGET_BUILD_DIR)/.built
install_target = $(TARGET_BUILD_DIR)/.installed
BUILD_TARGETS = $(build_target)
BUILD_TARGETS += $(install_target)
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_DM644X_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-float=soft
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_AT91SAM7S_NEWLIB))
extra_configure_switches = --enable-interwork
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-float=soft
endif
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
@touch $@
$(build_target): $(src_done)
@mkdir -p $(build_dir)
@cd $(build_dir) && ../$(src_dir_name)/configure \
--prefix=$(TOOLCHAIN_PATH) \
--build=$(HOST) \
--host=$(HOST) \
--target=$(TARGET) \
--infodir=$(TOOLCHAIN_PATH)/share/info \
--mandir=$(TOOLCHAIN_PATH)/share/man \
--disable-nls \
$(extra_configure_switches)
@$(MAKE) -C $(build_dir)
@$(MAKE) -C $(build_dir) info
@touch $@
$(install_target): $(build_target)
@mkdir -p $(install_dir)
@mkdir -p $(TOOLCHAIN_PATH)/include
@mkdir -p $(TOOLCHAIN_PATH)/lib
@$(MAKE) -C $(build_dir) install
@cp $(TARGET_BUILD_DIR)/$(src_dir_name)/include/libiberty.h $(TOOLCHAIN_PATH)/include/libiberty.h
@$(MAKE) -C $(build_dir) install-info
@cp $(build_dir)/libiberty/libiberty.info $(TOOLCHAIN_PATH)/share/info/libiberty.info
@echo "$(subst $(TOP_BUILD_DIR_ABS)/,,$(CURDIR))$(if $(FLAVOUR),:$(FLAVOUR),)" >> $(TOOLCHAIN_PATH)/components.txt
@touch $@
......@@ -236,10 +236,10 @@ endif
ifneq ($(filter $(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC)),)
extra_configure_switches = '--with-pkgversion=Radix $(TOOLCHAINS_VERSION)'
extra_configure_switches += '--with-bugurl=http://www.radix.pro'
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-arch=mips32r2
extra_configure_switches += --enable-werror=no
extra_configure_switches += --enable-poison-system-directories
extra_configure_switches += --enable-plugins
extra_configure_switches += --enable-multilib
extra_configure_switches += --with-sysroot=$(sysroot_dir)
endif
......
......@@ -800,7 +800,7 @@ endif
ifeq ($(FLAVOUR),full)
extra_configure_switches += --with-sysroot=$(sysroot_dir)
extra_configure_switches += --enable-languages=c,c++,objc,obj-c++,java,fortran,go,lto,ada
extra_configure_switches += --disable-__cxa_atexit
extra_configure_switches += --enable-__cxa_atexit
extra_configure_switches += --enable-shared
extra_configure_switches += --enable-threads
extra_configure_switches += --enable-nls
......
......@@ -136,7 +136,7 @@ environment += CFLAGS="-g -O3 -march=armv7-a -mtune=cortex-a9 -mfpu=vfpv3-d16 -m
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_JZ47XX_GLIBC))
environment += CFLAGS="-g -O3 -march=mips32r2 -mel -mhard-float"
environment += CFLAGS="-g -O2 -march=mips32r2 -mhard-float"
endif
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_OMAP35X_GLIBC))
......
......@@ -38,8 +38,8 @@ endif
# ======= __END_OF_REQUIRES__ =======
tar_bz2_archive = $(SRC_PACKAGE_PATH)/Linux/v3.x/linux-3.10.17.tar.bz2
SRC_ARCHIVE = $(tar_bz2_archive)
tar_xz_archive = $(SRC_PACKAGE_PATH)/Linux/v3.x/linux-3.10.17.tar.xz
SRC_ARCHIVE = $(tar_xz_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/linux-3.10.17
src_done = $(TARGET_BUILD_DIR)/.source-done
......
COMPONENT_TARGETS = $(TOOLCHAIN_X86_64_EGLIBC)
COMPONENT_TARGETS += $(TOOLCHAIN_X86_64_GLIBC)
include ../../../build-system/config.mk
SOURCE_REQUIRES = sources/Linux/v3.x
ifneq ($(filter $(TOOLCHAIN_VERSION),1.0.1),)
REQUIRES = core/gcc/4.5.1^static
endif
ifneq ($(filter $(TOOLCHAIN_VERSION),1.0.2 1.0.3 1.0.4),)
REQUIRES = core/gcc/4.7.2^static
endif
ifneq ($(filter $(TOOLCHAIN_VERSION),1.0.5),)
REQUIRES = core/gcc/4.7.3^static
endif
ifneq ($(filter $(TOOLCHAIN_VERSION),1.0.6),)
REQUIRES = core/gcc/4.8.2^static
endif
ifneq ($(filter $(TOOLCHAIN_VERSION),1.0.7 1.0.8),)
REQUIRES = core/gcc/4.9.1^static
endif
ifneq ($(filter $(TOOLCHAIN_VERSION),1.0.9),)
REQUIRES = core/gcc/4.9.2^static
endif
# ======= __END_OF_REQUIRES__ =======
tar_bz2_archive = $(SRC_PACKAGE_PATH)/Linux/v3.x/linux-3.5.4.tar.bz2
SRC_ARCHIVE = $(tar_bz2_archive)
SRC_DIR = $(TARGET_BUILD_DIR)/linux-3.5.4
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_X86_64_GLIBC)),)
arch = x86
endif
BUILD_TARGETS = $(headers_target)
include ../../../build-system/core.mk
$(src_done): $(SRC_ARCHIVE) $(PATCHES_DEP)
$(UNPACK_SRC_ARCHIVE)
@touch $@
$(SRC_DIR)/include/linux/version.h: $(src_done)
@touch $(SRC_DIR)/.config
@$(MAKE) -C $(SRC_DIR) include/linux/version.h
$(sysroot_dir)/usr/include/linux/autoconf.h: $(SRC_DIR)/include/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 $@
......@@ -12,9 +12,9 @@ include ../../../build-system/config.mk
url = $(DOWNLOAD_SERVER)/sources/Linux/v3.x
versions = 3.5.4 3.8.5 3.10.17
versions = 3.10.17
tarballs = $(addsuffix .tar.bz2, $(addprefix linux-, $(versions)))
tarballs = $(addsuffix .tar.xz, $(addprefix linux-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment