2007-08-14 09:45:01 +02:00
|
|
|
PROJECT:=$(strip $(subst ",,$(BR2_PROJECT)))
|
|
|
|
#"))
|
|
|
|
TARGET_HOSTNAME:=$(strip $(subst ",,$(BR2_HOSTNAME)))
|
|
|
|
#"))
|
|
|
|
BANNER:=$(strip $(subst ",,$(BR2_BANNER)))
|
|
|
|
#"))
|
2007-08-21 19:14:56 +02:00
|
|
|
|
2008-10-21 10:56:26 +02:00
|
|
|
# silent mode requested?
|
|
|
|
QUIET:=$(if $(findstring s,$(MAKEFLAGS)),-q,)
|
2007-08-21 19:56:47 +02:00
|
|
|
|
|
|
|
# Strip off the annoying quoting
|
|
|
|
ARCH:=$(strip $(subst ",, $(BR2_ARCH)))
|
|
|
|
#"))
|
2008-10-21 10:56:26 +02:00
|
|
|
WGET:=$(strip $(subst ",, $(BR2_WGET))) $(SPIDER) $(QUIET)
|
2007-08-21 19:56:47 +02:00
|
|
|
#"))
|
2008-10-21 10:56:26 +02:00
|
|
|
SVN_CO:=$(strip $(subst ",, $(BR2_SVN_CO))) $(QUIET)
|
2007-09-19 22:24:01 +02:00
|
|
|
#"))
|
2008-10-21 10:56:26 +02:00
|
|
|
SVN_UP:=$(strip $(subst ",, $(BR2_SVN_UP))) $(QUIET)
|
2007-08-21 19:56:47 +02:00
|
|
|
#"))
|
2008-10-21 10:56:26 +02:00
|
|
|
GIT:=$(strip $(subst ",, $(BR2_GIT))) $(QUIET)
|
2007-08-24 07:27:17 +02:00
|
|
|
#"))
|
2007-08-21 19:56:47 +02:00
|
|
|
ZCAT:=$(strip $(subst ",, $(BR2_ZCAT)))
|
|
|
|
#"))
|
|
|
|
BZCAT:=$(strip $(subst ",, $(BR2_BZCAT)))
|
|
|
|
#"))
|
|
|
|
TAR_OPTIONS=$(subst ",, $(BR2_TAR_OPTIONS)) -xf
|
|
|
|
#")
|
|
|
|
|
2008-08-31 22:23:47 +02:00
|
|
|
# Buildroot supports building out of tree similarly to the Linux kernel.
|
|
|
|
# To use, add O= to the make command line (make O=/tmp/build)
|
2007-08-21 19:56:47 +02:00
|
|
|
BASE_DIR:=$(shell pwd)
|
2008-08-31 22:23:47 +02:00
|
|
|
ifdef O
|
|
|
|
ifeq ("$(origin O)", "command line")
|
2008-09-16 22:53:45 +02:00
|
|
|
BASE_DIR := $(shell mkdir -p $(O) && cd $(O) && pwd)
|
|
|
|
$(if $(BASE_DIR),, $(error output directory "$(O)" does not exist))
|
2008-09-26 16:04:08 +02:00
|
|
|
|
|
|
|
# other packages might also support Linux-style out of tree builds
|
|
|
|
# with the O=<dir> syntax (E.G. Busybox does). As make automatically
|
|
|
|
# forwards command line variable definitions those packages get very
|
|
|
|
# confused. Fix this by telling make to not do so
|
|
|
|
MAKEOVERRIDES =
|
2008-08-31 22:23:47 +02:00
|
|
|
endif
|
|
|
|
endif
|
2007-08-21 19:56:47 +02:00
|
|
|
|
|
|
|
TOPDIR_PREFIX:=$(strip $(subst ",, $(BR2_TOPDIR_PREFIX)))_
|
|
|
|
#"))
|
|
|
|
TOPDIR_SUFFIX:=_$(strip $(subst ",, $(BR2_TOPDIR_SUFFIX)))
|
|
|
|
#"))
|
|
|
|
ifeq ($(TOPDIR_PREFIX),_)
|
|
|
|
TOPDIR_PREFIX:=
|
|
|
|
endif
|
|
|
|
ifeq ($(TOPDIR_SUFFIX),_)
|
|
|
|
TOPDIR_SUFFIX:=
|
|
|
|
endif
|
|
|
|
|
|
|
|
DL_DIR=$(strip $(subst ",, $(BR2_DL_DIR)))
|
|
|
|
#"))
|
|
|
|
ifeq ($(DL_DIR),)
|
|
|
|
DL_DIR:=$(BASE_DIR)/dl
|
|
|
|
endif
|
|
|
|
|
|
|
|
# All non-configurable packages should be built in BUILD_DIR
|
|
|
|
BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)
|
|
|
|
|
|
|
|
GNU_TARGET_SUFFIX:=-$(strip $(subst ",, $(BR2_GNU_TARGET_SUFFIX)))
|
|
|
|
#"))
|
|
|
|
|
|
|
|
STAGING_DIR:=$(strip $(subst ",, $(BR2_STAGING_DIR)))
|
|
|
|
#"))
|
|
|
|
|
2007-08-21 19:14:56 +02:00
|
|
|
# All configurable packages (like Busybox,Linux etc) should be built
|
|
|
|
# in PROJECT_BUILD_DIR
|
|
|
|
PROJECT_BUILD_DIR:=$(BASE_DIR)/$(TOPDIR_PREFIX)project_build_$(ARCH)$(ARCH_FPU_SUFFIX)$(TOPDIR_SUFFIX)/$(PROJECT)
|
|
|
|
BINARIES_DIR:=$(BASE_DIR)/binaries/$(PROJECT)
|
|
|
|
TARGET_DIR:=$(PROJECT_BUILD_DIR)/root
|
2007-08-24 07:27:17 +02:00
|
|
|
|
|
|
|
# define values for prepatched source trees for toolchains
|
|
|
|
VENDOR_SITE:=$(strip $(subst ",,$(BR2_VENDOR_SITE)))
|
|
|
|
#"))
|
|
|
|
VENDOR_SUFFIX:=$(strip $(subst ",,$(BR2_VENDOR_SUFFIX)))
|
|
|
|
#"))
|
|
|
|
VENDOR_BINUTILS_RELEASE:=$(strip $(subst ",,$(BR2_VENDOR_BINUTILS_RELEASE)))
|
|
|
|
#"))
|
|
|
|
VENDOR_GCC_RELEASE:=$(strip $(subst ",,$(BR2_VENDOR_GCC_RELEASE)))
|
|
|
|
#"))
|
|
|
|
VENDOR_UCLIBC_RELEASE:=$(strip $(subst ",,$(BR2_VENDOR_UCLIBC_RELEASE)))
|
|
|
|
#"))
|
|
|
|
VENDOR_GDB_RELEASE:=$(strip $(subst ",,$(BR2_VENDOR_GDB_RELEASE)))
|
|
|
|
#"))
|
|
|
|
VENDOR_PATCH_DIR:=$(strip $(subst ",,$(BR2_VENDOR_PATCH_DIR)))
|
|
|
|
#"))
|