2 include $(TOPDIR
)/.config
9 ifeq ("$(origin V)", "command line")
17 ifneq ($(KBUILD_VERBOSE
),0)
27 BUILD_MAKEFLAGS
= V
=$(V
) $(EXTRA_MAKEFLAGS
)
28 MAKEFLAGS
=$(BUILD_MAKEFLAGS
)
29 # Strip off the annoying quoting
30 ARCH
:=$(strip $(subst ",, $(CONFIG_ARCH)))
31 WGET:=$(strip $(subst ",, $(CONFIG_WGET
)))
32 TARGET_OPTIMIZATION
:=$(strip $(subst ",, $(CONFIG_TARGET_OPTIMIZATION)))
33 #"))"))"))"))")) # for vim's broken syntax highlighting :)
35 ifeq ($(CONFIG_TAR_VERBOSITY
),y
)
41 ifneq ($(CONFIG_LARGEFILE
),y
)
42 DISABLE_LARGEFILE
= --disable-largefile
44 TARGET_CFLAGS
:=$(TARGET_OPTIMIZATION
) $(TARGET_DEBUGGING
)
46 OPTIMIZE_FOR_CPU
=$(ARCH
)
49 DL_DIR
:=$(BASE_DIR
)/dl
50 BUILD_DIR
:=$(BASE_DIR
)/build_
$(ARCH
)
51 STAGING_DIR
:=$(BASE_DIR
)/staging_dir_
$(ARCH
)
52 SCRIPT_DIR
:=$(BASE_DIR
)/scripts
53 BIN_DIR
:=$(BASE_DIR
)/bin
54 STAMP_DIR
:=$(BUILD_DIR
)/stamp
55 PACKAGE_DIR
:=$(BIN_DIR
)/packages
56 STAMP_DIR
:=$(BUILD_DIR
)/stamp
57 TARGET_DIR
:=$(BUILD_DIR
)/root
58 TOOL_BUILD_DIR
=$(BASE_DIR
)/toolchain_build_
$(ARCH
)
59 TARGET_PATH
=$(STAGING_DIR
)/usr
/bin
:$(STAGING_DIR
)/bin
:/bin
:/sbin
:/usr
/bin
:/usr
/sbin
60 IMAGE
:=$(BUILD_DIR
)/root_fs_
$(ARCH
)
61 REAL_GNU_TARGET_NAME
=$(OPTIMIZE_FOR_CPU
)-linux-uclibc
62 GNU_TARGET_NAME
=$(OPTIMIZE_FOR_CPU
)-linux
63 KERNEL_CROSS
:=$(STAGING_DIR
)/bin
/$(OPTIMIZE_FOR_CPU
)-linux-uclibc-
64 TARGET_CROSS
:=$(STAGING_DIR
)/bin
/$(OPTIMIZE_FOR_CPU
)-linux-uclibc-
65 TARGET_CC
:=$(TARGET_CROSS
)gcc
66 STRIP
:=$(STAGING_DIR
)/bin
/sstrip
67 PATCH
=$(SCRIPT_DIR
)/patch-kernel.sh
68 SED
:=$(STAGING_DIR
)/bin
/sed
-i
-e
69 LINUX_DIR
:=$(BUILD_DIR
)/linux
70 LINUX_HEADERS_DIR
:=$(TOOL_BUILD_DIR
)/linux
73 HOST_ARCH
:=$(shell $(HOSTCC
) -dumpmachine | sed
-e s
'/-.*//' \
74 -e
's/sparc.*/sparc/' \
77 -e
's/ppc/powerpc/g' \
78 -e
's/v850.*/v850/g' \
80 -e
's/mips-.*/mips/' \
81 -e
's/mipsel-.*/mipsel/' \
83 -e
's/i[3-9]86/i386/' \
85 GNU_HOST_NAME
:=$(HOST_ARCH
)-pc-linux-gnu
86 TARGET_CONFIGURE_OPTS
=PATH
=$(TARGET_PATH
) \
87 AR
=$(TARGET_CROSS
)ar \
88 AS
=$(TARGET_CROSS
)as \
89 LD
=$(TARGET_CROSS
)ld \
90 NM
=$(TARGET_CROSS
)nm \
91 CC
=$(TARGET_CROSS
)gcc \
92 GCC
=$(TARGET_CROSS
)gcc \
93 CXX
=$(TARGET_CROSS
)g
++ \
94 RANLIB
=$(TARGET_CROSS
)ranlib
96 ifeq ($(ENABLE_LOCALE
),true
)
99 DISABLE_NLS
:=--disable-nls
102 ifeq ($(CONFIG_ENABLE_MULTILIB
),y
)
103 MULTILIB
:=--enable-multilib
106 # invoke ipkg-build with some default options
107 IPKG_BUILD
:= PATH
="$(TARGET_PATH)" ipkg-build
-c
-o root
-g root
108 # where to build (and put) .ipk packages
109 IPKG_TARGET_DIR
:= $(PACKAGE_DIR
)
110 IPKG
:=IPKG_TMP
=$(BUILD_DIR
)/tmp IPKG_INSTROOT
=$(TARGET_DIR
) IPKG_CONF_DIR
=$(STAGING_DIR
)/etc IPKG_OFFLINE_ROOT
=$(BUILD_DIR
)/root
$(SCRIPT_DIR
)/ipkg
-force-defaults
-force-depends
111 IPKG_STATE_DIR
:= $(TARGET_DIR
)/usr
/lib
/ipkg
113 RSTRIP
:=STRIP
="$(STRIP)" STRIP_KMOD
="$(TARGET_CROSS)strip --strip-unneeded --remove-section=.comment" $(SCRIPT_DIR
)/rstrip.sh
This page took 0.053476 seconds and 5 git commands to generate.