2004-10-09 09:06:03 +08:00
|
|
|
#
|
|
|
|
|
2011-02-02 21:53:23 +08:00
|
|
|
mainmenu "Buildroot $BR2_VERSION Configuration"
|
2004-10-09 09:06:03 +08:00
|
|
|
|
|
|
|
config BR2_HAVE_DOT_CONFIG
|
|
|
|
bool
|
|
|
|
default y
|
|
|
|
|
2007-09-25 19:37:31 +08:00
|
|
|
config BR2_VERSION
|
|
|
|
string
|
2010-11-01 00:35:14 +08:00
|
|
|
option env="BR2_VERSION_FULL"
|
2007-09-25 19:37:31 +08:00
|
|
|
|
2007-09-29 05:54:36 +08:00
|
|
|
source "target/Config.in.arch"
|
2007-07-09 00:28:54 +08:00
|
|
|
|
2004-12-11 21:01:10 +08:00
|
|
|
menu "Build options"
|
|
|
|
|
2010-04-11 04:55:01 +08:00
|
|
|
menu "Commands"
|
|
|
|
|
2004-10-09 09:06:03 +08:00
|
|
|
config BR2_WGET
|
2004-12-11 21:01:10 +08:00
|
|
|
string "Wget command"
|
2010-11-05 02:16:43 +08:00
|
|
|
default "wget --passive-ftp -nd -t 3"
|
2004-10-09 09:06:03 +08:00
|
|
|
|
2010-09-02 18:09:45 +08:00
|
|
|
config BR2_SVN
|
|
|
|
string "Subversion (svn) command"
|
|
|
|
default "svn"
|
2005-01-23 19:20:30 +08:00
|
|
|
|
2010-09-02 18:09:45 +08:00
|
|
|
config BR2_BZR
|
|
|
|
string "Bazaar (bzr) command"
|
|
|
|
default "bzr"
|
2009-08-07 17:57:54 +08:00
|
|
|
|
2007-08-24 13:31:07 +08:00
|
|
|
config BR2_GIT
|
2010-09-02 18:09:45 +08:00
|
|
|
string "Git command"
|
|
|
|
default "git"
|
2007-08-24 13:31:07 +08:00
|
|
|
|
2011-09-30 03:57:46 +08:00
|
|
|
config BR2_LOCALFILES
|
|
|
|
string "Local files retrieval command"
|
|
|
|
default "cp"
|
|
|
|
|
2006-10-01 23:07:45 +08:00
|
|
|
config BR2_ZCAT
|
|
|
|
string "zcat command"
|
2007-03-09 16:26:10 +08:00
|
|
|
default "gzip -d -c"
|
2006-10-01 23:07:45 +08:00
|
|
|
help
|
|
|
|
Command to be used to extract a gzip'ed file to stdout.
|
|
|
|
zcat is identical to gunzip -c except that the former may
|
|
|
|
not be available on your system.
|
2007-03-09 16:26:10 +08:00
|
|
|
Default is "gzip -d -c"
|
|
|
|
Other possible values include "gunzip -c" or "zcat".
|
2006-11-17 23:43:51 +08:00
|
|
|
|
|
|
|
config BR2_BZCAT
|
|
|
|
string "bzcat command"
|
|
|
|
default "bzcat"
|
|
|
|
help
|
|
|
|
Command to be used to extract a bzip2'ed file to stdout.
|
|
|
|
bzcat is identical to bunzip2 -c except that the former may
|
|
|
|
not be available on your system.
|
|
|
|
Default is "bzcat"
|
|
|
|
Other possible values include "bunzip2 -c" or "bzip2 -d -c".
|
2006-10-01 23:07:45 +08:00
|
|
|
|
2011-05-10 14:17:05 +08:00
|
|
|
config BR2_XZCAT
|
|
|
|
string "xzcat command"
|
|
|
|
default "xzcat"
|
|
|
|
help
|
|
|
|
Command to be used to extract a xz'ed file to stdout.
|
|
|
|
Default is "xzcat"
|
|
|
|
|
2005-12-10 22:59:02 +08:00
|
|
|
config BR2_TAR_OPTIONS
|
|
|
|
string "Tar options"
|
2005-12-10 23:36:43 +08:00
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Options to pass to tar when extracting the sources.
|
|
|
|
E.g. " -v --exclude='*.svn*'" to exclude all .svn internal files
|
|
|
|
and to be verbose.
|
2005-12-10 22:59:02 +08:00
|
|
|
|
2010-04-11 04:55:01 +08:00
|
|
|
endmenu
|
|
|
|
|
2005-10-01 08:35:24 +08:00
|
|
|
config BR2_DL_DIR
|
|
|
|
string "Download dir"
|
2009-09-23 14:46:52 +08:00
|
|
|
default "$(TOPDIR)/dl"
|
2005-10-01 08:35:24 +08:00
|
|
|
help
|
|
|
|
Directory to store all the source files that we need to fetch.
|
2007-08-21 09:28:12 +08:00
|
|
|
If the Linux shell environment has defined the BUILDROOT_DL_DIR
|
|
|
|
environment variable, then this overrides this configuration item.
|
2005-10-01 08:35:24 +08:00
|
|
|
|
2009-09-23 14:46:52 +08:00
|
|
|
The default is $(TOPDIR)/dl
|
2007-09-27 05:12:38 +08:00
|
|
|
|
2011-02-02 21:05:56 +08:00
|
|
|
config BR2_HOST_DIR
|
|
|
|
string "Host dir"
|
|
|
|
default "$(BASE_DIR)/host"
|
|
|
|
help
|
|
|
|
Directory to store all the binary files that are built for the host.
|
|
|
|
This includes the cross compilation toolchain when building the
|
|
|
|
internal buildroot toolchain.
|
|
|
|
|
|
|
|
The default is $(BASE_DIR)/host
|
|
|
|
|
2010-12-06 04:52:37 +08:00
|
|
|
menu "Mirrors and Download locations"
|
|
|
|
|
|
|
|
config BR2_PRIMARY_SITE
|
|
|
|
string "Primary download site"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Primary site to download from. If this option is set then buildroot
|
|
|
|
will try to download package source first from this site and try the
|
|
|
|
default if the file is not found.
|
|
|
|
NOTE: This only works for packages using the Makefile.autotools.in
|
|
|
|
|
|
|
|
config BR2_BACKUP_SITE
|
|
|
|
string "Backup download site"
|
|
|
|
default "http://sources.buildroot.net/"
|
|
|
|
help
|
|
|
|
Backup site to download from. If this option is set then buildroot
|
|
|
|
will fall back to download package sources from here if the
|
|
|
|
normal location fails.
|
|
|
|
|
|
|
|
config BR2_SOURCEFORGE_MIRROR
|
|
|
|
string "Sourceforge mirror site"
|
2011-02-10 06:09:48 +08:00
|
|
|
default "kent"
|
2010-12-06 04:52:37 +08:00
|
|
|
help
|
|
|
|
Sourceforge has a system of mirror sites. Some sites may be
|
|
|
|
closer to your location, and sometimes mirror sites go down
|
|
|
|
and are no longer available. This option allows you to select
|
|
|
|
your preferred Sourceforge mirror site.
|
|
|
|
|
|
|
|
The list of mirrors is available here:
|
2011-02-10 06:09:48 +08:00
|
|
|
http://sourceforge.net/apps/trac/sourceforge/wiki/Mirrors
|
2010-12-06 04:52:37 +08:00
|
|
|
|
|
|
|
config BR2_KERNEL_MIRROR
|
|
|
|
string "Kernel.org mirror"
|
|
|
|
default "http://www.kernel.org/pub/"
|
|
|
|
help
|
|
|
|
kernel.org is mirrored on a number of servers around the world.
|
|
|
|
The following allows you to select your preferred mirror.
|
|
|
|
|
|
|
|
Have a look on the kernel.org site for a list of mirrors, then enter
|
|
|
|
the URL to the base directory. Examples:
|
|
|
|
|
|
|
|
http://www.XX.kernel.org/pub (XX = country code)
|
|
|
|
http://mirror.aarnet.edu.au/pub/ftp.kernel.org
|
|
|
|
|
|
|
|
config BR2_GNU_MIRROR
|
|
|
|
string "GNU Software mirror"
|
|
|
|
default "http://ftp.gnu.org/pub/gnu"
|
|
|
|
help
|
|
|
|
GNU has multiple software mirrors scattered around the world.
|
|
|
|
The following allows you to select your preferred mirror.
|
|
|
|
|
|
|
|
Have a look on the gnu.org site for a list of mirrors, then enter
|
|
|
|
the URL to the base directory. Examples:
|
|
|
|
|
|
|
|
http://ftp.gnu.org/pub/gnu
|
|
|
|
http://mirror.aarnet.edu.au/pub/gnu
|
|
|
|
|
|
|
|
config BR2_DEBIAN_MIRROR
|
|
|
|
string "Debian Software mirror"
|
|
|
|
default "http://ftp.debian.org"
|
|
|
|
help
|
|
|
|
Debian has multiple software mirrors scattered around the world.
|
|
|
|
The following allows you to select your preferred mirror.
|
|
|
|
|
|
|
|
Usually, just add your country code like XX here:
|
|
|
|
http://ftp.XX.debian.org
|
|
|
|
|
|
|
|
endmenu
|
2010-04-11 04:55:38 +08:00
|
|
|
|
2004-12-11 21:01:10 +08:00
|
|
|
config BR2_JLEVEL
|
|
|
|
int "Number of jobs to run simultaneously"
|
2010-03-31 17:05:12 +08:00
|
|
|
default "2"
|
2004-12-11 21:01:10 +08:00
|
|
|
help
|
2007-01-28 20:03:58 +08:00
|
|
|
Number of jobs to run simultaneously
|
|
|
|
|
2010-12-08 04:09:56 +08:00
|
|
|
config BR2_CCACHE
|
|
|
|
bool "Enable compiler cache"
|
|
|
|
help
|
|
|
|
This option will enable the use of ccache, a compiler
|
|
|
|
cache. It will cache the result of previous builds to speed
|
|
|
|
up future builds. The cache is stored in
|
|
|
|
$HOME/.buildroot-ccache.
|
|
|
|
|
2007-02-09 21:31:55 +08:00
|
|
|
config BR2_DEPRECATED
|
2007-02-09 21:35:41 +08:00
|
|
|
bool "Show packages that are deprecated or obsolete"
|
2007-02-09 21:31:55 +08:00
|
|
|
help
|
2007-02-09 21:35:41 +08:00
|
|
|
This option hides outdated/obsolete versions of packages.
|
2004-12-11 18:25:40 +08:00
|
|
|
|
2008-03-12 21:07:10 +08:00
|
|
|
config BR2_ENABLE_DEBUG
|
|
|
|
bool "build packages with debugging symbols"
|
2008-03-12 21:11:29 +08:00
|
|
|
select BR2_PACKAGE_GDB_SERVER
|
2008-03-12 21:07:10 +08:00
|
|
|
help
|
|
|
|
Build packages with debugging symbols
|
|
|
|
enabled
|
|
|
|
|
|
|
|
if BR2_ENABLE_DEBUG
|
|
|
|
choice
|
|
|
|
prompt "gcc debug level"
|
|
|
|
default BR2_DEBUG_2
|
|
|
|
help
|
|
|
|
Set the debug level for gcc
|
|
|
|
|
|
|
|
config BR2_DEBUG_1
|
|
|
|
bool "debug level 1"
|
|
|
|
help
|
2008-08-05 03:07:05 +08:00
|
|
|
Debug level 1 produces minimal information, enough
|
|
|
|
for making backtraces in parts of the program that
|
|
|
|
you don't plan to debug. This includes descriptions
|
2008-03-12 21:07:10 +08:00
|
|
|
of functions and external variables, but no information
|
|
|
|
about local variables and no line numbers.
|
|
|
|
|
|
|
|
config BR2_DEBUG_2
|
|
|
|
bool "debug level 2"
|
|
|
|
help
|
|
|
|
The default gcc debug level is 2
|
|
|
|
|
|
|
|
config BR2_DEBUG_3
|
|
|
|
bool "debug level 3"
|
|
|
|
help
|
2008-08-05 03:07:05 +08:00
|
|
|
Level 3 includes extra information, such as all the
|
2008-03-12 21:07:10 +08:00
|
|
|
macro definitions present in the program. Some debuggers
|
|
|
|
support macro expansion when you use -g3.
|
|
|
|
endchoice
|
|
|
|
endif
|
|
|
|
|
2007-08-01 02:06:50 +08:00
|
|
|
choice
|
|
|
|
prompt "strip"
|
|
|
|
default BR2_STRIP_strip
|
|
|
|
help
|
|
|
|
Select whether to strip binaries and libraries for the target
|
|
|
|
or not.
|
|
|
|
strip is the normal strip command
|
|
|
|
sstrip is a strip that discards more than the normal strip
|
|
|
|
none do not strip (only for debugging!)
|
|
|
|
|
|
|
|
config BR2_STRIP_strip
|
|
|
|
bool "strip"
|
2011-02-07 13:49:10 +08:00
|
|
|
depends on !BR2_ELF2FLT
|
2007-08-01 02:06:50 +08:00
|
|
|
help
|
|
|
|
strip is the normal strip command
|
2007-08-24 13:31:07 +08:00
|
|
|
|
2007-08-01 02:06:50 +08:00
|
|
|
config BR2_STRIP_sstrip
|
|
|
|
bool "sstrip"
|
|
|
|
select BR2_PACKAGE_SSTRIP_HOST
|
2011-02-07 13:49:10 +08:00
|
|
|
depends on !BR2_ELF2FLT
|
2007-08-01 02:06:50 +08:00
|
|
|
help
|
|
|
|
sstrip is a strip that discards more than the normal strip
|
2007-08-24 13:31:07 +08:00
|
|
|
|
2007-08-01 02:06:50 +08:00
|
|
|
config BR2_STRIP_none
|
|
|
|
bool "none"
|
|
|
|
help
|
|
|
|
none do not strip (only for debugging!)
|
|
|
|
endchoice
|
|
|
|
|
2008-03-12 21:07:10 +08:00
|
|
|
choice
|
|
|
|
prompt "gcc optimization level"
|
2008-03-16 21:26:14 +08:00
|
|
|
default BR2_OPTIMIZE_S
|
2008-03-12 19:23:11 +08:00
|
|
|
help
|
2008-03-12 21:07:10 +08:00
|
|
|
Set the optimization level for gcc
|
|
|
|
|
|
|
|
config BR2_OPTIMIZE_0
|
|
|
|
bool "optimization level 0"
|
|
|
|
help
|
2008-08-05 03:07:05 +08:00
|
|
|
Do not optimize. This is the default.
|
2008-03-12 21:07:10 +08:00
|
|
|
|
|
|
|
config BR2_OPTIMIZE_1
|
|
|
|
bool "optimization level 1"
|
|
|
|
help
|
2008-08-05 03:07:05 +08:00
|
|
|
Optimize. Optimizing compilation takes somewhat more time,
|
|
|
|
and a lot more memory for a large function. With -O, the
|
|
|
|
compiler tries to reduce code size and execution time,
|
|
|
|
without performing any optimizations that take a great deal
|
|
|
|
of compilation time. -O turns on the following optimization
|
|
|
|
flags: -fdefer-pop -fdelayed-branch -fguess-branch-probability
|
|
|
|
-fcprop-registers -floop-optimize -fif-conversion
|
|
|
|
-fif-conversion2 -ftree-ccp -ftree-dce -ftree-dominator-opts
|
|
|
|
-ftree-dse -ftree-ter -ftree-lrs -ftree-sra -ftree-copyrename
|
2008-03-12 21:07:10 +08:00
|
|
|
-ftree-fre -ftree-ch -funit-at-a-time -fmerge-constants
|
2008-08-05 03:07:05 +08:00
|
|
|
-O also turns on -fomit-frame-pointer on machines where doing
|
2008-03-12 21:07:10 +08:00
|
|
|
so does not interfere with debugging.
|
|
|
|
|
|
|
|
config BR2_OPTIMIZE_2
|
|
|
|
bool "optimization level 2"
|
|
|
|
help
|
|
|
|
Optimize even more. GCC performs nearly all supported optimizations
|
2008-08-05 03:07:05 +08:00
|
|
|
that do not involve a space-speed tradeoff. The compiler does not
|
|
|
|
perform loop unrolling or function inlining when you specify -O2.
|
|
|
|
As compared to -O, this option increases both compilation time and
|
|
|
|
the performance of the generated code. -O2 turns on all optimization
|
|
|
|
flags specified by -O. It also turns on the following optimization
|
|
|
|
flags: -fthread-jumps -fcrossjumping -foptimize-sibling-calls
|
|
|
|
-fcse-follow-jumps -fcse-skip-blocks -fgcse -fgcse-lm
|
|
|
|
-fexpensive-optimizations -fstrength-reduce -frerun-cse-after-loop
|
|
|
|
-frerun-loop-opt -fcaller-saves -fpeephole2 -fschedule-insns
|
|
|
|
-fschedule-insns2 -fsched-interblock -fsched-spec -fregmove
|
|
|
|
-fstrict-aliasing -fdelete-null-pointer-checks -freorder-blocks
|
|
|
|
-freorder-functions -falign-functions -falign-jumps -falign-loops
|
2008-03-12 21:07:10 +08:00
|
|
|
-falign-labels -ftree-vrp -ftree-pre
|
|
|
|
Please note the warning under -fgcse about invoking -O2 on programs
|
|
|
|
that use computed gotos.
|
|
|
|
|
|
|
|
config BR2_OPTIMIZE_3
|
|
|
|
bool "optimization level 3"
|
|
|
|
help
|
2008-08-05 03:07:05 +08:00
|
|
|
Optimize yet more. -O3 turns on all optimizations specified by -O2
|
|
|
|
and also turns on the -finline-functions, -funswitch-loops and
|
2008-03-12 21:07:10 +08:00
|
|
|
-fgcse-after-reload options.
|
|
|
|
|
|
|
|
config BR2_OPTIMIZE_S
|
|
|
|
bool "optimize for size"
|
|
|
|
help
|
2008-08-05 03:07:05 +08:00
|
|
|
Optimize for size. -Os enables all -O2 optimizations that do not
|
2008-03-12 21:07:10 +08:00
|
|
|
typically increase code size. It also performs further optimizations
|
2008-08-05 03:07:05 +08:00
|
|
|
designed to reduce code size. -Os disables the following optimization
|
|
|
|
flags: -falign-functions -falign-jumps -falign-loops -falign-labels
|
2008-03-12 21:07:10 +08:00
|
|
|
-freorder-blocks -freorder-blocks-and-partition -fprefetch-loop-arrays
|
|
|
|
-ftree-vect-loop-version
|
2008-08-05 03:07:05 +08:00
|
|
|
|
2008-03-12 21:07:10 +08:00
|
|
|
endchoice
|
2008-03-12 19:23:11 +08:00
|
|
|
|
2007-06-02 06:16:28 +08:00
|
|
|
config BR2_PREFER_STATIC_LIB
|
|
|
|
bool "prefer static libraries"
|
|
|
|
help
|
2007-06-03 00:36:43 +08:00
|
|
|
Where possible, build and use static libraries for the target.
|
|
|
|
This potentially increases your code size and should only be
|
|
|
|
used if you know what you do.
|
|
|
|
The default is to build dynamic libraries and use those on
|
|
|
|
the target filesystem.
|
2007-06-02 06:16:28 +08:00
|
|
|
|
|
|
|
WARNING: This is highly experimental at the moment.
|
|
|
|
|
2008-10-20 19:32:25 +08:00
|
|
|
config BR2_HAVE_DOCUMENTATION
|
|
|
|
bool "documentation on the target"
|
|
|
|
help
|
2010-04-11 04:47:28 +08:00
|
|
|
Install the documentation, including manual pages and info
|
|
|
|
pages, on the target.
|
2008-10-20 19:32:25 +08:00
|
|
|
If you say n here, your target will not contain any
|
|
|
|
documentation.
|
|
|
|
|
2008-03-11 00:34:19 +08:00
|
|
|
config BR2_HAVE_DEVFILES
|
|
|
|
bool "development files in target filesystem"
|
2008-03-10 23:22:43 +08:00
|
|
|
help
|
|
|
|
Install headers and static libraries in the
|
|
|
|
target filesystem
|
|
|
|
|
2011-09-30 03:57:38 +08:00
|
|
|
config BR2_PACKAGE_OVERRIDE_FILE
|
|
|
|
string "location of a package override file"
|
|
|
|
default "$(TOPDIR)/local.mk"
|
|
|
|
help
|
|
|
|
A package override file is a short makefile that contains
|
|
|
|
variable definitions of the form <pkg>_OVERRIDE_SRCDIR,
|
|
|
|
which allows to tell Buildroot to use an existing directory
|
|
|
|
as the source directory for a particular package. See the
|
|
|
|
Buildroot documentation for more details on this feature.
|
|
|
|
|
2004-12-11 21:01:10 +08:00
|
|
|
endmenu
|
2004-10-09 09:06:03 +08:00
|
|
|
|
2007-09-25 15:55:45 +08:00
|
|
|
source "toolchain/Config.in"
|
|
|
|
|
2010-12-06 04:52:44 +08:00
|
|
|
source "target/generic/Config.in"
|
|
|
|
|
2007-09-25 15:55:45 +08:00
|
|
|
source "package/Config.in"
|
|
|
|
|
2010-03-11 05:30:06 +08:00
|
|
|
source "fs/Config.in"
|
|
|
|
|
2010-03-15 01:20:45 +08:00
|
|
|
source "boot/Config.in"
|
|
|
|
|
New, simpler, infrastructure for building the Linux kernel
This patch introduces a single, simple, infrastructure to build the
Linux kernel. The configuration is limited to :
* Kernel version: a fixed recent stable version, same as kernel
headers version (for internal toolchains only), custom stable
version, or custom tarball URL
* Kernel patch: either a local file, directory or an URL
* Kernel configuration: either the name of a defconfig or the
location of a custom configuration file
* Kernel image: either uImage, bzImage, zImage or vmlinux.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2010-04-04 00:46:46 +08:00
|
|
|
source "linux/Config.in"
|