1 include $(TOPDIR
)/.config
6 MAKEFLAGS
=-j
$(BR2_JLEVEL
)
8 # Strip off the annoying quoting
9 ARCH
:=$(strip $(subst ",, $(BR2_ARCH)))
11 WGET
:=$(strip $(subst ",, $(BR2_WGET)))
14 GCC_VERSION
:=$(strip $(subst ",, $(BR2_GCC_VERSION)))
16 GCC_USE_SJLJ_EXCEPTIONS
:=$(strip $(subst ",, $(BR2_GCC_USE_SJLJ_EXCEPTIONS)))
18 TARGET_OPTIMIZATION
:=$(strip $(subst ",, $(BR2_TARGET_OPTIMIZATION)))
22 ifeq ($(BR2_SOFT_FLOAT),y)
23 # gcc 3.4.x soft float configuration is different than previous versions.
24 ifeq ($(findstring 3.4.,$(GCC_VERSION)),3.4.)
25 SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
27 SOFT_FLOAT_CONFIG_OPTION:=--without-float
29 TARGET_SOFT_FLOAT:=-msoft-float
30 ARCH_FPU_SUFFIX:=_nofpu
32 SOFT_FLOAT_CONFIG_OPTION:=
38 ifeq ($(BR2_TAR_VERBOSITY),y)
44 ifneq ($(BR2_LARGEFILE),y)
45 DISABLE_LARGEFILE= --disable-largefile
47 TARGET_CFLAGS:=$(TARGET_OPTIMIZATION) $(TARGET_DEBUGGING)
49 OPTIMIZE_FOR_CPU=$(ARCH)
52 DL_DIR:=$(BASE_DIR)/dl
53 BUILD_DIR:=$(BASE_DIR)/build_$(ARCH)$(ARCH_FPU_SUFFIX)
54 SCRIPT_DIR:=$(BASE_DIR)/scripts
55 BIN_DIR:=$(BASE_DIR)/bin
56 STAMP_DIR:=$(BUILD_DIR)/stamp
57 PACKAGE_DIR:=$(BIN_DIR)/packages
58 STAMP_DIR:=$(BUILD_DIR)/stamp
59 TOOL_BUILD_DIR=$(BASE_DIR)/toolchain_build_$(ARCH)$(ARCH_FPU_SUFFIX)
60 # Strip off the annoying quoting
61 STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR
)))
63 TARGET_PATH
=$(STAGING_DIR
)/usr
/bin
:$(STAGING_DIR
)/bin
:/bin
:/sbin
:/usr
/bin
:/usr
/sbin
64 IMAGE
:=$(BUILD_DIR
)/root_fs_
$(ARCH
)$(ARCH_FPU_SUFFIX
)
65 REAL_GNU_TARGET_NAME
=$(OPTIMIZE_FOR_CPU
)-linux-uclibc
66 GNU_TARGET_NAME
=$(OPTIMIZE_FOR_CPU
)-linux
67 KERNEL_CROSS
:=$(STAGING_DIR
)/bin
/$(OPTIMIZE_FOR_CPU
)-linux-uclibc-
68 TARGET_CROSS
:=$(STAGING_DIR
)/bin
/$(OPTIMIZE_FOR_CPU
)-linux-uclibc-
69 TARGET_CC
:=$(TARGET_CROSS
)gcc
70 #STRIP:=$(TARGET_CROSS)strip --remove-section=.comment --remove-section=.note
71 STRIP
:=$(STAGING_DIR
)/bin
/sstrip
72 PATCH
=$(SCRIPT_DIR
)/patch-kernel.sh
73 SED
:=$(STAGING_DIR
)/bin
/sed
-i
-e
74 LINUX_DIR
:=$(BUILD_DIR
)/linux
75 LINUX_HEADERS_DIR
:=$(TOOL_BUILD_DIR
)/linux
78 HOST_ARCH
:=$(shell $(HOSTCC
) -dumpmachine | sed
-e s
'/-.*//' \
79 -e
's/sparc.*/sparc/' \
82 -e
's/ppc/powerpc/g' \
83 -e
's/v850.*/v850/g' \
85 -e
's/mips-.*/mips/' \
86 -e
's/mipsel-.*/mipsel/' \
88 -e
's/i[3-9]86/i386/' \
90 GNU_HOST_NAME
:=$(HOST_ARCH
)-pc-linux-gnu
91 TARGET_CONFIGURE_OPTS
=PATH
=$(TARGET_PATH
) \
92 AR
=$(TARGET_CROSS
)ar \
93 AS
=$(TARGET_CROSS
)as \
94 LD
=$(TARGET_CROSS
)ld \
95 NM
=$(TARGET_CROSS
)nm \
96 CC
=$(TARGET_CROSS
)gcc \
97 GCC
=$(TARGET_CROSS
)gcc \
98 CXX
=$(TARGET_CROSS
)g
++ \
99 RANLIB
=$(TARGET_CROSS
)ranlib
101 ifeq ($(ENABLE_LOCALE
),true
)
104 DISABLE_NLS
:=--disable-nls
107 ifeq ($(BR2_ENABLE_MULTILIB
),y
)
108 MULTILIB
:=--enable-multilib
111 # invoke ipkg-build with some default options
112 IPKG_BUILD
:= PATH
="$(TARGET_PATH)" ipkg-build
-c
-o root
-g root
114 # where to build (and put) .ipk packages
115 IPKG_TARGET_DIR
:= $(PACKAGE_DIR
)
117 RSTRIP
:=STRIP
="$(STRIP)" $(SCRIPT_DIR
)/rstrip.sh
118 RSTRIP_KMOD
:=STRIP
="$(TARGET_CROSS)strip --strip-unneeded --remove-section=.comment" $(SCRIPT_DIR
)/rstrip.sh
This page took 0.0491 seconds and 5 git commands to generate.