1 # SPDX-License-Identifier: GPL-2.0-only
3 # Copyright (C) 2006-2013 OpenWrt.org
6 bool "Advanced configuration options (for developers)"
10 bool "Show broken platforms / packages / devices" if DEVEL
14 string "Binary folder" if DEVEL
17 Store built firmware images and filesystem images in this directory.
18 If not set, uses './bin/$(BOARD)'
20 config DOWNLOAD_FOLDER
21 string "Download folder" if DEVEL
24 Store downloaded source bundles in this directory.
25 If not set then defaults to './dl', which is removed by operations such as
26 'git clean -xdf' or 'make distclean'.
27 This option is useful if you have a low bandwidth Internet connection, and by
28 setting a path outside the OpenWrt tree downloads will be saved.
31 string "Local mirror for source packages" if DEVEL
35 bool "Automatic rebuild of packages" if DEVEL
38 Automatically rebuild packages when their files change.
41 bool "Automatic removal of build directories" if DEVEL
44 Automatically delete build directories after make target completed.
45 This allows you to symlink build_dir into a scratch location, e.g. a ramdisk,
46 which does not have enough space to keep a complete build_dir.
48 config BUILD_ALL_HOST_TOOLS
49 bool "Compile all host tools" if DEVEL
52 Compile all host host tools even if not needed. This is needed to prepare a
53 universal precompiled host tools archive to use in another buildroot.
56 string "Build suffix to append to the target BUILD_DIR variable" if DEVEL
59 Build suffix to append to the BUILD_DIR variable, i.e: './build_dir/{target-build-dir}_$(BUILD_SUFFIX)'.
60 This allows you to switch to a different .config whilst retaining all the build
61 objects generated by the first .config
63 config TARGET_ROOTFS_DIR
64 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
67 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with
68 custom path. Use this option to re-define the location of the target
69 root filesystem directory.
72 bool "Use ccache" if DEVEL
75 Compiler cache; see https://ccache.samba.org/
78 string "Set ccache directory" if CCACHE
81 Store ccache in this directory.
82 If not set, uses './.ccache'
85 string "Kernel extra CFLAGS" if DEVEL
86 default "-falign-functions=32" if TARGET_bcm53xx
89 config EXTERNAL_KERNEL_TREE
90 string "Use external kernel tree" if DEVEL
93 config KERNEL_GIT_CLONE_URI
94 string "Enter git repository to clone" if DEVEL
97 Enter the full git repository path i.e.:
98 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
99 This will create a git clone of the kernel in your build directory.
101 config KERNEL_GIT_LOCAL_REPOSITORY
102 string "Enter path to local reference repository" if DEVEL
103 depends on (KERNEL_GIT_CLONE_URI != "")
106 Enter a full pathname to a local reference git repository.
107 In this instance, the --reference option of git clone will
108 be used thus creating a quick local clone of your repo.
110 config KERNEL_GIT_REF
111 string "Enter git ref at which to checkout" if DEVEL
112 depends on (KERNEL_GIT_CLONE_URI != "")
115 Enter the git ref at which to checkout the git repository
116 after it is cloned, and before making it a tar-ball.
117 It can be a git hash or a branch name.
118 If unused, the clone's repository HEAD will be checked-out.
120 config KERNEL_GIT_MIRROR_HASH
121 string "Enter hash of Git kernel tree source checkout tarball" if DEVEL
122 depends on (KERNEL_GIT_CLONE_URI != "")
126 bool "Enable log files during build process" if DEVEL
128 If enabled, log files will be written to the ./log directory.
131 string "Log folder" if DEVEL
134 Store build logs in this directory.
135 If not set, uses './logs'
137 config SRC_TREE_OVERRIDE
138 bool "Enable package source tree override" if DEVEL
140 If enabled, you can force a package to use a git tree as source
141 code instead of the normal tarball. Create a symlink 'git-src'
142 in the package directory, pointing to the .git tree that you want
143 to pull the source code from.
145 config EXTRA_OPTIMIZATION
146 string "Additional compiler options" if DEVEL
147 default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN && !arc
148 default "-fno-caller-saves"
150 Extra target-independent optimizations to use when building for the target.