Config-devel.in 4.5 KB

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