Patrick Williams | 17a0c0b | 2021-05-26 13:50:54 -0500 | [diff] [blame] | 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. |
| 6 | # |
| 7 | # Lines starting with the '#' character are commented out and in some cases the |
| 8 | # default values are provided as comments to show people example syntax. Enabling |
| 9 | # the option is a question of removing the # character and making any change to the |
| 10 | # variable as required. |
| 11 | |
| 12 | # |
| 13 | # Machine Selection |
| 14 | # |
| 15 | MACHINE ??= "bletchley" |
| 16 | |
| 17 | # |
| 18 | # Where to place downloads |
| 19 | # |
| 20 | # During a first build the system will download many different source code tarballs |
| 21 | # from various upstream projects. This can take a while, particularly if your network |
| 22 | # connection is slow. These are all stored in DL_DIR. When wiping and rebuilding you |
| 23 | # can preserve this directory to speed up this part of subsequent builds. This directory |
| 24 | # is safe to share between multiple builds on the same machine too. |
| 25 | # |
| 26 | # The default is a downloads directory under TOPDIR which is the build directory. |
| 27 | # |
| 28 | #DL_DIR ?= "${TOPDIR}/downloads" |
| 29 | |
| 30 | # |
| 31 | # Where to place shared-state files |
| 32 | # |
| 33 | # BitBake has the capability to accelerate builds based on previously built output. |
| 34 | # This is done using "shared state" files which can be thought of as cache objects |
| 35 | # and this option determines where those files are placed. |
| 36 | # |
| 37 | # You can wipe out TMPDIR leaving this directory intact and the build would regenerate |
| 38 | # from these files if no changes were made to the configuration. If changes were made |
| 39 | # to the configuration, only shared state files where the state was still valid would |
| 40 | # be used (done using checksums). |
| 41 | # |
| 42 | # The default is a sstate-cache directory under TOPDIR. |
| 43 | # |
| 44 | #SSTATE_DIR ?= "${TOPDIR}/sstate-cache" |
| 45 | |
| 46 | # |
| 47 | # Where to place the build output |
| 48 | # |
| 49 | # This option specifies where the bulk of the building work should be done and |
| 50 | # where BitBake should place its temporary files and output. Keep in mind that |
| 51 | # this includes the extraction and compilation of many applications and the toolchain |
| 52 | # which can use Gigabytes of hard disk space. |
| 53 | # |
| 54 | # The default is a tmp directory under TOPDIR. |
| 55 | # |
| 56 | #TMPDIR = "${TOPDIR}/tmp" |
| 57 | |
| 58 | # |
| 59 | # Default policy config |
| 60 | # |
| 61 | # The distribution setting controls which policy settings are used as defaults. |
| 62 | # The default value is fine for general Yocto project use, at least initially. |
| 63 | # Ultimately when creating custom policy, people will likely end up subclassing |
| 64 | # these defaults. |
| 65 | # |
| 66 | DISTRO ?= "openbmc-phosphor" |
| 67 | # As an example of a subclass there is a "bleeding" edge policy configuration |
| 68 | # where many versions are set to the absolute latest code from the upstream |
| 69 | # source control systems. This is just mentioned here as an example, its not |
| 70 | # useful to most new users. |
| 71 | # DISTRO ?= "poky-bleeding" |
| 72 | |
| 73 | # |
| 74 | # Package Management configuration |
| 75 | # |
| 76 | # This variable lists which packaging formats to enable. Multiple package backends |
| 77 | # can be enabled at once and the first item listed in the variable will be used |
| 78 | # to generate the root filesystems. |
| 79 | # Options are: |
| 80 | # - 'package_deb' for debian style deb files |
| 81 | # - 'package_ipk' for ipk files are used by opkg (a debian style embedded package manager) |
| 82 | # - 'package_rpm' for rpm style packages |
| 83 | # E.g.: PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk" |
| 84 | # We default to rpm: |
| 85 | PACKAGE_CLASSES ?= "package_rpm" |
| 86 | |
| 87 | # |
| 88 | # SDK/ADT target architecture |
| 89 | # |
| 90 | # This variable specifies the architecture to build SDK/ADT items for and means |
| 91 | # you can build the SDK packages for architectures other than the machine you are |
| 92 | # running the build on (i.e. building i686 packages on an x86_64 host). |
| 93 | # Supported values are i686 and x86_64 |
| 94 | #SDKMACHINE ?= "i686" |
| 95 | |
Patrick Williams | 6f74664 | 2021-08-06 07:40:55 -0500 | [diff] [blame^] | 96 | SANITY_TESTED_DISTROS:append ?= " *" |
Patrick Williams | 17a0c0b | 2021-05-26 13:50:54 -0500 | [diff] [blame] | 97 | |
| 98 | # |
| 99 | # Extra image configuration defaults |
| 100 | # |
| 101 | # The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated |
| 102 | # images. Some of these options are added to certain image types automatically. The |
| 103 | # variable can contain the following options: |
| 104 | # "dbg-pkgs" - add -dbg packages for all installed packages |
| 105 | # (adds symbol information for debugging/profiling) |
| 106 | # "dev-pkgs" - add -dev packages for all installed packages |
| 107 | # (useful if you want to develop against libs in the image) |
| 108 | # "ptest-pkgs" - add -ptest packages for all ptest-enabled packages |
| 109 | # (useful if you want to run the package test suites) |
| 110 | # "tools-sdk" - add development tools (gcc, make, pkgconfig etc.) |
| 111 | # "tools-debug" - add debugging tools (gdb, strace) |
| 112 | # "eclipse-debug" - add Eclipse remote debugging support |
| 113 | # "tools-profile" - add profiling tools (oprofile, exmap, lttng, valgrind) |
| 114 | # "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.) |
| 115 | # "debug-tweaks" - make an image suitable for development |
| 116 | # e.g. ssh root access has a blank password |
| 117 | # There are other application targets that can be used here too, see |
| 118 | # meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details. |
| 119 | # We default to enabling the debugging tweaks. |
| 120 | EXTRA_IMAGE_FEATURES = "debug-tweaks" |
| 121 | |
| 122 | # |
| 123 | # Additional image features |
| 124 | # |
| 125 | # The following is a list of additional classes to use when building images which |
| 126 | # enable extra features. Some available options which can be included in this variable |
| 127 | # are: |
| 128 | # - 'buildstats' collect build statistics |
Patrick Williams | 17a0c0b | 2021-05-26 13:50:54 -0500 | [diff] [blame] | 129 | # - 'image-prelink' in order to prelink the filesystem image |
| 130 | # - 'image-swab' to perform host system intrusion detection |
Patrick Williams | fb7432a | 2021-07-11 21:34:05 -0500 | [diff] [blame] | 131 | USER_CLASSES ?= "buildstats image-prelink" |
Patrick Williams | 17a0c0b | 2021-05-26 13:50:54 -0500 | [diff] [blame] | 132 | |
| 133 | # |
| 134 | # Runtime testing of images |
| 135 | # |
| 136 | # The build system can test booting virtual machine images under qemu (an emulator) |
| 137 | # after any root filesystems are created and run tests against those images. To |
| 138 | # enable this uncomment this line. See classes/testimage(-auto).bbclass for |
| 139 | # further details. |
| 140 | #TEST_IMAGE = "1" |
| 141 | # |
| 142 | # Interactive shell configuration |
| 143 | # |
| 144 | # Under certain circumstances the system may need input from you and to do this it |
| 145 | # can launch an interactive shell. It needs to do this since the build is |
| 146 | # multithreaded and needs to be able to handle the case where more than one parallel |
| 147 | # process may require the user's attention. The default is iterate over the available |
| 148 | # terminal types to find one that works. |
| 149 | # |
| 150 | # Examples of the occasions this may happen are when resolving patches which cannot |
| 151 | # be applied, to use the devshell or the kernel menuconfig |
| 152 | # |
| 153 | # Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none |
| 154 | # Note: currently, Konsole support only works for KDE 3.x due to the way |
| 155 | # newer Konsole versions behave |
| 156 | #OE_TERMINAL = "auto" |
| 157 | # By default disable interactive patch resolution (tasks will just fail instead): |
| 158 | PATCHRESOLVE = "noop" |
| 159 | |
| 160 | # |
| 161 | # Disk Space Monitoring during the build |
| 162 | # |
| 163 | # Monitor the disk space during the build. If there is less that 1GB of space or less |
| 164 | # than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully |
| 165 | # shutdown the build. If there is less that 100MB or 1K inodes, perform a hard abort |
| 166 | # of the build. The reason for this is that running completely out of space can corrupt |
| 167 | # files and damages the build in ways which may not be easily recoverable. |
| 168 | # It's necessary to monitor /tmp, if there is no space left the build will fail |
| 169 | # with very exotic errors. |
| 170 | BB_DISKMON_DIRS = "\ |
| 171 | STOPTASKS,${TMPDIR},1G,100K \ |
| 172 | STOPTASKS,${DL_DIR},1G,100K \ |
| 173 | STOPTASKS,${SSTATE_DIR},1G,100K \ |
| 174 | STOPTASKS,/tmp,100M,100K \ |
| 175 | ABORT,${TMPDIR},100M,1K \ |
| 176 | ABORT,${DL_DIR},100M,1K \ |
| 177 | ABORT,${SSTATE_DIR},100M,1K \ |
| 178 | ABORT,/tmp,10M,1K" |
| 179 | |
| 180 | # |
| 181 | # Shared-state files from other locations |
| 182 | # |
| 183 | # As mentioned above, shared state files are prebuilt cache data objects which can |
| 184 | # used to accelerate build time. This variable can be used to configure the system |
| 185 | # to search other mirror locations for these objects before it builds the data itself. |
| 186 | # |
| 187 | # This can be a filesystem directory, or a remote url such as http or ftp. These |
| 188 | # would contain the sstate-cache results from previous builds (possibly from other |
| 189 | # machines). This variable works like fetcher MIRRORS/PREMIRRORS and points to the |
| 190 | # cache locations to check for the shared objects. |
| 191 | # NOTE: if the mirror uses the same structure as SSTATE_DIR, you need to add PATH |
| 192 | # at the end as shown in the examples below. This will be substituted with the |
| 193 | # correct path within the directory structure. |
| 194 | #SSTATE_MIRRORS ?= "\ |
| 195 | #file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \ |
| 196 | #file://.* file:///some/local/dir/sstate/PATH" |
| 197 | |
| 198 | |
| 199 | # |
| 200 | # Qemu configuration |
| 201 | # |
| 202 | # By default qemu will build with a builtin VNC server where graphical output can be |
| 203 | # seen. The two lines below enable the SDL backend too. This assumes there is a |
| 204 | # libsdl library available on your build system. |
Patrick Williams | 6f74664 | 2021-08-06 07:40:55 -0500 | [diff] [blame^] | 205 | #PACKAGECONFIG:append:pn-qemu-native = " sdl" |
| 206 | #PACKAGECONFIG:append:pn-nativesdk-qemu = " sdl" |
Patrick Williams | 17a0c0b | 2021-05-26 13:50:54 -0500 | [diff] [blame] | 207 | #ASSUME_PROVIDED += "libsdl-native" |
| 208 | |
| 209 | |
| 210 | # CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to |
| 211 | # track the version of this file when it was generated. This can safely be ignored if |
| 212 | # this doesn't mean anything to you. |
| 213 | CONF_VERSION = "1" |
| 214 | |
| 215 | # Set the root password to '0penBmc' |
| 216 | INHERIT += "extrausers" |
| 217 | |
| 218 | EXTRA_USERS_PARAMS = " \ |
| 219 | usermod -p '\$1\$UGMqyqdG\$FZiylVFmRRfl9Z0Ue8G7e/' root; \ |
| 220 | " |