versioning bitbake build environment files(including local.conf and multiconfig files)
This commit is contained in:
1 parent
91b78a6e0b
commit
9c5c4b96c8
14 files changed
+642
No files matched your search
@@ -0,0 +1,3 @@
|
||||
bblayers.conf
|
||||
site.conf
|
||||
toolcfg.conf
|
||||
Whitespace-only changes.
@@ -0,0 +1 @@
|
||||
PLC-OS - Linux distribution for real-time control
|
||||
+229
@@ -0,0 +1,229 @@
|
||||
|
||||
# This file is your local configuration file and is where all local user settings
|
||||
# are placed. The comments in this file give some guide to the options a new user
|
||||
# to the system might want to change but pretty much any configuration option can
|
||||
# be set in this file. More adventurous users can look at local.conf.extended
|
||||
# which contains other examples of configuration which can be placed in this file
|
||||
# but new users likely won't need any of them initially.
|
||||
#
|
||||
# Lines starting with the '#' character are commented out and in some cases the
|
||||
# default values are provided as comments to show people example syntax. Enabling
|
||||
# the option is a question of removing the # character and making any change to the
|
||||
# variable as required.
|
||||
|
||||
#
|
||||
# Network Control
|
||||
#
|
||||
BB_NO_NETWORK ?= '0'
|
||||
|
||||
# Only allow downloads from PREMIRRORs, not search the main SRC_URI or MIRRORS.
|
||||
# If you have enabled download (dl-layers), use this to restrict fetch to those
|
||||
# layers. This also has a side effect of telling the system to ensure the
|
||||
# fetched repositories from the local download layer (pre)mirrors are
|
||||
# up-to-date.
|
||||
BB_FETCH_PREMIRRORONLY ?= '${@d.getVar('BB_NO_NETWORK') or 0}'
|
||||
|
||||
|
||||
BBMULTICONFIG = "intel-x86 arm-uboot arm-uefi arm-eboot sunxi rpi x86"
|
||||
|
||||
# This sets the default machine if no other machine has been selected:
|
||||
MACHINE ??= "qemux86-64"
|
||||
|
||||
#Use Realtime linux kernel
|
||||
#moved to distro/plcos.conf
|
||||
|
||||
|
||||
PREFERRED_RPROVIDER_virtual/libnss-mdns = "avahi-libnss-mdns"
|
||||
PREFERRED_RPROVIDER_libnss-mdns = "avahi-libnss-mdns"
|
||||
#PREFERRED_RPROVIDER_virtual/libnss-dnss = "avahi-libnss-dnss"
|
||||
|
||||
#
|
||||
# Where to place the build output
|
||||
#
|
||||
# This option specifies where the bulk of the building work should be done and
|
||||
# where BitBake should place its temporary files and output. Keep in mind that
|
||||
# this includes the extraction and compilation of many applications and the toolchain
|
||||
# which can use Gigabytes of hard disk space.
|
||||
#
|
||||
# The default is a tmp directory under TOPDIR.
|
||||
#
|
||||
BB_BUILD_DISK ?= "${TOPDIR}"
|
||||
TMPDIR = "${BB_BUILD_DISK}/tmp"
|
||||
|
||||
#
|
||||
# Default policy config
|
||||
#
|
||||
# The distribution setting controls which policy settings are used as defaults.
|
||||
# The default value is fine for general Yocto project use, at least initially.
|
||||
# Ultimately when creating custom policy, people will likely end up subclassing
|
||||
# these defaults.
|
||||
#
|
||||
# OpenEmbedded
|
||||
#DISTRO ?= "anaconda"
|
||||
# OpenEmbedded
|
||||
#DISTRO ?= "nodistro"
|
||||
# OpenEmbedded
|
||||
#DISTRO ?= "ostree"
|
||||
#
|
||||
DISTRO ?= "plcos"
|
||||
#DISTRO = "poky"
|
||||
|
||||
#
|
||||
# This sets the default distro if no other distro has been selected:
|
||||
|
||||
#
|
||||
# Can enable all 3 at once e.g.:
|
||||
# PACKAGE_CLASSES ?= "package_rpm package_deb package_ipk"
|
||||
# We use rpm:
|
||||
PACKAGE_CLASSES ?= "package_rpm"
|
||||
|
||||
#
|
||||
# Extra image configuration defaults
|
||||
#
|
||||
# The EXTRA_IMAGE_FEATURES variable allows extra packages to be added to the generated
|
||||
# images. Some of these options are added to certain image types automatically. The
|
||||
# variable can contain the following options:
|
||||
# "dbg-pkgs" - add -dbg packages for all installed packages
|
||||
# (adds symbol information for debugging/profiling)
|
||||
# "src-pkgs" - add -src packages for all installed packages
|
||||
# (adds source code for debugging)
|
||||
# "dev-pkgs" - add -dev packages for all installed packages
|
||||
# (useful if you want to develop against libs in the image)
|
||||
# "ptest-pkgs" - add -ptest packages for all ptest-enabled packages
|
||||
# (useful if you want to run the package test suites)
|
||||
# "tools-sdk" - add development tools (gcc, make, pkgconfig etc.)
|
||||
# "tools-debug" - add debugging tools (gdb, strace)
|
||||
# "eclipse-debug" - add Eclipse remote debugging support
|
||||
# "tools-profile" - add profiling tools (oprofile, lttng, valgrind)
|
||||
# "tools-testapps" - add useful testing tools (ts_print, aplay, arecord etc.)
|
||||
# "debug-tweaks" - make an image suitable for development
|
||||
# e.g. ssh root access has a blank password
|
||||
# There are other application targets that can be used here too, see
|
||||
# meta/classes/image.bbclass and meta/classes/core-image.bbclass for more details.
|
||||
# We default to enabling the debugging tweaks.
|
||||
#EXTRA_IMAGE_FEATURES ?= "allow-root-login"
|
||||
|
||||
#
|
||||
# Additional image features
|
||||
#
|
||||
# The following is a list of additional classes to use when building images which
|
||||
# enable extra features. Some available options which can be included in this variable
|
||||
# are:
|
||||
# - 'buildstats' collect build statistics
|
||||
# NOTE: if listing mklibs & prelink both, then make sure mklibs is before prelink
|
||||
# NOTE: mklibs also needs to be explicitly enabled for a given image, see local.conf.extended
|
||||
USER_CLASSES ?= "buildstats"
|
||||
|
||||
#
|
||||
# Additional rootfs image types
|
||||
#
|
||||
# The following is a partial list of additional image filesystem types that
|
||||
# may be supported by the configured machine;
|
||||
# - 'tar.gz' to create a gzip compressed tarball of the image
|
||||
# - 'tar.bz2' to create a bz2 compressed tarball of the image
|
||||
# - 'ext4' to create an ext4 image
|
||||
#
|
||||
# NOTE:
|
||||
# Due to the way the OpenEmbedded build system processes this variable,
|
||||
# you cannot update its contents by using _append or _prepend. You must use
|
||||
# the += operator to add one or more options to the IMAGE_FSTYPES variable.
|
||||
# IMAGE_FSTYPES += " live "
|
||||
|
||||
|
||||
#this is for klipper
|
||||
#DISTRO_FEATURES:append = " polkit"
|
||||
|
||||
#
|
||||
# Interactive shell configuration
|
||||
#
|
||||
# Under certain circumstances the system may need input from you and to do this it
|
||||
# can launch an interactive shell. It needs to do this since the build is
|
||||
# multithreaded and needs to be able to handle the case where more than one parallel
|
||||
# process may require the user's attention. The default is iterate over the available
|
||||
# terminal types to find one that works.
|
||||
#
|
||||
# Examples of the occasions this may happen are when resolving patches which cannot
|
||||
# be applied, to use the devshell or the kernel menuconfig
|
||||
#
|
||||
# Supported values are auto, gnome, xfce, rxvt, screen, konsole (KDE 3.x only), none
|
||||
# Note: currently, Konsole support only works for KDE 3.x due to the way
|
||||
# newer Konsole versions behave
|
||||
#OE_TERMINAL = "auto"
|
||||
|
||||
|
||||
# By default disable interactive patch resolution (tasks will just fail instead):
|
||||
PATCHRESOLVE = "noop"
|
||||
|
||||
#
|
||||
# Disk Space Monitoring during the build
|
||||
#
|
||||
# Monitor the disk space during the build. If there is less that 1GB of space or less
|
||||
# than 100K inodes in any key build location (TMPDIR, DL_DIR, SSTATE_DIR), gracefully
|
||||
# shutdown the build. If there is less than 100MB or 1K inodes, perform a hard abort
|
||||
# of the build. The reason for this is that running completely out of space can corrupt
|
||||
# files and damages the build in ways which may not be easily recoverable.
|
||||
# It's necessary to monitor /tmp, if there is no space left the build will fail
|
||||
# with very exotic errors.
|
||||
BB_DISKMON_DIRS ??= "\
|
||||
STOPTASKS,${TMPDIR},1G,100K \
|
||||
STOPTASKS,${DL_DIR},1G,100K \
|
||||
STOPTASKS,${SSTATE_DIR},1G,100K \
|
||||
STOPTASKS,/tmp,100M,100K \
|
||||
HALT,${TMPDIR},100M,1K \
|
||||
HALT,${DL_DIR},100M,1K \
|
||||
HALT,${SSTATE_DIR},100M,1K \
|
||||
HALT,/tmp,10M,1K"
|
||||
|
||||
# use systemd as the default init manager
|
||||
#INIT_MANAGER = "systemd"
|
||||
|
||||
#
|
||||
# Qemu configuration
|
||||
#
|
||||
# By default qemu will build with a builtin VNC server where graphical output can be
|
||||
# seen. The two lines below enable the SDL backend too. By default libsdl2-native will
|
||||
# be built, if you want to use your host's libSDL instead of the minimal libsdl built
|
||||
# by libsdl2-native then uncomment the ASSUME_PROVIDED line below.
|
||||
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
|
||||
PACKAGECONFIG:append:pn-nativesdk-qemu = " sdl"
|
||||
#ASSUME_PROVIDED += "libsdl2-native"
|
||||
|
||||
# CONF_VERSION is increased each time build/conf/ changes incompatibly and is used to
|
||||
# track the version of this file when it was generated. This can safely be ignored if
|
||||
# this doesn't mean anything to you.
|
||||
CONF_VERSION = "2"
|
||||
|
||||
BASELIB = "lib64"
|
||||
|
||||
# Add WRLinux uninative support
|
||||
#require conf/distro/include/plcos-uninative.inc
|
||||
require conf/distro/include/all-distro-settings.inc
|
||||
|
||||
#PSEUDO_IGNORE_PATHS .= ",##OEROOT##/bin"
|
||||
# Comment the following line to do sanity check for security config
|
||||
SKIP_META_SECURITY_SANITY_CHECK ?= "1"
|
||||
|
||||
INHERIT += "extrausers"
|
||||
|
||||
#following should be set with Tuned for dynamic core calculation
|
||||
#APPEND += " isolcpus=domain,2-3 rcu_nocbs=2-3 nohz_full=2,3 irqaffinity=0-1 kthread_cpus=0-1 clocksource=tsc tsc=reliable
|
||||
|
||||
#these have been questionable
|
||||
#APPEND += " isolcpus=nohz,managed_irq nosoftlockup nohz=on skew_tick=1 nosmt=force nowatchdog idle=poll cpufreq.off=1 cpuidle.off=1"
|
||||
|
||||
BBDEBUG = "no"
|
||||
INHERIT += "rm_work"
|
||||
|
||||
#AUTO_SYSLINUXMENU:arm = "0"
|
||||
|
||||
#Adding below to attempt to achieve parity with working poky build environment, to fix "sleep: command not found" issue
|
||||
#require conf/multilib.conf
|
||||
#INHERIT += "clang"
|
||||
#INHERIT += "multilib_global"
|
||||
#DISTRO_FEATURES:class-native = " acl alsa bluetooth debuginfod ext2 ipv4 ipv6 pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc vfat seccomp largefile multiarch pulseaudio kvm virtualization pam"
|
||||
#DISTRO_FEATURES:class-nativesdk = " acl alsa bluetooth debuginfod ext2 ipv4 ipv6 pcmcia usbgadget usbhost wifi xattr nfs zeroconf pci 3g nfc vfat seccomp largefile multiarch pulseaudio kvm virtualization pam"
|
||||
#This recipe from meta-sunxi fails to parse when building for architectures which do not include a mapping.h file for GPIO interfacing.
|
||||
#Because it fails parsing, it will cause a build to fail even if the recipe is not included in an image.
|
||||
#An alternative fix would be to provide a mapping.h file, and to add the relevant path to the include path for the py20a recipe.
|
||||
BBMASK += "pya20"
|
||||
#SKIP_RECIPE[pya20] = "not relevant"
|
||||
@@ -0,0 +1,7 @@
|
||||
require arm-uboot.conf
|
||||
#This config is designed to run on devices which normally boot straight to Windows Embedded
|
||||
#The trick here is to essentially wrap u-boot into a faked WinCE binary file NK.bin
|
||||
#This results in a somewhat ridiculous chainloading sequence, of Eboot->U-boot->grub-efi->linux but it should unlock some devices for us
|
||||
OVERRIDES:append = ":eboot"
|
||||
IMAGE_INSTALL += "ce-bin"
|
||||
WKS_FILE = "plcos-bootdisk-eboot.wks.in"
|
||||
@@ -0,0 +1,33 @@
|
||||
# Create and deploy the vmlinux artifact which gets included into the FIT image
|
||||
KERNEL_CLASSES += "kernel-fit-extra-artifacts"
|
||||
|
||||
# Do not install the kernel image package
|
||||
#RRECOMMENDS:${KERNEL_PACKAGE_NAME}-base = ""
|
||||
# Install the FIT image package
|
||||
MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "linux-yocto-fitimage"
|
||||
|
||||
# Configure the image.bbclass to depend on the FIT image instead of only
|
||||
# the kernel to ensure the FIT image is built and deployed with the image
|
||||
KERNEL_DEPLOY_DEPEND = "linux-yocto-fitimage:do_deploy"
|
||||
SPL_BINARY = ""
|
||||
WKS_FILES = "${WKS_FILE}"
|
||||
include conf/machine/include/sunxi64.inc
|
||||
MACHINE = "genericarm64"
|
||||
KMACHINE = "genericarm64"
|
||||
#COMPATIBLE_HOST:syslinux = "aarch64-wrs-linux"
|
||||
COMPATIBLE_MACHINE:genericarm64 = "genericarm64"
|
||||
TMPDIR .= "-${BB_CURRENT_MC}"
|
||||
#require linux-arm.inc
|
||||
TARGET_SUPPORTED_KTYPES:append = " preempt-rt"
|
||||
#KBRANCH:genericarm64 = "v6.6/standard/preempt-rt/arm"
|
||||
#KBRANCH = "v6.6/standard/preempt-rt/arm"
|
||||
#IMAGE_FSTYPES += "wic wic.bmap"
|
||||
WKS_FILE ?= "sdimage_bootpart.wks mkefidisk.wks"
|
||||
AUTO_SYSLINUXMENU = "0"
|
||||
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
#KERNEL_IMAGETYPE = "zImage"
|
||||
#KERNEL_BOOTCMD = "bootz"
|
||||
KERNEL_IMAGETYPE = "Image"
|
||||
KERNEL_BOOTCMD = "booti"
|
||||
@@ -0,0 +1,67 @@
|
||||
#INHERIT += "grub-efi"
|
||||
#inherit live-vm-common
|
||||
EFIIMGDIR ??= "${S}/efi_img"
|
||||
INITRD_LIVE ??= "${DEPLOY_DIR_IMAGE}/${INITRD_IMAGE_LIVE}${IMAGE_MACHINE_SUFFIX}.${@d.getVar('INITRAMFS_FSTYPES').split()[0]}"
|
||||
LIVE_ROOTFS_TYPE ??= "ext4"
|
||||
ROOTFS ??= "${IMGDEPLOYDIR}/${IMAGE_LINK_NAME}.${LIVE_ROOTFS_TYPE}"
|
||||
OVERRIDES += ":arm-uefi"
|
||||
#do_image_wic[recrdeptask] += " do_bootimg"
|
||||
#do_bootimg[depends] += " ${INITRD_IMAGE_LIVE}:do_image_complete"
|
||||
|
||||
IMGCLASSES:append = " live-vm-common"
|
||||
MACHINE = "genericarm64"
|
||||
KMACHINE = "genericarm64"
|
||||
#COMPATIBLE_HOST:syslinux = "aarch64-wrs-linux"
|
||||
COMPATIBLE_MACHINE:genericarm64 = "genericarm64"
|
||||
TMPDIR .= "-${BB_CURRENT_MC}"
|
||||
#require linux-arm.inc
|
||||
TARGET_SUPPORTED_KTYPES:append = " preempt-rt"
|
||||
#KBRANCH:genericarm64 = "v6.6/standard/preempt-rt/arm"
|
||||
#KBRANCH = "v6.6/standard/preempt-rt/arm"
|
||||
#IMAGE_FSTYPES += "wic wic.bmap"
|
||||
#WKS_FILE ?= "sdimage_bootpart.wks mkefidisk.wks"
|
||||
AUTO_SYSLINUXMENU = "0"
|
||||
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "grub-efi"
|
||||
#KERNEL_IMAGETYPE = "bzImage"
|
||||
#KERNEL_IMAGETYPE = "zImage"
|
||||
#KERNEL_BOOTCMD = "bootz"
|
||||
#KERNEL_IMAGETYPE = "Image"
|
||||
#KERNEL_BOOTCMD = "booti"
|
||||
#SOC_FAMILY ??= ""
|
||||
#include conf/machine/include/soc-family.inc
|
||||
|
||||
#MACHINEOVERRIDES =. "sunxi:sunxi64:"
|
||||
|
||||
#PREFERRED_PROVIDER_virtual/kernel ?= "linux-mainline"
|
||||
#PREFERRED_VERSION_linux-mainline ?= "6.18.%"
|
||||
#PREFERRED_PROVIDER_u-boot ?= "u-boot"
|
||||
#PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
|
||||
|
||||
KERNEL_IMAGETYPE ?= "Image"
|
||||
|
||||
#IMAGE_FSTYPES += "live"
|
||||
#ext4 tar.gz wic.gz wic.bmap"
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
|
||||
|
||||
#UBOOT_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
|
||||
|
||||
#UBOOT_ENTRYPOINT ?= "0x40008000"
|
||||
#UBOOT_LOADADDRESS ?= "0x40008000"
|
||||
|
||||
#UBOOT_BINARY ?= "u-boot.itb"
|
||||
#SPL_BINARY ?= "u-boot-sunxi-with-spl.bin"
|
||||
|
||||
SERIAL_CONSOLES ?= "115200;ttyS0"
|
||||
#MACHINE_FEATURES ?= "alsa apm keyboard rtc serial screen usbgadget usbhost vfat"
|
||||
|
||||
#SUNXI_BOOT_SPACE ?= "40"
|
||||
# U-Boot on arm64 always asks for allwinner/<board>.dtb, so keep the
|
||||
# directory from KERNEL_DEVICETREE.
|
||||
IMAGE_BOOT_FILES ?= "${KERNEL_IMAGETYPE} ${@' '.join(os.path.basename(f) + ';' + f for f in (d.getVar('KERNEL_DEVICETREE') or '').split())}"
|
||||
|
||||
WKS_FILE:aarch64 = "plcos-bootdisk-arm-uefi.wks.in"
|
||||
#WKS_FILES ?= "sunxi-sdcard-image.wks.in"
|
||||
#WKS_FILE_DEPENDS ?= "virtual/kernel u-boot"
|
||||
@@ -0,0 +1,28 @@
|
||||
MACHINE = "beaglebone-yocto"
|
||||
KMACHINE = "beaglebone"
|
||||
COMPATIBLE_MACHINE:beaglebone-yocto = "beaglebone-yocto"
|
||||
#KBUILD_DEFCONFIG ?= "defconfig"
|
||||
#SRC_URI:linux-yocto-rt:append = "http://downloads.yoctoproject.org/mirror/sources/git2_git.yoctoproject.org.linux-yocto.git.tar.gz"
|
||||
#PREFERRED_VERSION_linux-yocto-rt = "6.6%"
|
||||
#LINUX_MINOR = "6"
|
||||
#LINUX_VERSION = "6.6.x"
|
||||
#COMPATIBLE_MACHINE="(${MACHINE})"
|
||||
#COMPATIBLE_MACHINE:quilt-native="${MACHINE}"
|
||||
TMPDIR .= "-${BB_CURRENT_MC}"
|
||||
#SRCREV_meta = "0b45d854fcd717571edc261515273c17bfe57ad3"
|
||||
#require linux-arm.inc
|
||||
#KBRANCH:beaglebone-yocto = "v6.6/standard/preempt-rt/base"
|
||||
|
||||
#LINUX_VERSION:beaglebone-yocto ?= "6.6.x"
|
||||
#update_sudoers () {
|
||||
# sed -i 's/# %sudo/%sudo/' ${IMAGE_ROOTFS}/etc/sudoers
|
||||
#}
|
||||
#set_kernel_opts () {
|
||||
# mkdir -p ${IMAGE_ROOTFS}/etc/sysctl.d
|
||||
# echo 'kernel.sched_rt_runtime_us = -1' > ${IMAGE_ROOTFS}/etc/sysctl.d/kernel.sched_rt_runtime_us.conf
|
||||
# echo 'processor.max_cstate = 1' > ${IMAGE_ROOTFS}/etc/sysctl.d/processor.max_cstate.conf
|
||||
# echo 'isolcpus = 2,3' > ${IMAGE_ROOTFS}/etc/sysctl.d/isolcpus.conf
|
||||
#}
|
||||
#ROOTFS_POSTPROCESS_COMMAND:append =" update_sudoers;"
|
||||
#ROOTFS_POSTPROCESS_COMMAND:append =" set_kernel_opts;"
|
||||
#ROOTFS_POSTPROCESS_COMMAND:append =" do_test;"
|
||||
@@ -0,0 +1,68 @@
|
||||
|
||||
# This file is your local configuration file and is where all local user settings
|
||||
# are placed. The comments in this file give some guide to the options a new user
|
||||
# to the system might want to change but pretty much any configuration option can
|
||||
# be set in this file. More adventurous users can look at local.conf.extended
|
||||
# which contains other examples of configuration which can be placed in this file
|
||||
# but new users likely won't need any of them initially.
|
||||
#
|
||||
# Lines starting with the '#' character are commented out and in some cases the
|
||||
# default values are provided as comments to show people example syntax. Enabling
|
||||
# the option is a question of removing the # character and making any change to the
|
||||
# variable as required.
|
||||
|
||||
#
|
||||
# Wind River Linux Templates
|
||||
#
|
||||
# The following variables control the template inclusion mechanism.
|
||||
#
|
||||
# Specify templates you wish to use in a space separated list.
|
||||
#WRTEMPLATE ?="feature/rt-latency-host"
|
||||
#"feature/rt-latency-host"
|
||||
#" feature/rt-latency-guest feature/rt-tune-host feature/rt-tune-guest"
|
||||
|
||||
|
||||
# If you want to disable one or more templates
|
||||
# Note: this matches the 'end' of any templates that were found.. so you can do
|
||||
# things like:
|
||||
#
|
||||
# default (skip all default templates)
|
||||
# feature/foobar (skip all layers feature/foobar)
|
||||
# wr-base/feature/foobar (skip only feature/foobar in wr-base)
|
||||
#WRTEMPLATE_SKIP = "feautre/item3 feature/item4 ..."
|
||||
|
||||
# Selectively enable or disable the template 'image.inc' additions to a given
|
||||
# image recipe.
|
||||
# (the default value is 1)
|
||||
#WRTEMPLATE_IMAGE:pn-<recipe> = "0"
|
||||
|
||||
# Disable or enable processing of the special 'bsp-pkgs.*' template pieces.
|
||||
# (the default value is 1)
|
||||
#WRTEMPLATE_BSP_PKGS = "0"
|
||||
|
||||
#
|
||||
# Machine Selection
|
||||
#
|
||||
# You need to select a specific machine to target the build with.
|
||||
# Some machines are emulated, usually the name starts with qemu, these can boot
|
||||
# and run in the QEMU emulator:
|
||||
#
|
||||
# 32 bit Intel Core 2 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
|
||||
#MACHINE ?= "intel-core2-32"
|
||||
# 64 bit Intel Core i7 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
|
||||
MACHINE = "intel-corei7-64"
|
||||
# 64 bit Intel Skylake CPU (and later) with MMX, SSE, SSE2, SSE3, SSE4.1, SSE4.2, AVX, and AVX2 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
|
||||
#MACHINE ?= "intel-skylake-64"
|
||||
# Intel X86 (64bit) PCs and servers
|
||||
#below seems to be maintained by wind river
|
||||
#MACHINE = "intel-x86-64"
|
||||
|
||||
TMPDIR .= "-${BB_CURRENT_MC}"
|
||||
|
||||
IMAGE_INSTALL:append = " intel-cmt-cat"
|
||||
APPEND += " intel.max_cstate=1 "
|
||||
#IMAGE_FSTYPES:append = " live"
|
||||
IMAGE_FSTYPES += "iso"
|
||||
#WKS_FILE = "image-efi-installer.wks"
|
||||
#FIXME the below should be done with a distro override, so that only non-graphics distros have the codecs removed.
|
||||
MACHINE_HWCODECS = ""
|
||||
@@ -0,0 +1,19 @@
|
||||
#require recipes-kernel/linux/linux-yocto.inc
|
||||
#require recipes-kernel/linux/meta-intel-compat-kernel.inc
|
||||
|
||||
#FILESEXTRAPATHS:prepend := "${THISDIR}/linux-intel:"
|
||||
KMETA_BRANCH = "6.12"
|
||||
KERNEL_CONFIG_URI ?= "git://git.yoctoproject.org/yocto-kernel-cache;protocol=https;type=kmeta;name=meta;branch=${KMETA_BRANCH};destsuffix=${KMETA}"
|
||||
|
||||
SRC_URI:linux-yocto-rt:prepend = " \
|
||||
${KERNEL_CONFIG_URI} \
|
||||
"
|
||||
|
||||
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||
|
||||
KMETA = "kernel-meta"
|
||||
KCONF_BSP_AUDIT_LEVEL = "0"
|
||||
|
||||
COMPATIBLE_MACHINE ?= "(genericarm64|beaglebone-yocto)"
|
||||
|
||||
KERNEL_FEATURES:append = " ${KERNEL_EXTRA_FEATURES}"
|
||||
@@ -0,0 +1,35 @@
|
||||
#MACHINE = "raspberrypi5"
|
||||
#COMPATIBLE_MACHINE:raspberrypi5 = "raspberrypi5"
|
||||
#DISTRO = "poky"
|
||||
MACHINE = "raspberrypi-armv8"
|
||||
WKS_FILE_DEPENDS_BOOTLOADERS = "u-boot"
|
||||
DISTRO_FEATURES:remove = "3g wayland vulkan"
|
||||
DISTRO_FEATURES_DEFAULTS:remove = "3g wayland vulkan"
|
||||
|
||||
COMPATIBLE_MACHINE:raspberrypi-armv8 = "raspberrypi-armv8"
|
||||
TMPDIR .= "-${BB_CURRENT_MC}"
|
||||
|
||||
#I believe this only affects RPi Zero 2W and RPi 4
|
||||
LICENSE_FLAGS_ACCEPTED += "synaptics-killswitch"
|
||||
|
||||
|
||||
#IMAGE_FSTYPES += " wic wic.bmap"
|
||||
|
||||
#leaving VC4 graphics enabled causes the RPi to refuse to drop into a console, possibly because the base PLC-OS has no graphics
|
||||
#TODO: for GUI images (in situations where this is confirmed not to break the loading sequence), use bitbake logic to enable VC4 graphics
|
||||
#VC4DTBO = "vc4-kms-v3d"
|
||||
#following methods to disable VC4 graphics (only added for raspberry pi) break something in cairo, meson, with some messages about the package configuration for egl and glesv2
|
||||
#Not sure how to disable these, so we let it build as before, and in a bbappend file, disable the VC4 dtbo via config.txt
|
||||
#DISABLE_VC4GRAPHICS = "1"
|
||||
#MACHINE_FEATURES:remove = "vc4graphics"
|
||||
|
||||
################################################################
|
||||
RPI_USE_U_BOOT = "1"
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
#KERNEL_BOOTCMD = "booti"
|
||||
EXTRA_IMAGEDEPENDS += " u-boot"
|
||||
|
||||
#from raspberrypi4-64.conf
|
||||
#allows to boot on rpi4, does not break rpi5
|
||||
ARMSTUB ?= "armstub8-gic.bin"
|
||||
|
||||
@@ -0,0 +1,85 @@
|
||||
#SPL_BINARY = ""
|
||||
WKS_FILES = "${WKS_FILE}"
|
||||
#include conf/machine/include/sunxi64.inc
|
||||
include conf/machine/include/sun55i.inc
|
||||
MACHINE = "genericarm64"
|
||||
KMACHINE = "genericarm64"
|
||||
#COMPATIBLE_HOST:syslinux = "aarch64-wrs-linux"
|
||||
COMPATIBLE_MACHINE:genericarm64 = "genericarm64"
|
||||
TMPDIR .= "-${BB_CURRENT_MC}"
|
||||
#require linux-arm.inc
|
||||
TARGET_SUPPORTED_KTYPES:append = " preempt-rt"
|
||||
#KBRANCH:genericarm64 = "v6.6/standard/preempt-rt/arm"
|
||||
#KBRANCH = "v6.6/standard/preempt-rt/arm"
|
||||
#IMAGE_FSTYPES += "wic wic.bmap"
|
||||
WKS_FILE ?= "sdimage_bootpart.wks mkefidisk.wks"
|
||||
AUTO_SYSLINUXMENU = "0"
|
||||
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader = "u-boot"
|
||||
#KERNEL_IMAGETYPE = "zImage"
|
||||
#KERNEL_BOOTCMD = "bootz"
|
||||
KERNEL_IMAGETYPE = "Image"
|
||||
KERNEL_BOOTCMD = "booti"
|
||||
|
||||
|
||||
#Including several .dtb's isn't necessarily helpful on its own, as u-boot must be directed to the correct one.
|
||||
#A more device-specific image would provide a smaller image size and possibly a better guarantee that the correct .dtb is being used
|
||||
#One possible solution is the stubble project from Ubuntu, but this has not yet been evaluated
|
||||
#another possible solution is via FIT images, but this has also not been evaluated
|
||||
KERNEL_DEVICETREE ??= ""
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-bananapi-m2-plus.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-lite.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h2-plus-orangepi-zero.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-a64-pine64-plus.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-v40-bananapi-m2-berry.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun5i-a13-olinuxino.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-r1.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-v3s-licheepi-zero.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olimex-som204-evb.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun55i-t527-orangepi-4a.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun55i-a527-cubie-a5e.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olinuxino-lime.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h6-orangepi-3-lts.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olinuxino-lime2.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-m1-plus.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-a64-olinuxino.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun4i-a10-olinuxino-lime.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-bananapi.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h5-orangepi-prime.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun4i-a10-marsboard.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-pc-plus.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-a64-bananapi-m64.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-r16-bananapi-m2m.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h2-plus-orangepi-r1.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h618-orangepi-zero3.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-zero-plus2.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-m1.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun4i-a10-pcduino.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olinuxino-micro.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun9i-a80-cubieboard4.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h6-orangepi-one-plus.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-cubietruck.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olimex-som-evb.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-olinuxino-lime2-emmc.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h5-nanopi-neo-plus2.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h5-orangepi-zero-plus2.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h5-nanopi-neo2.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun5i-a10s-olinuxino-micro.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-pcduino3.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-cubieboard2.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun4i-a10-cubieboard.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-neo.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h5-orangepi-pc2.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun7i-a20-lamobo-r1.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun4i-a10-a1000.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-nanopi-neo-air.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h2-plus-bananapi-m2-zero.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun50i-h616-orangepi-zero2.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-pc.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-t113s-mangopi-mq-r-t113.dtb"
|
||||
KERNEL_DEVICETREE += "allwinner/sun8i-h3-orangepi-one.dtb"
|
||||
|
||||
UBOOT_MACHINE ?= "radxa-cubie-a5e_defconfig"
|
||||
#overwrite for testing
|
||||
KERNEL_DEVICETREE = "allwinner/sun55i-a527-cubie-a5e.dtb"
|
||||
@@ -0,0 +1,67 @@
|
||||
|
||||
# This file is your local configuration file and is where all local user settings
|
||||
# are placed. The comments in this file give some guide to the options a new user
|
||||
# to the system might want to change but pretty much any configuration option can
|
||||
# be set in this file. More adventurous users can look at local.conf.extended
|
||||
# which contains other examples of configuration which can be placed in this file
|
||||
# but new users likely won't need any of them initially.
|
||||
#
|
||||
# Lines starting with the '#' character are commented out and in some cases the
|
||||
# default values are provided as comments to show people example syntax. Enabling
|
||||
# the option is a question of removing the # character and making any change to the
|
||||
# variable as required.
|
||||
|
||||
#
|
||||
# Wind River Linux Templates
|
||||
#
|
||||
# The following variables control the template inclusion mechanism.
|
||||
#
|
||||
# Specify templates you wish to use in a space separated list.
|
||||
#WRTEMPLATE ?="feature/rt-latency-host"
|
||||
#"feature/rt-latency-host"
|
||||
#" feature/rt-latency-guest feature/rt-tune-host feature/rt-tune-guest"
|
||||
|
||||
|
||||
# If you want to disable one or more templates
|
||||
# Note: this matches the 'end' of any templates that were found.. so you can do
|
||||
# things like:
|
||||
#
|
||||
# default (skip all default templates)
|
||||
# feature/foobar (skip all layers feature/foobar)
|
||||
# wr-base/feature/foobar (skip only feature/foobar in wr-base)
|
||||
#WRTEMPLATE_SKIP = "feautre/item3 feature/item4 ..."
|
||||
|
||||
# Selectively enable or disable the template 'image.inc' additions to a given
|
||||
# image recipe.
|
||||
# (the default value is 1)
|
||||
#WRTEMPLATE_IMAGE:pn-<recipe> = "0"
|
||||
|
||||
# Disable or enable processing of the special 'bsp-pkgs.*' template pieces.
|
||||
# (the default value is 1)
|
||||
#WRTEMPLATE_BSP_PKGS = "0"
|
||||
|
||||
#
|
||||
# Machine Selection
|
||||
#
|
||||
# You need to select a specific machine to target the build with.
|
||||
# Some machines are emulated, usually the name starts with qemu, these can boot
|
||||
# and run in the QEMU emulator:
|
||||
#
|
||||
# 32 bit Intel Core 2 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
|
||||
#MACHINE ?= "intel-core2-32"
|
||||
# 64 bit Intel Core i7 CPU (and later) with MMX, SSE, SSE2, SSE3, and SSSE3 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
|
||||
MACHINE = "genericx86-64"
|
||||
KMACHINE = "common-pc-64"
|
||||
# 64 bit Intel Skylake CPU (and later) with MMX, SSE, SSE2, SSE3, SSE4.1, SSE4.2, AVX, and AVX2 instruction set support. Supports a moderately wide range of drivers that should boot and be usable on "typical" hardware.
|
||||
#MACHINE ?= "intel-skylake-64"
|
||||
# Intel X86 (64bit) PCs and servers
|
||||
#below seems to be maintained by wind river
|
||||
#MACHINE = "intel-x86-64"
|
||||
|
||||
TMPDIR .= "-${BB_CURRENT_MC}"
|
||||
|
||||
#IMAGE_INSTALL:append = " intel-cmt-cat"
|
||||
#APPEND += " intel.max_cstate=1 "
|
||||
IMAGE_FSTYPES += "iso"
|
||||
COMPATIBLE_MACHINE:genericx86-64 = "genericx86-64"
|
||||
KMACHINE:genericx86-64 ?= "common-pc-64"
|
||||
Whitespace-only changes.
Reference in new issue
Block a user