b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 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 | |
| 8 | config BROKEN |
| 9 | bool "Show broken platforms / packages / devices" if DEVEL |
| 10 | |
| 11 | config BINARY_FOLDER |
| 12 | string "Binary folder" if DEVEL |
| 13 | default "" |
| 14 | help |
| 15 | Store built firmware images and filesystem images in this directory. |
| 16 | If not set, uses './bin/$(BOARD)' |
| 17 | |
| 18 | config DOWNLOAD_TOOL_CUSTOM |
| 19 | string "Use custom download tool" if DEVEL |
| 20 | default "" |
| 21 | help |
| 22 | Use and force custom download tool instead of relying on autoselection |
| 23 | between curl if available and wget as a fallback. |
| 24 | |
| 25 | download.pl supports 3 tools officially aria2c, curl and wget. |
| 26 | If one of the tool is used in this config, download.pl will use the |
| 27 | default args to make use of them. |
| 28 | |
| 29 | If the provided string is different than aria2c, curl or wget, the command |
| 30 | is used as is and the download url will be appended at the end of such command. |
| 31 | |
| 32 | config DOWNLOAD_FOLDER |
| 33 | string "Download folder" if DEVEL |
| 34 | default "" |
| 35 | help |
| 36 | Store downloaded source bundles in this directory. |
| 37 | If not set then defaults to './dl', which is removed by operations such as |
| 38 | 'git clean -xdf' or 'make distclean'. |
| 39 | This option is useful if you have a low bandwidth Internet connection, and by |
| 40 | setting a path outside the OpenWrt tree downloads will be saved. |
| 41 | |
| 42 | config LOCALMIRROR |
| 43 | string "Local mirror for source packages" if DEVEL |
| 44 | default "" |
| 45 | |
| 46 | config AUTOREBUILD |
| 47 | bool "Automatic rebuild of packages" if DEVEL |
| 48 | default y |
| 49 | help |
| 50 | Automatically rebuild packages when their files change. |
| 51 | |
| 52 | config AUTOREMOVE |
| 53 | bool "Automatic removal of build directories" if DEVEL |
| 54 | help |
| 55 | Automatically delete build directories after make target completed. |
| 56 | This allows you to symlink build_dir into a scratch location, e.g. a ramdisk, |
| 57 | which does not have enough space to keep a complete build_dir. |
| 58 | |
| 59 | config BUILD_ALL_HOST_TOOLS |
| 60 | bool "Compile all host tools" if DEVEL |
| 61 | help |
| 62 | Compile all host host tools even if not needed. This is needed to prepare a |
| 63 | universal precompiled host tools archive to use in another buildroot. |
| 64 | |
| 65 | config BUILD_SUFFIX |
| 66 | string "Build suffix to append to the target BUILD_DIR variable" if DEVEL |
| 67 | default "" |
| 68 | help |
| 69 | Build suffix to append to the BUILD_DIR variable, i.e: './build_dir/{target-build-dir}_$(BUILD_SUFFIX)'. |
| 70 | This allows you to switch to a different .config whilst retaining all the build |
| 71 | objects generated by the first .config |
| 72 | |
| 73 | config TARGET_ROOTFS_DIR |
| 74 | string "Override the default TARGET_ROOTFS_DIR variable" if DEVEL |
| 75 | default "" |
| 76 | help |
| 77 | Override the default TARGET_ROOTFS_DIR variable content $(BUILD_DIR) with |
| 78 | custom path. Use this option to re-define the location of the target |
| 79 | root filesystem directory. |
| 80 | |
| 81 | config CCACHE |
| 82 | bool "Use ccache" if DEVEL |
| 83 | help |
| 84 | Compiler cache; see https://ccache.samba.org/ |
| 85 | |
| 86 | config CCACHE_DIR |
| 87 | string "Set ccache directory" if CCACHE |
| 88 | default "" |
| 89 | help |
| 90 | Store ccache in this directory. |
| 91 | If not set, uses './.ccache' |
| 92 | |
| 93 | config KERNEL_CFLAGS |
| 94 | string "Kernel extra CFLAGS" if DEVEL |
| 95 | default "-falign-functions=32" if TARGET_bcm53xx |
| 96 | default "" |
| 97 | |
| 98 | config EXTERNAL_KERNEL_TREE |
| 99 | string "Use external kernel tree" if DEVEL |
| 100 | default "" |
| 101 | |
| 102 | config KERNEL_GIT_CLONE_URI |
| 103 | string "Enter git repository to clone" if DEVEL |
| 104 | default "" |
| 105 | help |
| 106 | Enter the full git repository path i.e.: |
| 107 | git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git |
| 108 | This will create a git clone of the kernel in your build directory. |
| 109 | |
| 110 | config KERNEL_GIT_LOCAL_REPOSITORY |
| 111 | string "Enter path to local reference repository" if DEVEL |
| 112 | depends on (KERNEL_GIT_CLONE_URI != "") |
| 113 | default "" |
| 114 | help |
| 115 | Enter a full pathname to a local reference git repository. |
| 116 | In this instance, the --reference option of git clone will |
| 117 | be used thus creating a quick local clone of your repo. |
| 118 | |
| 119 | config KERNEL_GIT_REF |
| 120 | string "Enter git ref at which to checkout" if DEVEL |
| 121 | depends on (KERNEL_GIT_CLONE_URI != "") |
| 122 | default "" |
| 123 | help |
| 124 | Enter the git ref at which to checkout the git repository |
| 125 | after it is cloned, and before making it a tar-ball. |
| 126 | It can be a git hash or a branch name. |
| 127 | If unused, the clone's repository HEAD will be checked-out. |
| 128 | |
| 129 | config KERNEL_GIT_MIRROR_HASH |
| 130 | string "Enter hash of Git kernel tree source checkout tarball" if DEVEL |
| 131 | depends on (KERNEL_GIT_CLONE_URI != "") |
| 132 | default "" |
| 133 | |
| 134 | config BUILD_LOG |
| 135 | bool "Enable log files during build process" if DEVEL |
| 136 | help |
| 137 | If enabled, log files will be written to the ./log directory. |
| 138 | |
| 139 | config BUILD_LOG_DIR |
| 140 | string "Log folder" if DEVEL |
| 141 | default "" |
| 142 | help |
| 143 | Store build logs in this directory. |
| 144 | If not set, uses './logs' |
| 145 | |
| 146 | config SRC_TREE_OVERRIDE |
| 147 | bool "Enable package source tree override" if DEVEL |
| 148 | help |
| 149 | If enabled, you can force a package to use a git tree as source |
| 150 | code instead of the normal tarball. Create a symlink 'git-src' |
| 151 | in the package directory, pointing to the .git tree that you want |
| 152 | to pull the source code from. |
| 153 | |
| 154 | config EXTRA_OPTIMIZATION |
| 155 | string "Additional compiler options" if DEVEL |
| 156 | default "-fno-caller-saves -fno-plt" if !CONFIG_EXTERNAL_TOOLCHAIN && !arc |
| 157 | default "-fno-caller-saves" |
| 158 | help |
| 159 | Extra target-independent optimizations to use when building for the target. |