2004-12-11 14:01:10 +01:00
|
|
|
MAKE1=make
|
|
|
|
MAKE=make -j$(BR2_JLEVEL)
|
|
|
|
|
2004-10-09 03:06:03 +02:00
|
|
|
# Strip off the annoying quoting
|
|
|
|
ARCH:=$(strip $(subst ",, $(BR2_ARCH)))
|
|
|
|
#"
|
|
|
|
WGET:=$(strip $(subst ",, $(BR2_WGET)))
|
|
|
|
#"
|
2005-01-23 12:20:30 +01:00
|
|
|
SVN:=$(strip $(subst ",, $(BR2_SVN)))
|
|
|
|
#"
|
|
|
|
|
|
|
|
|
2004-10-09 03:06:03 +02:00
|
|
|
|
|
|
|
ifneq ($(BR2_LARGEFILE),y)
|
|
|
|
DISABLE_LARGEFILE= --disable-largefile
|
|
|
|
endif
|
|
|
|
TARGET_CFLAGS=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
|
|
|
|
|
|
|
|
HOSTCC:=gcc
|
|
|
|
BASE_DIR:=${shell pwd}
|
2004-10-27 20:13:38 +02:00
|
|
|
DL_DIR:=$(BASE_DIR)/dl
|
|
|
|
#PATCH_DIR=$(BASE_DIR)/sources/patches
|
2004-10-09 03:06:03 +02:00
|
|
|
BUILD_DIR:=$(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
|
|
|
|
TARGET_DIR:=$(BUILD_DIR)/root
|
|
|
|
TOOL_BUILD_DIR=$(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)
|
2004-12-11 11:25:40 +01:00
|
|
|
# Strip off the annoying quoting
|
|
|
|
STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR)))
|
|
|
|
#"
|
2005-08-30 05:35:37 +02:00
|
|
|
TARGET_PATH=$(STAGING_DIR)/bin:$(TOOL_BUILD_DIR)/bin:/bin:/sbin:/usr/bin:/usr/sbin
|
2005-08-13 12:57:08 +02:00
|
|
|
IMAGE:=$(BASE_DIR)/rootfs.$(ARCH)$(ARCH_FPU_SUFFIX)
|
2004-10-09 03:06:03 +02:00
|
|
|
REAL_GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux-uclibc
|
|
|
|
GNU_TARGET_NAME=$(OPTIMIZE_FOR_CPU)-linux
|
|
|
|
KERNEL_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
|
|
|
|
TARGET_CROSS=$(STAGING_DIR)/bin/$(OPTIMIZE_FOR_CPU)-linux-uclibc-
|
|
|
|
TARGET_CC=$(TARGET_CROSS)gcc
|
2005-05-18 05:42:51 +02:00
|
|
|
TARGET_RANLIB=$(TARGET_CROSS)ranlib
|
2004-10-09 03:06:03 +02:00
|
|
|
STRIP=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
|
2005-02-16 20:48:03 +01:00
|
|
|
INSTALL=/usr/bin/install
|
2004-10-09 03:06:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
HOST_ARCH:=$(shell $(HOSTCC) -dumpmachine | sed -e s'/-.*//' \
|
|
|
|
-e 's/sparc.*/sparc/' \
|
|
|
|
-e 's/arm.*/arm/g' \
|
|
|
|
-e 's/m68k.*/m68k/' \
|
|
|
|
-e 's/ppc/powerpc/g' \
|
|
|
|
-e 's/v850.*/v850/g' \
|
|
|
|
-e 's/sh[234]/sh/' \
|
|
|
|
-e 's/mips-.*/mips/' \
|
|
|
|
-e 's/mipsel-.*/mipsel/' \
|
|
|
|
-e 's/cris.*/cris/' \
|
|
|
|
-e 's/i[3-9]86/i386/' \
|
|
|
|
)
|
|
|
|
GNU_HOST_NAME:=$(HOST_ARCH)-pc-linux-gnu
|
|
|
|
TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
|
|
|
|
AR=$(TARGET_CROSS)ar \
|
|
|
|
AS=$(TARGET_CROSS)as \
|
|
|
|
LD=$(TARGET_CROSS)ld \
|
|
|
|
NM=$(TARGET_CROSS)nm \
|
|
|
|
CC=$(TARGET_CROSS)gcc \
|
|
|
|
GCC=$(TARGET_CROSS)gcc \
|
|
|
|
CXX=$(TARGET_CROSS)g++ \
|
2005-04-07 02:25:21 +02:00
|
|
|
RANLIB=$(TARGET_CROSS)ranlib \
|
|
|
|
OBJCOPY=$(TARGET_CROSS)objcopy
|
2004-10-09 03:06:03 +02:00
|
|
|
|
|
|
|
ifeq ($(ENABLE_LOCALE),true)
|
|
|
|
DISABLE_NLS:=
|
|
|
|
else
|
|
|
|
DISABLE_NLS:=--disable-nls
|
|
|
|
endif
|
|
|
|
|
|
|
|
|