kernel: fold lzma debloat patch into the patch adding the code
[openwrt/openwrt.git] / config / Config-devel.in
1 # SPDX-License-Identifier: GPL-2.0-only
2 #
3 # Copyright (C) 2006-2013 OpenWrt.org
4
5 menuconfig DEVEL
6 bool "Advanced configuration options (for developers)"
7 default n
8
9 config BROKEN
10 bool "Show broken platforms / packages / devices" if DEVEL
11 default n
12
13 config BINARY_FOLDER
14 string "Binary folder" if DEVEL
15 default ""
16 help
17 Store built firmware images and filesystem images in this directory.
18 If not set, uses './bin/$(BOARD)'
19
20 config DOWNLOAD_FOLDER
21 string "Download folder" if DEVEL
22 default ""
23 help
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.
29
30 config LOCALMIRROR
31 string "Local mirror for source packages" if DEVEL
32 default ""
33
34 config AUTOREBUILD
35 bool "Automatic rebuild of packages" if DEVEL
36 default y
37 help
38 Automatically rebuild packages when their files change.
39
40 config AUTOREMOVE
41 bool "Automatic removal of build directories" if DEVEL
42 default n
43 help
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.
47
48 config BUILD_SUFFIX
49 string "Build suffix to append to the target BUILD_DIR variable" if DEVEL
50 default ""
51 help
52 Build suffix to append to the BUILD_DIR variable, i.e: './build_dir/{target-build-dir}_$(BUILD_SUFFIX)'.
53 This allows you to switch to a different .config whilst retaining all the build
54 objects generated by the first .config
55
56 config TARGET_ROOTFS_DIR
57 string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL
58 default ""
59 help
60 Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with
61 custom path. Use this option to re-define the location of the target
62 root filesystem directory.
63
64 config CCACHE
65 bool "Use ccache" if DEVEL
66 default n
67 help
68 Compiler cache; see https://ccache.samba.org/
69
70 config CCACHE_DIR
71 string "Set ccache directory" if CCACHE
72 default ""
73 help
74 Store ccache in this directory.
75 If not set, uses './.ccache'
76
77 config KERNEL_CFLAGS
78 string "Kernel extra CFLAGS" if DEVEL
79 default "-falign-functions=32" if TARGET_bcm53xx
80 default ""
81
82 config EXTERNAL_KERNEL_TREE
83 string "Use external kernel tree" if DEVEL
84 default ""
85
86 config KERNEL_GIT_CLONE_URI
87 string "Enter git repository to clone" if DEVEL
88 default ""
89 help
90 Enter the full git repository path i.e.:
91 git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
92 This will create a git clone of the kernel in your build directory.
93
94 config KERNEL_GIT_LOCAL_REPOSITORY
95 string "Enter path to local reference repository" if DEVEL
96 depends on (KERNEL_GIT_CLONE_URI != "")
97 default ""
98 help
99 Enter a full pathname to a local reference git repository.
100 In this instance, the --reference option of git clone will
101 be used thus creating a quick local clone of your repo.
102
103 config KERNEL_GIT_REF
104 string "Enter git ref at which to checkout" if DEVEL
105 depends on (KERNEL_GIT_CLONE_URI != "")
106 default ""
107 help
108 Enter the git ref at which to checkout the git repository
109 after it is cloned, and before making it a tar-ball.
110 It can be a git hash or a branch name.
111 If unused, the clone's repository HEAD will be checked-out.
112
113 config KERNEL_GIT_MIRROR_HASH
114 string "Enter hash of Git kernel tree source checkout tarball" if DEVEL
115 depends on (KERNEL_GIT_CLONE_URI != "")
116 default ""
117
118 config BUILD_LOG
119 bool "Enable log files during build process" if DEVEL
120 help
121 If enabled, log files will be written to the ./log directory.
122
123 config BUILD_LOG_DIR
124 string "Log folder" if DEVEL
125 default ""
126 help
127 Store build logs in this directory.
128 If not set, uses './logs'
129
130 config SRC_TREE_OVERRIDE
131 bool "Enable package source tree override" if DEVEL
132 help
133 If enabled, you can force a package to use a git tree as source
134 code instead of the normal tarball. Create a symlink 'git-src'
135 in the package directory, pointing to the .git tree that you want
136 to pull the source code from.
137
138 config EXTRA_OPTIMIZATION
139 string "Additional compiler options" if DEVEL
140 default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN && !arc
141 default "-fno-caller-saves"
142 help
143 Extra target-independent optimizations to use when building for the target.