2020-09-22 02:48:37 +00:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2013-11-22 14:30:40 +00:00
|
|
|
#
|
2020-09-22 02:48:37 +00:00
|
|
|
# Copyright (C) 2006-2013 OpenWrt.org
|
2013-11-22 14:30:40 +00:00
|
|
|
|
|
|
|
menuconfig DEVEL
|
|
|
|
bool "Advanced configuration options (for developers)"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config BROKEN
|
2020-07-28 18:47:34 +00:00
|
|
|
bool "Show broken platforms / packages / devices" if DEVEL
|
2013-11-22 14:30:40 +00:00
|
|
|
default n
|
|
|
|
|
|
|
|
config BINARY_FOLDER
|
|
|
|
string "Binary folder" if DEVEL
|
|
|
|
default ""
|
2014-09-13 20:27:52 +00:00
|
|
|
help
|
|
|
|
Store built firmware images and filesystem images in this directory.
|
|
|
|
If not set, uses './bin/$(BOARD)'
|
2013-11-22 14:30:40 +00:00
|
|
|
|
|
|
|
config DOWNLOAD_FOLDER
|
|
|
|
string "Download folder" if DEVEL
|
|
|
|
default ""
|
2014-09-13 20:27:52 +00:00
|
|
|
help
|
|
|
|
Store downloaded source bundles in this directory.
|
|
|
|
If not set then defaults to './dl', which is removed by operations such as
|
|
|
|
'git clean -xdf' or 'make distclean'.
|
|
|
|
This option is useful if you have a low bandwidth Internet connection, and by
|
2014-12-07 16:53:30 +00:00
|
|
|
setting a path outside the OpenWrt tree downloads will be saved.
|
2013-11-22 14:30:40 +00:00
|
|
|
|
|
|
|
config LOCALMIRROR
|
|
|
|
string "Local mirror for source packages" if DEVEL
|
|
|
|
default ""
|
|
|
|
|
|
|
|
config AUTOREBUILD
|
|
|
|
bool "Automatic rebuild of packages" if DEVEL
|
|
|
|
default y
|
|
|
|
help
|
2014-09-13 20:27:25 +00:00
|
|
|
Automatically rebuild packages when their files change.
|
2013-11-22 14:30:40 +00:00
|
|
|
|
2017-01-18 14:37:57 +00:00
|
|
|
config AUTOREMOVE
|
|
|
|
bool "Automatic removal of build directories" if DEVEL
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Automatically delete build directories after make target completed.
|
|
|
|
This allows you to symlink build_dir into a scratch location, e.g. a ramdisk,
|
|
|
|
which does not have enough space to keep a complete build_dir.
|
|
|
|
|
2013-11-22 14:30:40 +00:00
|
|
|
config BUILD_SUFFIX
|
2014-09-13 20:27:52 +00:00
|
|
|
string "Build suffix to append to the target BUILD_DIR variable" if DEVEL
|
2013-11-22 14:30:40 +00:00
|
|
|
default ""
|
|
|
|
help
|
2014-09-13 20:27:52 +00:00
|
|
|
Build suffix to append to the BUILD_DIR variable, i.e: './build_dir/{target-build-dir}_$(BUILD_SUFFIX)'.
|
|
|
|
This allows you to switch to a different .config whilst retaining all the build
|
|
|
|
objects generated by the first .config
|
2013-11-22 14:30:40 +00:00
|
|
|
|
|
|
|
config TARGET_ROOTFS_DIR
|
|
|
|
string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
|
|
|
|
default ""
|
|
|
|
help
|
2014-09-13 20:27:25 +00:00
|
|
|
Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with
|
|
|
|
custom path. Use this option to re-define the location of the target
|
|
|
|
root filesystem directory.
|
2013-11-22 14:30:40 +00:00
|
|
|
|
|
|
|
config CCACHE
|
|
|
|
bool "Use ccache" if DEVEL
|
|
|
|
default n
|
|
|
|
help
|
2017-02-01 21:17:37 +00:00
|
|
|
Compiler cache; see https://ccache.samba.org/
|
2013-11-22 14:30:40 +00:00
|
|
|
|
2020-06-12 18:43:46 +00:00
|
|
|
config CCACHE_DIR
|
|
|
|
string "Set ccache directory" if CCACHE
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Store ccache in this directory.
|
|
|
|
If not set, uses './.ccache'
|
|
|
|
|
2013-11-22 14:30:40 +00:00
|
|
|
config EXTERNAL_KERNEL_TREE
|
|
|
|
string "Use external kernel tree" if DEVEL
|
|
|
|
default ""
|
|
|
|
|
|
|
|
config KERNEL_GIT_CLONE_URI
|
|
|
|
string "Enter git repository to clone" if DEVEL
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Enter the full git repository path i.e.:
|
|
|
|
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
|
2014-09-13 20:27:25 +00:00
|
|
|
This will create a git clone of the kernel in your build directory.
|
2013-11-22 14:30:40 +00:00
|
|
|
|
2014-06-02 12:45:22 +00:00
|
|
|
config KERNEL_GIT_LOCAL_REPOSITORY
|
|
|
|
string "Enter path to local reference repository" if DEVEL
|
|
|
|
depends on (KERNEL_GIT_CLONE_URI != "")
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Enter a full pathname to a local reference git repository.
|
2014-09-13 20:27:25 +00:00
|
|
|
In this instance, the --reference option of git clone will
|
2014-06-02 12:45:22 +00:00
|
|
|
be used thus creating a quick local clone of your repo.
|
|
|
|
|
2018-01-17 12:05:57 +00:00
|
|
|
config KERNEL_GIT_REF
|
|
|
|
string "Enter git ref at which to checkout" if DEVEL
|
2014-06-02 12:45:22 +00:00
|
|
|
depends on (KERNEL_GIT_CLONE_URI != "")
|
|
|
|
default ""
|
|
|
|
help
|
2018-01-17 12:05:57 +00:00
|
|
|
Enter the git ref at which to checkout the git repository
|
|
|
|
after it is cloned, and before making it a tar-ball.
|
|
|
|
It can be a git hash or a branch name.
|
2014-06-02 12:45:22 +00:00
|
|
|
If unused, the clone's repository HEAD will be checked-out.
|
|
|
|
|
2020-11-21 14:59:50 +00:00
|
|
|
config KERNEL_GIT_MIRROR_HASH
|
|
|
|
string "Enter hash of Git kernel tree source checkout tarball" if DEVEL
|
|
|
|
depends on (KERNEL_GIT_CLONE_URI != "")
|
|
|
|
default ""
|
|
|
|
|
2013-11-22 14:30:40 +00:00
|
|
|
config BUILD_LOG
|
|
|
|
bool "Enable log files during build process" if DEVEL
|
|
|
|
help
|
2014-09-13 20:27:25 +00:00
|
|
|
If enabled, log files will be written to the ./log directory.
|
2013-11-22 14:30:40 +00:00
|
|
|
|
2019-09-28 21:12:21 +00:00
|
|
|
config BUILD_LOG_DIR
|
|
|
|
string "Log folder" if DEVEL
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Store build logs in this directory.
|
|
|
|
If not set, uses './logs'
|
|
|
|
|
2013-11-22 14:30:40 +00:00
|
|
|
config SRC_TREE_OVERRIDE
|
|
|
|
bool "Enable package source tree override" if DEVEL
|
|
|
|
help
|
|
|
|
If enabled, you can force a package to use a git tree as source
|
|
|
|
code instead of the normal tarball. Create a symlink 'git-src'
|
|
|
|
in the package directory, pointing to the .git tree that you want
|
2014-09-13 20:27:25 +00:00
|
|
|
to pull the source code from.
|
2013-11-22 14:30:40 +00:00
|
|
|
|
|
|
|
config EXTRA_OPTIMIZATION
|
|
|
|
string "Additional compiler options" if DEVEL
|
2016-02-07 13:29:16 +00:00
|
|
|
default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN && !arc
|
2013-11-22 14:30:40 +00:00
|
|
|
default "-fno-caller-saves"
|
|
|
|
help
|
2014-09-13 20:27:25 +00:00
|
|
|
Extra target-independent optimizations to use when building for the target.
|