local.conf.sample 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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 ??= "qemuarm"
  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 ??= "debian-bullseye"
  29. DISTRO_ARCH ??= "armhf"
  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. "
  86. #
  87. # Where to place downloads
  88. #
  89. # During a first build the system will download many different source code tarballs
  90. # from various upstream projects. This can take a while, particularly if your network
  91. # connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you
  92. # can preserve this directory to speed up this part of subsequent builds. This directory
  93. # is safe to share between multiple builds on the same machine too.
  94. #
  95. # The default is a downloads directory under TOPDIR which is the build directory.
  96. #
  97. #DL_DIR ?= "${TOPDIR}/downloads"
  98. #
  99. # Where to place shared-state files
  100. #
  101. # BitBake has the capability to accelerate builds based on previously built output.
  102. # This is done using "shared state" files which can be thought of as cache objects
  103. # and this option determines where those files are placed.
  104. #
  105. # You can wipe out TMPDIR leaving this directory intact and the build would regenerate
  106. # from these files if no changes were made to the configuration. If changes were made
  107. # to the configuration, only shared state files where the state was still valid would
  108. # be used (done using checksums).
  109. #
  110. # The default is a sstate-cache directory under TOPDIR.
  111. #
  112. #SSTATE_DIR ?= "${TOPDIR}/sstate-cache"
  113. #
  114. # Where to place the build output
  115. #
  116. # This option specifies where the bulk of the building work should be done and
  117. # where BitBake should place its temporary files and output. Keep in mind that
  118. # this includes the extraction and compilation of many applications and the toolchain
  119. # which can use Gigabytes of hard disk space.
  120. #
  121. # The default is a tmp directory under TOPDIR.
  122. #
  123. #TMPDIR = "${TOPDIR}/tmp"
  124. #
  125. # Interactive shell configuration
  126. #
  127. # Under certain circumstances the system may need input from you and to do this it
  128. # can launch an interactive shell. It needs to do this since the build is
  129. # multithreaded and needs to be able to handle the case where more than one parallel
  130. # process may require the user's attention. The default is iterate over the available
  131. # terminal types to find one that works.
  132. #
  133. # Examples of the occasions this may happen are when resolving patches which cannot
  134. # be applied, to use the devshell or the kernel menuconfig
  135. #
  136. # Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none
  137. # Note: currently, Konsole support only works for KDE 3.x due to the way
  138. # newer Konsole versions behave
  139. #OE_TERMINAL = "auto"
  140. # By default disable interactive patch resolution (tasks will just fail instead):
  141. PATCHRESOLVE = "noop"
  142. #
  143. # Disk Space Monitoring during the build
  144. #
  145. # Monitor the disk space during the build. If there is less that 1GB of space or less
  146. # than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
  147. # shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort
  148. # of the build. The reason for this is that running completely out of space can corrupt
  149. # files and damages the build in ways which may not be easily recoverable.
  150. # It's necesary to monitor /tmp, if there is no space left the build will fail
  151. # with very exotic errors.
  152. BB_DISKMON_DIRS = "\
  153. STOPTASKS,${TMPDIR},1G,100K \
  154. STOPTASKS,${DL_DIR},1G,100K \
  155. STOPTASKS,${SSTATE_DIR},1G,100K \
  156. STOPTASKS,/tmp,100M,100K \
  157. ABORT,${TMPDIR},100M,1K \
  158. ABORT,${DL_DIR},100M,1K \
  159. ABORT,${SSTATE_DIR},100M,1K \
  160. ABORT,/tmp,10M,1K"
  161. # Isar MIRRORS in case of service unavailable
  162. MIRRORS ?= "git?://salsa\.debian\.org/debian/.* git://github.com/ilbers/BASENAME"
  163. # External MIRRORS in case of service unavailable
  164. MIRRORS += "https?://cdn\.kernel\.org/.* https://mirrors.edge.kernel.org/PATH"
  165. #
  166. # Shared-state files from other locations
  167. #
  168. # As mentioned above, shared state files are prebuilt cache data objects which can
  169. # used to accelerate build time. This variable can be used to configure the system
  170. # to search other mirror locations for these objects before it builds the data itself.
  171. #
  172. # This can be a filesystem directory, or a remote url such as http or ftp. These
  173. # would contain the sstate-cache results from previous builds (possibly from other
  174. # machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the
  175. # cache locations to check for the shared objects.
  176. # NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to add PATH
  177. # at the end as shown in the examples below. This will be substituted with the
  178. # correct path within the directory structure.
  179. #SSTATE_MIRRORS ?= "\
  180. #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
  181. #file://.* file:///some/local/dir/sstate/PATH"
  182. # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
  183. # track the version of this file when it was generated. This can safely be ignored if
  184. # this doesn't mean anything to you.
  185. CONF_VERSION = "1"
  186. #
  187. # The default list of extra packages to be installed.
  188. IMAGE_INSTALL = "hello-isar example-raw example-module-${KERNEL_NAME} enable-fsck isar-exclude-docs samefile hello isar-disable-apt-cache cowsay example-prebuilt"
  189. #
  190. # Enable cross-compilation support
  191. ISAR_CROSS_COMPILE ?= "0"
  192. #
  193. # Uncomment to enable 32-bit compat architecture support
  194. # NOTE: this works for amd64 and arm64 targets so far
  195. #ISAR_ENABLE_COMPAT_ARCH ?= "1"
  196. # Uncomment this to enable caching of all source packages.
  197. # Without this feature, only sources of packages downloaded with apt:// are downloaded.
  198. #BASE_REPO_FEATURES ?= "cache-deb-src"
  199. #
  200. # Uncomment this to enable use of cached base repository
  201. #ISAR_USE_CACHED_BASE_REPO ?= "1"
  202. #
  203. # You probably want to uncomment this as well to make sure the build
  204. # does not access the network
  205. #BB_NO_NETWORK ?= "1"
  206. # Set root password to 'root'
  207. # Password was encrypted using following command:
  208. # mkpasswd -m sha512crypt -R 10000
  209. # mkpasswd is part of the 'whois' package of Debian
  210. USERS += "root"
  211. USER_root[password] ??= "$6$rounds=10000$RXeWrnFmkY$DtuS/OmsAS2cCEDo0BF5qQsizIrq6jPgXnwv3PHqREJeKd1sXdHX/ayQtuQWVDHe0KIO0/sVH8dvQm1KthF0d/"
  212. GROUPS += "isar"
  213. GROUP_isar[flags] = "system"
  214. USERS += "isar"
  215. USER_isar[gid] = "isar"
  216. USER_isar[home] = "/var/lib/isar"
  217. USER_isar[comment] = "My isar user"
  218. USER_isar[flags] = "system create-home"
  219. USER_isar[password] = "isar"
  220. USER_isar[flags] += "clear-text-password"
  221. # Use buildstats by default
  222. #USE_BUILDSTATS = "1"
  223. # Uncomment the below line to debug WIC.
  224. # WIC_CREATE_EXTRA_ARGS += "-D"
  225. # Uncomment this to use ccache for custom packages
  226. #USE_CCACHE = "1"
  227. # Uncomment and set own top level ccache directory to share between builds
  228. #CCACHE_TOP_DIR ?= "${TMPDIR}/ccache"