|
| 1 | +# Supported machines |
| 2 | +#MACHINE ?= "raspberrypi" |
| 3 | +#MACHINE ?= "raspberrypi2" |
| 4 | +#MACHINE ?= "raspberrypi3" |
| 5 | +#MACHINE ?= "raspberrypi3-64" |
| 6 | +#MACHINE ?= "revpi-connect" |
| 7 | +#MACHINE ?= "revpi-connect-s" |
| 8 | +#MACHINE ?= "revpi-connect-4" |
| 9 | +#MACHINE ?= "revpi-core-3" |
| 10 | +#MACHINE ?= "raspberrypi4-64" |
| 11 | +#MACHINE ?= "raspberrypi400-64" |
| 12 | +#MACHINE ?= "raspberrypicm4-ioboard" |
| 13 | +#MACHINE ?= "npe-x500-m3" |
| 14 | +#MACHINE ?= "rt-rpi-300" |
| 15 | +#MACHINE ?= "raspberrypi3-unipi-neuron" |
| 16 | +#MACHINE ?= "raspberrypi4-superhub" |
| 17 | +#MACHINE ?= "raspberrypi4-unipi-neuron" |
| 18 | +#MACHINE ?= "raspberrypi5" |
| 19 | + |
| 20 | +# More info meta-resin/README.md |
| 21 | +#TARGET_REPOSITORY ?= "" |
| 22 | +#TARGET_TAG ?= "" |
| 23 | + |
| 24 | +# RaspberryPi specific variables |
| 25 | +GPU_MEM = "16" |
| 26 | + |
| 27 | +# for the moment, we disable vc4 graphics for all but the 64 bits machines |
| 28 | +DISABLE_VC4GRAPHICS = "1" |
| 29 | +DISABLE_VC4GRAPHICS:remove:raspberrypi3-64 = "1" |
| 30 | +DISABLE_VC4GRAPHICS:remove:raspberrypi4-64 = "1" |
| 31 | +DISABLE_VC4GRAPHICS:remove:raspberrypi5 = "1" |
| 32 | +DISABLE_VC4GRAPHICS:remove:raspberrypi0-2w-64 = "1" |
| 33 | +DISABLE_VC4GRAPHICS:remove:revpi-connect-s = "1" |
| 34 | + |
| 35 | +# RPI BSP uses uncompressed kernel images by default |
| 36 | +KERNEL_IMAGETYPE="zImage" |
| 37 | +KERNEL_BOOTCMD="bootz" |
| 38 | + |
| 39 | +# When u-boot is enabled we need to use the "Image" format and the "booti" |
| 40 | +# command to load the kernel for 64 bits machines |
| 41 | +KERNEL_IMAGETYPE:raspberrypi3-64="Image.gz" |
| 42 | +KERNEL_BOOTCMD:raspberrypi3-64 = "booti" |
| 43 | +KERNEL_IMAGETYPE:raspberrypi4-64="Image.gz" |
| 44 | +KERNEL_BOOTCMD:raspberrypi4-64 = "booti" |
| 45 | +KERNEL_IMAGETYPE:raspberrypi5="Image.gz" |
| 46 | +KERNEL_BOOTCMD:raspberrypi5 = "booti" |
| 47 | +KERNEL_IMAGETYPE:raspberrypi0-2w-64 = "Image.gz" |
| 48 | +KERNEL_BOOTCMD:raspberrypi0-2w-64 = "booti" |
| 49 | + |
| 50 | +# RPI Use u-boot. This needs to be 1 as we use u-boot |
| 51 | +RPI_USE_U_BOOT = "1" |
| 52 | + |
| 53 | +# Set this to 1 to disable quiet boot and allow bootloader shell access |
| 54 | +#OS_DEVELOPMENT = "1" |
| 55 | + |
| 56 | +# Set this to make build system generate resinhup bundles |
| 57 | +#RESINHUP ?= "yes" |
| 58 | + |
| 59 | +# Set this to change the supervisor tag used |
| 60 | +#SUPERVISOR_TAG ?= "master" |
| 61 | + |
| 62 | +# Compress final raw image |
| 63 | +#BALENA_RAW_IMG_COMPRESSION ?= "xz" |
| 64 | + |
| 65 | +# Parallelism Options |
| 66 | +BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}" |
| 67 | +PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}" |
| 68 | + |
| 69 | +# Resin specific distros |
| 70 | +DISTRO ?= "resin-systemd" |
| 71 | + |
| 72 | +# Custom downloads directory |
| 73 | +#DL_DIR ?= "${TOPDIR}/downloads" |
| 74 | + |
| 75 | +# Custom sstate directory |
| 76 | +#SSTATE_DIR ?= "${TOPDIR}/sstate-cache" |
| 77 | + |
| 78 | +# Inheriting this class has shown to speed up builds due to significantly lower |
| 79 | +# amounts of data stored in the data cache as well as on disk. |
| 80 | +# http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#ref-classes-rm-work |
| 81 | +#INHERIT += "rm_work" |
| 82 | + |
| 83 | +# Remove the old image before the new one is generated to save disk space when RM_OLD_IMAGE is set to 1, this is an easy way to keep the DEPLOY_DIR_IMAGE clean. |
| 84 | +RM_OLD_IMAGE = "1" |
| 85 | + |
| 86 | +# Additional image features |
| 87 | +USER_CLASSES ?= "buildstats" |
| 88 | + |
| 89 | +# By default disable interactive patch resolution (tasks will just fail instead): |
| 90 | +PATCHRESOLVE = "noop" |
| 91 | + |
| 92 | +# Disk Space Monitoring during the build |
| 93 | +BB_DISKMON_DIRS = "\ |
| 94 | + STOPTASKS,${TMPDIR},1G,100K \ |
| 95 | + STOPTASKS,${DL_DIR},1G,100K \ |
| 96 | + STOPTASKS,${SSTATE_DIR},1G,100K \ |
| 97 | + HALT,${TMPDIR},100M,1K \ |
| 98 | + HALT,${DL_DIR},100M,1K \ |
| 99 | + HALT,${SSTATE_DIR},100M,1K" |
| 100 | + |
| 101 | +CONF_VERSION = "2" |
| 102 | + |
| 103 | +HOSTTOOLS += "docker iptables" |
| 104 | + |
| 105 | +LICENSE_FLAGS_ACCEPTED = "synaptics-killswitch" |
| 106 | + |
| 107 | +# CycloneDX SBOM and VEX generation |
| 108 | +INHERIT += "cyclonedx-export" |
0 commit comments