local.conf.sample 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. #
  2. # This file is your local configuration file and is where all local user settings
  3. # are placed. The comments in this file give some guide to the options a new user
  4. # to the system might want to change but pretty much any configuration option can
  5. # be set in this file. More adventurous users can look at local.conf.extended
  6. # which contains other examples of configuration which can be placed in this file
  7. # but new users likely won't need any of them initially.
  8. #
  9. # Lines starting with the '#' character are commented out and in some cases the
  10. # default values are provided as comments to show people example syntax. Enabling
  11. # the option is a question of removing the # character and making any change to the
  12. # variable as required.
  13. #
  14. # Machine Selection
  15. #
  16. # You need to select a specific machine to target the build with. There are a selection
  17. # of emulated machines available which can boot and run in the QEMU emulator:
  18. #
  19. # This sets the default machine to be qemuarm if no other machine is selected:
  20. MACHINE ??= "qemuarm64"
  21. #
  22. # Isar Configuration Selection
  23. #
  24. # You need to select a specific distribution configuration which will used for both:
  25. # generation of buildchroot environment and target root filesystem.
  26. #
  27. # This sets the default distribution configuration:
  28. DISTRO ??= "kylin-v101"
  29. DISTRO_ARCH ??= "arm64"
  30. #
  31. # Multiple Configuration Selection
  32. #
  33. # If you want to use multiple configuration files for the build, list them in the
  34. # following option.
  35. #
  36. # This sets the default multiple configurations used:
  37. BBMULTICONFIG = " \
  38. qemuarm-stretch \
  39. qemuarm-buster \
  40. qemuarm-bullseye \
  41. qemuarm-bookworm \
  42. qemuarm64-stretch \
  43. qemuarm64-buster \
  44. qemuarm64-bullseye \
  45. qemuarm64-bookworm \
  46. qemui386-stretch \
  47. qemui386-buster \
  48. qemui386-bullseye \
  49. qemui386-bookworm \
  50. qemuamd64-stretch \
  51. qemuamd64-buster \
  52. qemuamd64-buster-tgz \
  53. qemuamd64-buster-cpiogz \
  54. qemuamd64-bullseye \
  55. qemuamd64-bullseye-tgz \
  56. qemuamd64-bullseye-cpiogz \
  57. qemuamd64-bookworm \
  58. container-amd64-stretch \
  59. container-amd64-buster \
  60. container-amd64-bullseye \
  61. container-amd64-bookworm \
  62. qemumipsel-stretch \
  63. qemumipsel-buster \
  64. qemumipsel-bullseye \
  65. qemumipsel-bookworm \
  66. qemuriscv64-sid-ports \
  67. bananapi-buster \
  68. bananapi-bullseye \
  69. de0-nano-soc-buster \
  70. de0-nano-soc-bullseye \
  71. hikey-bullseye \
  72. hikey-bookworm \
  73. imx6-sabrelite-buster \
  74. imx6-sabrelite-bullseye \
  75. phyboard-mira-bullseye \
  76. nanopi-neo-buster \
  77. nanopi-neo-bullseye \
  78. stm32mp15x-buster \
  79. stm32mp15x-bullseye \
  80. virtualbox-bullseye \
  81. rpi-stretch \
  82. sifive-fu540-sid-ports \
  83. qemuarm64-focal \
  84. qemuamd64-focal \
  85. qemuamd64-v101 \
  86. qemuarm64-v101 \
  87. virtualbox-v101 \
  88. "
  89. #
  90. # Where to place downloads
  91. #
  92. # During a first build the system will download many different source code tarballs
  93. # from various upstream projects. This can take a while, particularly if your network
  94. # connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you
  95. # can preserve this directory to speed up this part of subsequent builds. This directory
  96. # is safe to share between multiple builds on the same machine too.
  97. #
  98. # The default is a downloads directory under TOPDIR which is the build directory.
  99. #
  100. #DL_DIR ?= "${TOPDIR}/downloads"
  101. DL_DIR = "/var/tmp/downloads"
  102. #
  103. # Where to place shared-state files
  104. #
  105. # BitBake has the capability to accelerate builds based on previously built output.
  106. # This is done using "shared state" files which can be thought of as cache objects
  107. # and this option determines where those files are placed.
  108. #
  109. # You can wipe out TMPDIR leaving this directory intact and the build would regenerate
  110. # from these files if no changes were made to the configuration. If changes were made
  111. # to the configuration, only shared state files where the state was still valid would
  112. # be used (done using checksums).
  113. #
  114. # The default is a sstate-cache directory under TOPDIR.
  115. #
  116. #SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
  117. #
  118. # Where to place the build output
  119. #
  120. # This option specifies where the bulk of the building work should be done and
  121. # where BitBake should place its temporary files and output. Keep in mind that
  122. # this includes the extraction and compilation of many applications and the toolchain
  123. # which can use Gigabytes of hard disk space.
  124. #
  125. # The default is a tmp directory under TOPDIR.
  126. #
  127. #TMPDIR = "${TOPDIR}/tmp"
  128. #
  129. # Interactive shell configuration
  130. #
  131. # Under certain circumstances the system may need input from you and to do this it
  132. # can launch an interactive shell. It needs to do this since the build is
  133. # multithreaded and needs to be able to handle the case where more than one parallel
  134. # process may require the user's attention. The default is iterate over the available
  135. # terminal types to find one that works.
  136. #
  137. # Examples of the occasions this may happen are when resolving patches which cannot
  138. # be applied, to use the devshell or the kernel menuconfig
  139. #
  140. # Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none
  141. # Note: currently, Konsole support only works for KDE 3.x due to the way
  142. # newer Konsole versions behave
  143. #OE_TERMINAL = "auto"
  144. # By default disable interactive patch resolution (tasks will just fail instead):
  145. PATCHRESOLVE = "noop"
  146. #
  147. # Disk Space Monitoring during the build
  148. #
  149. # Monitor the disk space during the build. If there is less that 1GB of space or less
  150. # than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
  151. # shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort
  152. # of the build. The reason for this is that running completely out of space can corrupt
  153. # files and damages the build in ways which may not be easily recoverable.
  154. # It's necesary to monitor /tmp, if there is no space left the build will fail
  155. # with very exotic errors.
  156. BB_DISKMON_DIRS = "\
  157. STOPTASKS,${TMPDIR},1G,100K \
  158. STOPTASKS,${DL_DIR},1G,100K \
  159. STOPTASKS,${SSTATE_DIR},1G,100K \
  160. STOPTASKS,/tmp,100M,100K \
  161. ABORT,${TMPDIR},100M,1K \
  162. ABORT,${DL_DIR},100M,1K \
  163. ABORT,${SSTATE_DIR},100M,1K \
  164. ABORT,/tmp,10M,1K"
  165. # Isar MIRRORS in case of service unavailable
  166. MIRRORS ?= "git?://salsa\.debian\.org/debian/.* git://github.com/ilbers/BASENAME"
  167. # External MIRRORS in case of service unavailable
  168. MIRRORS += "https?://cdn\.kernel\.org/.* https://mirrors.edge.kernel.org/PATH"
  169. #
  170. # Shared-state files from other locations
  171. #
  172. # As mentioned above, shared state files are prebuilt cache data objects which can
  173. # used to accelerate build time. This variable can be used to configure the system
  174. # to search other mirror locations for these objects before it builds the data itself.
  175. #
  176. # This can be a filesystem directory, or a remote url such as http or ftp. These
  177. # would contain the sstate-cache results from previous builds (possibly from other
  178. # machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the
  179. # cache locations to check for the shared objects.
  180. # NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to add PATH
  181. # at the end as shown in the examples below. This will be substituted with the
  182. # correct path within the directory structure.
  183. #SSTATE_MIRRORS ?= "\
  184. #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
  185. #file://.* file:///some/local/dir/sstate/PATH"
  186. # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
  187. # track the version of this file when it was generated. This can safely be ignored if
  188. # this doesn't mean anything to you.
  189. CONF_VERSION = "1"
  190. #
  191. # The default list of extra packages to be installed.
  192. # IMAGE_INSTALL = "hello-isar example-raw example-module-${KERNEL_NAME} enable-fsck isar-exclude-docs samefile hello isar-disable-apt-cache cowsay example-prebuilt"
  193. IMAGE_INSTALL = "enable-fsck"
  194. #
  195. # Enable cross-compilation support
  196. ISAR_CROSS_COMPILE ?= "0"
  197. #
  198. # Uncomment to enable 32-bit compat architecture support
  199. # NOTE: this works for amd64 and arm64 targets so far
  200. #ISAR_ENABLE_COMPAT_ARCH ?= "1"
  201. # Uncomment this to enable caching of all source packages.
  202. # Without this feature, only sources of packages downloaded with apt:// are downloaded.
  203. #BASE_REPO_FEATURES ?= "cache-deb-src"
  204. #
  205. # Uncomment this to enable use of cached base repository
  206. #ISAR_USE_CACHED_BASE_REPO ?= "1"
  207. #
  208. # You probably want to uncomment this as well to make sure the build
  209. # does not access the network
  210. #BB_NO_NETWORK ?= "1"
  211. # Set root password to 'root'
  212. # Password was encrypted using following command:
  213. # mkpasswd -m sha512crypt -R 10000
  214. # mkpasswd is part of the 'whois' package of Debian
  215. USERS += "root"
  216. USER_root[password] ??= "$6$rounds=10000$RXeWrnFmkY$DtuS/OmsAS2cCEDo0BF5qQsizIrq6jPgXnwv3PHqREJeKd1sXdHX/ayQtuQWVDHe0KIO0/sVH8dvQm1KthF0d/"
  217. GROUPS += "isar"
  218. GROUP_isar[flags] = "system"
  219. USERS += "isar"
  220. USER_isar[gid] = "isar"
  221. USER_isar[home] = "/var/lib/isar"
  222. USER_isar[comment] = "My isar user"
  223. USER_isar[flags] = "system create-home"
  224. USER_isar[password] = "isar"
  225. USER_isar[flags] += "clear-text-password"
  226. # Use buildstats by default
  227. #USE_BUILDSTATS = "1"
  228. # Uncomment the below line to debug WIC.
  229. # WIC_CREATE_EXTRA_ARGS += "-D"
  230. # Uncomment this to use ccache for custom packages
  231. #USE_CCACHE = "1"
  232. # Uncomment and set own top level ccache directory to share between builds
  233. #CCACHE_TOP_DIR ?= "${TMPDIR}/ccache"