Commit 21da16be authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

parallel sources downloading; ccache

git-svn-id: https://svn.radix.pro/svn/toolchains/trunk@100 0df74aab-45ad-4799-93a1-122938110d35
parent b0572167
......@@ -8,6 +8,10 @@ ifndef CONFIG_MK
DOWNLOAD_SERVER = ftp://ftp.radix.pro
WGET_OPTIONS = -q -N
CACHED_CC_OUTPUT = /opt/extra/ccache
TOOLCHAINS_BASE_PATH = /opt/toolchain
TOOLCHAINS_VERSION = 1.0.0
......
......@@ -183,6 +183,43 @@ endif
PREFIX ?= $(DEST_DIR)
#######
####### Setup ccache:
#######
ifeq ($(NO_CCACHE),)
CCACHE = /usr/bin/ccache$(space)
ifeq ($(wildcard $(CCACHE)),)
$(info )
$(info #######)
$(info ####### Please install 'ccache' package)
$(info ####### or disable ccache with "NO_CCACHE=1 make ...")
$(info #######)
$(info )
$(error Error: ccache not found)
endif
ifeq ($(wildcard $(CACHED_CC_OUTPUT)),)
$(info )
$(info #######)
$(info ####### Please create directory $(CACHED_CC_OUTPUT) for cached compiler output)
$(info ####### or disable ccache with "NO_CCACHE=1 make ...")
$(info #######)
$(info )
$(error Error: cached compiler output directory doesn't exist)
endif
export CCACHE_BASEDIR = $(TOP_BUILD_DIR_ABS)
export CCACHE_DIR = $(CACHED_CC_OUTPUT)
export CCACHE_UMASK = 000
unexport CCACHE_PREFIX
else
CCACHE =
endif
#######
####### Cleanup files:
......
......@@ -23,10 +23,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -36,7 +49,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -48,17 +61,6 @@ endif
TARGET32 = $(shell echo $(TARGET) | sed 's/x86_64/i486/')
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
extra_configure_switches += --with-headers=$(sysroot_dir)/usr/include
......
......@@ -27,10 +27,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -40,7 +53,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -62,17 +75,6 @@ LIBSUFFIX = 64
endif
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_OMAP35X_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
extra_configure_switches += --with-headers=$(sysroot_dir)/usr/include
......
......@@ -23,10 +23,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -36,7 +49,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -48,16 +61,6 @@ endif
TARGET32 = $(shell echo $(TARGET) | sed 's/x86_64/i486/')
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -29,10 +29,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -42,7 +55,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -71,16 +84,6 @@ environment += CFLAGS="-g -O2"
endif
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -23,10 +23,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -36,7 +49,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -48,16 +61,6 @@ endif
TARGET32 = $(shell echo $(TARGET) | sed 's/x86_64/i486/')
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -28,10 +28,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -41,7 +54,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -67,16 +80,6 @@ LIBSUFFIX = 64
endif
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -23,10 +23,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -36,7 +49,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -48,17 +61,6 @@ endif
TARGET32 = $(shell echo $(TARGET) | sed 's/x86_64/i486/')
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
extra_configure_switches += --with-headers=$(sysroot_dir)/usr/include
......
......@@ -29,10 +29,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -42,7 +55,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -71,16 +84,6 @@ environment += CFLAGS="-g -O2"
endif
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -23,10 +23,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -36,7 +49,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -48,16 +61,6 @@ endif
TARGET32 = $(shell echo $(TARGET) | sed 's/x86_64/i486/')
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -32,10 +32,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -45,7 +58,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -83,16 +96,6 @@ environment += CFLAGS="-g -O2"
endif
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -24,10 +24,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -37,7 +50,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -49,16 +62,6 @@ endif
TARGET32 = $(shell echo $(TARGET) | sed 's/x86_64/i486/')
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -33,10 +33,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -46,7 +59,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -88,16 +101,6 @@ environment += CFLAGS="-g -O2"
endif
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_A1X_EGLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
......
......@@ -24,10 +24,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc -m32
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -37,7 +50,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc
environment += BUILD_CC=$(CCACHE)/usr/bin/gcc
LIBSUFFIX =
......@@ -49,17 +62,6 @@ endif
TARGET32 = $(shell echo $(TARGET) | sed 's/x86_64/i486/')
ifeq ($(FLAVOUR),headers)
BUILD_TARGETS = $(headers_target)
endif
ifeq ($(FLAVOUR),full)
BUILD_TARGETS = $(full_target)
endif
include ../../../build-system/core.mk
ifeq ($(TOOLCHAIN),$(TOOLCHAIN_X86_64_GLIBC))
extra_configure_switches = --libdir=/usr/lib$(LIBSUFFIX)
extra_configure_switches += --with-headers=$(sysroot_dir)/usr/include
......
......@@ -33,10 +33,23 @@ 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 = $(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
CC = $(CCACHE)$(TOOLCHAIN_PATH)/bin/$(TARGET)-gcc
environment = AS=$(TOOLCHAIN_PATH)/bin/$(TARGET)-as
environment += LD=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ld
......@@ -46,7 +59,7 @@ environment += RANLIB=$(TOOLCHAIN_PATH)/bin/$(TARGET)-ranlib
environment += PATH=$(TOOLCHAIN_PATH)/bin:$(PATH)
environment += BUILD_CC=gcc