1 PROJECT
:=$(strip $(subst ",,$(BR2_PROJECT)))
3 TARGET_HOSTNAME
:=$(strip $(subst ",,$(BR2_HOSTNAME)))
5 BANNER
:=$(strip $(subst ",,$(BR2_BANNER)))
8 # silent mode requested?
9 QUIET
:=$(if
$(findstring s
,$(MAKEFLAGS
)),-q
,)
11 # Strip off the annoying quoting
12 ARCH
:=$(strip $(subst ",, $(BR2_ARCH)))
14 WGET
:=$(strip $(subst ",, $(BR2_WGET))) $(SPIDER) $(QUIET)
16 SVN_CO
:=$(strip $(subst ",, $(BR2_SVN_CO))) $(QUIET)
18 SVN_UP
:=$(strip $(subst ",, $(BR2_SVN_UP))) $(QUIET)
20 GIT
:=$(strip $(subst ",, $(BR2_GIT))) $(QUIET)
22 ZCAT
:=$(strip $(subst ",, $(BR2_ZCAT)))
24 BZCAT
:=$(strip $(subst ",, $(BR2_BZCAT)))
26 TAR_OPTIONS
=$(subst ",, $(BR2_TAR_OPTIONS)) -xf
29 # Buildroot supports building out of tree similarly to the Linux kernel.
30 # To use, add O= to the make command line (make O=/tmp/build)
31 BASE_DIR
:=$(shell pwd
)
33 ifeq ("$(origin O)", "command line")
34 BASE_DIR
:= $(shell mkdir
-p
$(O
) && cd
$(O
) && pwd
)
35 $(if
$(BASE_DIR
),, $(error output directory
"$(O)" does not exist
))
37 # other packages might also support Linux-style out of tree builds
38 # with the O=<dir> syntax (E.G. Busybox does). As make automatically
39 # forwards command line variable definitions those packages get very
40 # confused. Fix this by telling make to not do so
45 TOPDIR_PREFIX
:=$(strip $(subst ",, $(BR2_TOPDIR_PREFIX)))_
47 TOPDIR_SUFFIX
:=_
$(strip $(subst ",, $(BR2_TOPDIR_SUFFIX)))
49 ifeq ($(TOPDIR_PREFIX
),_
)
52 ifeq ($(TOPDIR_SUFFIX
),_
)
56 DL_DIR
=$(strip $(subst ",, $(BR2_DL_DIR)))
59 DL_DIR
:=$(BASE_DIR
)/dl
62 # All non-configurable packages should be built in BUILD_DIR
63 BUILD_DIR
:=$(BASE_DIR
)/$(TOPDIR_PREFIX
)build_
$(ARCH
)$(ARCH_FPU_SUFFIX
)$(TOPDIR_SUFFIX
)
65 GNU_TARGET_SUFFIX
:=-$(strip $(subst ",, $(BR2_GNU_TARGET_SUFFIX)))
68 STAGING_DIR
:=$(strip $(subst ",, $(BR2_STAGING_DIR)))
71 # packages compiled for the host goes here
72 HOST_DIR
:=$(BUILD_DIR
)/host_dir
74 # stamp (dependency) files go here
75 STAMP_DIR
:=$(BUILD_DIR
)/stamps
77 # All configurable packages (like Busybox,Linux etc) should be built
78 # in PROJECT_BUILD_DIR
79 PROJECT_BUILD_DIR
:=$(BASE_DIR
)/$(TOPDIR_PREFIX
)project_build_
$(ARCH
)$(ARCH_FPU_SUFFIX
)$(TOPDIR_SUFFIX
)/$(PROJECT
)
80 BINARIES_DIR
:=$(BASE_DIR
)/binaries
/$(PROJECT
)
81 TARGET_DIR
:=$(PROJECT_BUILD_DIR
)/root
83 # define values for prepatched source trees for toolchains
84 VENDOR_SITE
:=$(strip $(subst ",,$(BR2_VENDOR_SITE)))
86 VENDOR_SUFFIX
:=$(strip $(subst ",,$(BR2_VENDOR_SUFFIX)))
88 VENDOR_BINUTILS_RELEASE
:=$(strip $(subst ",,$(BR2_VENDOR_BINUTILS_RELEASE)))
90 VENDOR_GCC_RELEASE
:=$(strip $(subst ",,$(BR2_VENDOR_GCC_RELEASE)))
92 VENDOR_UCLIBC_RELEASE
:=$(strip $(subst ",,$(BR2_VENDOR_UCLIBC_RELEASE)))
94 VENDOR_GDB_RELEASE
:=$(strip $(subst ",,$(BR2_VENDOR_GDB_RELEASE)))
96 VENDOR_PATCH_DIR
:=$(strip $(subst ",,$(BR2_VENDOR_PATCH_DIR)))