2 MAKE
=make
-j
$(BR2_JLEVEL
)
4 # Strip off the annoying quoting
5 ARCH
:=$(strip $(subst ",, $(BR2_ARCH)))
7 WGET
:=$(strip $(subst ",, $(BR2_WGET)))
9 SVN
:=$(strip $(subst ",, $(BR2_SVN)))
15 ifneq ($(BR2_LARGEFILE
),y
)
16 DISABLE_LARGEFILE
= --disable-largefile
18 TARGET_CFLAGS
=$(TARGET_OPTIMIZATION
) $(TARGET_DEBUGGING
)
21 BASE_DIR
:=${shell pwd
}
23 TOPDIR_PREFIX
:=$(strip $(subst ",, $(BR2_TOPDIR_PREFIX)))_
24 TOPDIR_SUFFIX:=_$(strip $(subst ",, $(BR2_TOPDIR_SUFFIX
)))
25 ifeq ($(TOPDIR_PREFIX
),_
)
28 ifeq ($(TOPDIR_SUFFIX
),_
)
32 DL_DIR
=$(strip $(subst ",, $(BR2_DL_DIR)))
34 DL_DIR:=$(BASE_DIR)/dl
36 #PATCH_DIR=$(BASE_DIR)/sources/patches
37 BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
38 TARGET_DIR:=$(BUILD_DIR)/root
39 TOOL_BUILD_DIR=$(BASE_DIR)/$(TOPDIR_PREFIX)toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
41 # Strip off the annoying quoting
42 STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR
)))
44 TARGET_PATH
=$(STAGING_DIR
)/bin
:$(TOOL_BUILD_DIR
)/bin
:/bin
:/sbin
:/usr
/bin
:/usr
/sbin
45 IMAGE
:=$(BASE_DIR
)/rootfs.
$(ARCH
)$(ARCH_FPU_SUFFIX
)
46 GNU_TARGET_NAME
=$(OPTIMIZE_FOR_CPU
)-linux
47 ifeq ($(BR2_ARM_EABI
),y
)
48 REAL_GNU_TARGET_NAME
=$(GNU_TARGET_NAME
)-uclibcgnueabi
50 REAL_GNU_TARGET_NAME
=$(GNU_TARGET_NAME
)-uclibc
52 KERNEL_CROSS
=$(STAGING_DIR
)/bin
/$(REAL_GNU_TARGET_NAME
)-
53 TARGET_CROSS
=$(STAGING_DIR
)/bin
/$(REAL_GNU_TARGET_NAME
)-
54 TARGET_CC
=$(TARGET_CROSS
)gcc
55 TARGET_CXX
=$(TARGET_CROSS
)g
++
56 TARGET_RANLIB
=$(TARGET_CROSS
)ranlib
57 STRIP
=$(TARGET_CROSS
)strip --remove-section
=.comment
--remove-section
=.note
59 INSTALL
=/usr
/bin
/install
60 QUILT
:=$(BASE_DIR
)/toolchain
/quilt
/bin
/quilt
--cmdpath
$(BASE_DIR
)/toolchain
/quilt
/share
--quiltrc
$(BASE_DIR
)/toolchain
/quilt
/quilt.quiltrc
63 HOST_ARCH
:=$(shell $(HOSTCC
) -dumpmachine | sed
-e s
'/-.*//' \
64 -e
's/sparc.*/sparc/' \
67 -e
's/ppc/powerpc/g' \
68 -e
's/v850.*/v850/g' \
70 -e
's/mips-.*/mips/' \
71 -e
's/mipsel-.*/mipsel/' \
73 -e
's/i[3-9]86/i386/' \
75 GNU_HOST_NAME
:=$(HOST_ARCH
)-$(subst ",,$(BR2_GNU_BUILD_SUFFIX))
76 TARGET_CONFIGURE_OPTS=PATH=$(TARGET_PATH) \
77 AR=$(TARGET_CROSS)ar \
78 AS=$(TARGET_CROSS)as \
79 LD=$(TARGET_CROSS)ld \
80 NM=$(TARGET_CROSS)nm \
81 CC=$(TARGET_CROSS)gcc \
82 GCC=$(TARGET_CROSS)gcc \
83 CXX=$(TARGET_CROSS)g++ \
84 CPP=$(TARGET_CROSS)cpp \
85 RANLIB=$(TARGET_CROSS)ranlib \
86 OBJCOPY=$(TARGET_CROSS)objcopy
88 ifeq ($(ENABLE_LOCALE),true)
91 DISABLE_NLS:=--disable-nls