Advertisement
pally99

local.conf

Jun 17th, 2021
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.61 KB | None | 0 0
  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. #
  15. # Machine Selection
  16. #
  17. # You need to select a specific machine to target the build with. These are the
  18. # machines which target the Toradex Apalis, Colibri and Verdin computer on
  19. # module families:
  20. #
  21. #MACHINE ?= "apalis-imx6"
  22. MACHINE ?= "apalis-imx8"
  23. #MACHINE ?= "apalis-imx8x"
  24. #MACHINE ?= "apalis-tk1"
  25. #
  26. #MACHINE ?= "colibri-imx6"
  27. #MACHINE ?= "colibri-imx6ull"
  28. #MACHINE ?= "colibri-imx7"
  29. #MACHINE ?= "colibri-imx7-emmc"
  30. #MACHINE ?= "colibri-imx8x"
  31. #
  32. #MACHINE ?= "verdin-imx8mm"
  33. #
  34. # There are also a selection of emulated machines available which can boot and run
  35. # in the QEMU emulator:
  36. #
  37. #MACHINE ?= "qemuarm"
  38. #MACHINE ?= "qemumips"
  39. #MACHINE ?= "qemuppc"
  40. #MACHINE ?= "qemux86"
  41. #MACHINE ?= "qemux86-64"
  42.  
  43. #
  44. # Where to place downloads
  45. #
  46. # During a first build the system will download many different source code tarballs
  47. # from various upstream projects. This can take a while, particularly if your network
  48. # connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you
  49. # can preserve this directory to speed up this part of subsequent builds. This directory
  50. # is safe to share between multiple builds on the same machine too.
  51. #
  52. # The default is a downloads directory under TOPDIR which is the build directory.
  53. #
  54. DL_DIR ?= "${HOME}/yocto-imx8-downloads"
  55.  
  56. #
  57. # Where to place shared-state files
  58. #
  59. # BitBake has the capability to accelerate builds based on previously built output.
  60. # This is done using "shared state" files which can be thought of as cache objects
  61. # and this option determines where those files are placed.
  62. #
  63. # You can wipe out TMPDIR leaving this directory intact and the build would regenerate
  64. # from these files if no changes were made to the configuration. If changes were made
  65. # to the configuration, only shared state files where the state was still valid would
  66. # be used (done using checksums).
  67. #
  68. # The default is a sstate-cache directory under TOPDIR.
  69. #
  70. SSTATE_DIR ?= "${HOME}/yocto-imx8-sstate-cache"
  71.  
  72. #
  73. # Where to place the build output
  74. #
  75. # This option specifies where the bulk of the building work should be done and
  76. # where BitBake should place its temporary files and output. Keep in mind that
  77. # this includes the extraction and compilation of many applications and the toolchain
  78. # which can use Gigabytes of hard disk space.
  79. #
  80. # The default is a tmp directory under TOPDIR.
  81. #
  82. #TMPDIR = "${TOPDIR}/tmp"
  83.  
  84. #
  85. # Where to place images and sw packages
  86. #
  87. # This places the build output in parallel to build and layers thus
  88. # if you have several build directories you need to adjust deploy
  89. # to something unique, e.g. "${TOPDIR}/../deploy_fb" "${TOPDIR}/../deploy_x11"
  90. DEPLOY_DIR = "${TOPDIR}/deploy"
  91.  
  92. #
  93. # Package Management configuration
  94. #
  95. # This variable lists which packaging formats to enable. Multiple package backends
  96. # can be enabled at once and the first item listed in the variable will be used
  97. # to generate the root filesystems.
  98. # Options are:
  99. # - 'package_deb' for debian style deb files
  100. # - 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager)
  101. # - 'package_rpm' for rpm style packages
  102. # E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
  103. # We default to ipk:
  104. PACKAGE_CLASSES ?= "package_ipk"
  105.  
  106. #
  107. # SDK target architecture
  108. #
  109. # This variable specifies the architecture to build SDK items for and means
  110. # you can build the SDK packages for architectures other than the machine you are
  111. # running the build on (i.e. building i686 packages on an x86_64 host).
  112. # Supported values are i686 and x86_64
  113. #SDKMACHINE ?= "i686"
  114.  
  115. #
  116. # Extra image configuration defaults
  117. #
  118. # The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated
  119. # images. Some of these options are added to certain image types automatically. The
  120. # variable can contain the following options:
  121. # "dbg-pkgs" - add -dbg packages for all installed packages
  122. # (adds symbol information for debugging/profiling)
  123. # "src-pkgs" - add -src packages for all installed packages
  124. # (adds source code for debugging)
  125. # "dev-pkgs" - add -dev packages for all installed packages
  126. # (useful if you want to develop against libs in the image)
  127. # "ptest-pkgs" - add -ptest packages for all ptest-enabled packages
  128. # (useful if you want to run the package test suites)
  129. # "tools-sdk" - add development tools (gcc, make, pkgconfig etc.)
  130. # "tools-debug" - add debugging tools (gdb, strace)
  131. # "eclipse-debug" - add Eclipse remote debugging support
  132. # "tools-profile" - add profiling tools (oprofile, lttng, valgrind)
  133. # "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)
  134. # "debug-tweaks" - make an image suitable for development
  135. # e.g. ssh root access has a blank password
  136. # There are other application targets that can be used here too, see
  137. # meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details.
  138. # We default to enabling the debugging tweaks.
  139. # package-management deploys the package meta data of deployed packeges
  140. EXTRA_IMAGE_FEATURES ?= "debug-tweaks package-management"
  141.  
  142. #
  143. # Additional image features
  144. #
  145. # The following is a list of additional classes to use when building images which
  146. # enable extra features. Some available options which can be included in this variable
  147. # are:
  148. # - 'buildstats' collect build statistics
  149. # - 'image-mklibs' to reduce shared library files size for an image
  150. # - 'image-prelink' in order to prelink the filesystem image
  151. # NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink
  152. # NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended
  153. USER_CLASSES ?= "buildstats image-mklibs image-prelink"
  154.  
  155. #
  156. # Runtime testing of images
  157. #
  158. # The build system can test booting virtual machine images under qemu (an emulator)
  159. # after any root filesystems are created and run tests against those images. It can also
  160. # run tests against any SDK that are built. To enable this uncomment these lines.
  161. # See classes/test{image,sdk}.bbclass for further details.
  162. #IMAGE_CLASSES += "testimage testsdk"
  163. #TESTIMAGE_AUTO_qemuall = "1"
  164.  
  165. #
  166. # Interactive shell configuration
  167. #
  168. # Under certain circumstances the system may need input from you and to do this it
  169. # can launch an interactive shell. It needs to do this since the build is
  170. # multithreaded and needs to be able to handle the case where more than one parallel
  171. # process may require the user's attention. The default is iterate over the available
  172. # terminal types to find one that works.
  173. #
  174. # Examples of the occasions this may happen are when resolving patches which cannot
  175. # be applied, to use the devshell or the kernel menuconfig
  176. #
  177. # Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none
  178. # Note: currently, Konsole support only works for KDE 3.x due to the way
  179. # newer Konsole versions behave
  180. #OE_TERMINAL = "auto"
  181. # By default disable interactive patch resolution (tasks will just fail instead):
  182. PATCHRESOLVE = "noop"
  183.  
  184. #
  185. # Disk Space Monitoring during the build
  186. #
  187. # Monitor the disk space during the build. If there is less that 1GB of space or less
  188. # than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
  189. # shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort
  190. # of the build. The reason for this is that running completely out of space can corrupt
  191. # files and damages the build in ways which may not be easily recoverable.
  192. # It's necesary to monitor /tmp, if there is no space left the build will fail
  193. # with very exotic errors.
  194. BB_DISKMON_DIRS ??= "\
  195. STOPTASKS,${TMPDIR},1G,100K \
  196. STOPTASKS,${DL_DIR},1G,100K \
  197. STOPTASKS,${SSTATE_DIR},1G,100K \
  198. STOPTASKS,/tmp,100M,100K \
  199. ABORT,${TMPDIR},100M,1K \
  200. ABORT,${DL_DIR},100M,1K \
  201. ABORT,${SSTATE_DIR},100M,1K \
  202. ABORT,/tmp,10M,1K"
  203.  
  204. #
  205. # Shared-state files from other locations
  206. #
  207. # As mentioned above, shared state files are prebuilt cache data objects which can
  208. # used to accelerate build time. This variable can be used to configure the system
  209. # to search other mirror locations for these objects before it builds the data itself.
  210. #
  211. # This can be a filesystem directory, or a remote url such as http or ftp. These
  212. # would contain the sstate-cache results from previous builds (possibly from other
  213. # machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the
  214. # cache locations to check for the shared objects.
  215. # NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to add PATH
  216. # at the end as shown in the examples below. This will be substituted with the
  217. # correct path within the directory structure.
  218. #SSTATE_MIRRORS ?= "\
  219. #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
  220. #file://.* file:///some/local/dir/sstate/PATH"
  221.  
  222.  
  223. #
  224. # Qemu configuration
  225. #
  226. # By default qemu will build with a builtin VNC server where graphical output can be
  227. # seen. The two lines below enable the SDL backend too. By default libsdl2-native will
  228. # be built, if you want to use your host's libSDL instead of the minimal libsdl built
  229. # by libsdl2-native then uncomment the ASSUME_PROVIDED line below.
  230. PACKAGECONFIG_append_pn-qemu-system-native = " sdl"
  231. PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
  232. #ASSUME_PROVIDED += "libsdl2-native"
  233.  
  234. #
  235. # Hash Equivalence
  236. #
  237. # Enable support for automatically running a local hash equivalence server and
  238. # instruct bitbake to use a hash equivalence aware signature generator. Hash
  239. # equivalence improves reuse of sstate by detecting when a given sstate
  240. # artifact can be reused as equivalent, even if the current task hash doesn't
  241. # match the one that generated the artifact.
  242. #
  243. # A shared hash equivalent server can be set with "<HOSTNAME>:<PORT>" format
  244. #
  245. #BB_HASHSERVE = "auto"
  246. #BB_SIGNATURE_HANDLER = "OEEquivHash"
  247.  
  248.  
  249. # Toradex fitImage support (For EMMC modules)
  250. #
  251. # To enable fitimage, uncomment the following two lines
  252. #
  253. # KERNEL_CLASSES_append = " toradex-fitimage"
  254. # KERNEL_IMAGETYPE_forcevariable = "${@'zImage' if d.getVar('TORADEX_FLASH_TYPE') == 'rawnand' else 'fitImage'}"
  255.  
  256.  
  257. # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
  258. # track the version of this file when it was generated. This can safely be ignored if
  259. # this doesn't mean anything to you.
  260. CONF_VERSION = "1"
  261.  
  262. # Delete the the source/object/binary files once a package is built to preserve disk space
  263. INHERIT += "rm_work"
  264.  
  265. # Add Toradex source mirror
  266. INHERIT += "toradex-mirrors"
  267.  
  268. # Use this distro
  269. DISTRO = "manus-xwayland"
  270.  
  271. ACCEPT_FSL_EULA = "1"
  272.  
  273. # Don't generate the mirror tarball for SCM repos, the snapshot is enough
  274. # BB_GENERATE_MIRROR_TARBALLS = "0"
  275.  
  276. # This file does not need to exist, if it does it can be used to influence machine specific
  277. # configurations without copying the machine file.
  278. include conf/machine/include/${MACHINE}.inc
  279.  
  280. # Appended fragment from meta-mender-community/templates
  281.  
  282. # This really saves a lot of disk space!
  283. INHERIT += "rm_work"
  284.  
  285. # The name of the disk image and Artifact that will be built.
  286. # This is what the device will report that it is running, and different updates
  287. # must have different names because Mender will skip installation of an Artifact
  288. # if it is already installed.
  289. MENDER_ARTIFACT_NAME = "linux-apalis-imx8-release-0.0.6"
  290.  
  291. INHERIT += "mender-full"
  292.  
  293. DISTRO_FEATURES_append = " systemd"
  294. VIRTUAL-RUNTIME_init_manager = "systemd"
  295. DISTRO_FEATURES_BACKFILL_CONSIDERED = "sysvinit"
  296. VIRTUAL-RUNTIME_initscripts = ""
  297.  
  298. # Build for Hosted Mender
  299. #
  300. # To get your tenant token:
  301. # - log in to https://hosted.mender.io
  302. # - click your email at the top right and then "My organization"
  303. # - press the "COPY TO CLIPBOARD"
  304. # - assign content of clipboard to MENDER_TENANT_TOKEN
  305. #
  306. MENDER_SERVER_URL = "https://hosted.mender.io"
  307. MENDER_TENANT_TOKEN = "<deleted for pastebin>"
  308. MENDER_UPDATE_POLL_INTERVAL_SECONDS = "300"
  309.  
  310. # Build for Mender demo server
  311. #
  312. # https://docs.mender.io/getting-started/create-a-test-environment
  313. #
  314. # Uncomment below and update IP address to match the machine running the
  315. # Mender demo server
  316. #MENDER_DEMO_HOST_IP_ADDRESS = "192.168.0.100"
  317.  
  318. # Build for Mender production setup (on-prem)
  319. #
  320. # https://docs.mender.io/artifacts/building-for-production
  321. #
  322. # Uncomment below and update the URL to match your configured domain
  323. # name and provide the path to the generated server.crt file.
  324. #
  325. # NOTE! It is recommend that you provide below information in your custom
  326. # Yocto layer and this is only for demo purposes. See linked documentation
  327. # for additional information.
  328. #MENDER_SERVER_URL = "https://docker.mender.io"
  329. #FILESEXTRAPATHS_prepend_pn-mender := "<DIRECTORY-CONTAINING-server.crt>:"
  330. #SRC_URI_append_pn-mender = " file://server.crt"
  331.  
  332. # Mender storage configuration
  333. #
  334. # More details on these variables is available at
  335. # https://docs.mender.io/devices/yocto-project/partition-configuration#configuring-storage
  336. #
  337. # Also, please be sure to check other config files as other
  338. # layers, config fragments, etc may attempt to set values
  339. # for specific platforms. Using "bitbake -e <image-name>"
  340. # can help determine which files are setting these values
  341. # in a given configuration.
  342. #
  343. # MENDER_STORAGE_TOTAL_SIZE_MB = "2048"
  344. # MENDER_BOOT_PART_SIZE_MB = "16"
  345. # MENDER_DATA_PART_SIZE_MB = "1024"
  346. # MENDER_STORAGE_DEVICE = "/dev/mmcblk0"
  347. # MENDER_BOOT_PART = "${MENDER_STORAGE_DEVICE_BASE}1"
  348. # MENDER_DATA_PART = "${MENDER_STORAGE_DEVICE_BASE}4"
  349. # MENDER_ROOTFS_PART_A = "${MENDER_STORAGE_DEVICE_BASE}2"
  350. # MENDER_ROOTFS_PART_B = "${MENDER_STORAGE_DEVICE_BASE}3"
  351.  
  352. # Appended fragment from meta-mender-community/meta-mender-toradex-nxp/templates
  353.  
  354. #MACHINE = "verdin-imx8mm"
  355.  
  356. # Comment/remove below to enable GRUB integration instead of U-Boot
  357. MENDER_FEATURES_ENABLE_append = " mender-uboot mender-image "
  358. MENDER_FEATURES_DISABLE_append = " mender-grub mender-image-uefi"
  359.  
  360. #IMAGE_CLASSES += "image_type_mender_tezi"
  361. #IMAGE_FSTYPES_append = " mender_tezi"
  362. #IMAGE_FSTYPES_remove = " mtdimg teziimg"
  363.  
  364. # Default is Image.gz, which is not compatible with GRUB
  365. KERNEL_IMAGETYPE_aarch64_mender-grub = "Image"
  366.  
  367. # Nothing in boot part, just GRUB. Kernel and DTB is in /boot directory of
  368. # rootfs image
  369. IMAGE_BOOT_FILES = ""
  370.  
  371. # boot.scr conflicts when using GRUB, it is added using _append which is why
  372. # it is not covered by previous statement.
  373. # My own note: what to do with these 2 verdin defines on the apalis imx8 platform?
  374. IMAGE_BOOT_FILES_remove_mender-grub = "boot.scr-verdin-imx8mm;boot.scr"
  375.  
  376. # No SPL, otherwise this gets included in tezi image
  377. OFFSET_SPL_PAYLOAD_verdin-imx8mm = ""
  378.  
  379. # The meta-toradex-nxp layer conf for Apalis IMX8 sets OFFSET_BOOTROM_PAYLOAD to 0, and this must match
  380. MENDER_IMAGE_BOOTLOADER_BOOTSECTOR_OFFSET = "0"
  381.  
  382. MENDER_UBOOT_STORAGE_INTERFACE = "mmc"
  383. MENDER_UBOOT_STORAGE_DEVICE = "0"
  384. MENDER_STORAGE_TOTAL_SIZE_MB = "15000"
  385. MENDER_DATA_PART_SIZE_MB = "12288"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement