builds and runs on intel-x86 and rpi4 with acceptable realtime performance
This commit is contained in:
1 parent
2bce6fa556
commit
3faf544f0b
120 files changed
+6317
-1
No files matched your search
@@ -0,0 +1,105 @@
|
||||
#lighter-weight version of PLC-OS with smaller footprint but fewer features
|
||||
|
||||
# The following modifications to PLC-OS have been made or are planned for testing
|
||||
# x Serial only (no graphics)
|
||||
# x Basic IPV4 support (no IPV6)
|
||||
# x Single user shell
|
||||
# x Static images (no package management)
|
||||
# x Read-only or RAMFS root filesystem
|
||||
|
||||
# The current target for these efforts is:
|
||||
# x Complete Image size: under 1GB
|
||||
#
|
||||
|
||||
PLCOS_VARIANT = " Tiny"
|
||||
|
||||
require conf/distro/plcos.conf
|
||||
|
||||
# Distro config is evaluated after the machine config, so we have to explicitly
|
||||
# set the kernel provider to override a machine config.
|
||||
#TODO create recipe for "linux-yocto-rt-tiny"
|
||||
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
|
||||
|
||||
# Drop kernel-module-af-packet from RRECOMMENDS
|
||||
PLCOS_DEFAULT_EXTRA_RRECOMMENDS = ""
|
||||
|
||||
# Drop native language support.
|
||||
# this removes a significant dependency chain, reducing final size significantly
|
||||
USE_NLS = "no"
|
||||
# XXX-dev packages require pkgconfig, and are not currently supported on plcos-tiny.
|
||||
#This line disables pkgconfig
|
||||
ASSUME_PROVIDED += "pkgconfig$"
|
||||
|
||||
# Comment out any of the lines below to disable them in the build
|
||||
# DISTRO_FEATURES options:
|
||||
# alsa bluetooth ext2 irda pcmcia usbgadget usbhost wifi nfs zeroconf pci
|
||||
DISTRO_FEATURES_TINY = "pci"
|
||||
DISTRO_FEATURES_NET = "ipv4 ipv6"
|
||||
DISTRO_FEATURES_USB = "usbhost"
|
||||
#DISTRO_FEATURES_USBGADGET = "usbgadget"
|
||||
DISTRO_FEATURES_WIFI = "wifi"
|
||||
|
||||
DISTRO_FEATURES = "${DISTRO_FEATURES_TINY} \
|
||||
${DISTRO_FEATURES_NET} \
|
||||
${DISTRO_FEATURES_USB} \
|
||||
${DISTRO_FEATURES_USBGADGET} \
|
||||
${DISTRO_FEATURES_WIFI} \
|
||||
"
|
||||
|
||||
# Enable LFS - see bug YOCTO #5865
|
||||
DISTRO_FEATURES:append:libc-musl = " largefile"
|
||||
|
||||
# From poky:
|
||||
PLCOS_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch wayland vulkan"
|
||||
|
||||
DISTRO_FEATURES:class-native = "${DISTRO_FEATURES_DEFAULT} ${WRLINUX_DEFAULT_DISTRO_FEATURES}"
|
||||
DISTRO_FEATURES:class-nativesdk = "${DISTRO_FEATURES_DEFAULT} ${WRLINUX_DEFAULT_DISTRO_FEATURES}"
|
||||
|
||||
# enable mdev/busybox for init
|
||||
INIT_MANAGER = "mdev-busybox"
|
||||
VIRTUAL-RUNTIME_no-busybox = ""
|
||||
|
||||
# FIXME: Consider adding "modules" to MACHINE_FEATURES and using that in
|
||||
# packagegroup-core-base to select modutils-initscripts or not. Similar with "net" and
|
||||
# netbase.
|
||||
|
||||
# By default we only support initramfs and tar.bz2. We don't build live as that
|
||||
# pulls in a lot of dependencies for the live image and the installer, like
|
||||
# udev, grub, etc. These pull in gettext, which fails to build with wide
|
||||
# character support.
|
||||
IMAGE_FSTYPES += "cpio.gz tar.bz2"
|
||||
|
||||
# Drop v86d from qemu dependency list (we support serial)
|
||||
# Drop grub from meta-intel BSPs
|
||||
# FIXME: A different mechanism is needed here. We could define -tiny
|
||||
# variants of all compatible machines, but that leads to a lot
|
||||
# more machine configs to maintain long term.
|
||||
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = ""
|
||||
|
||||
# The mtrace script included by glibc is a perl script. This means the system
|
||||
# will build perl in case this package is installed. Since we don't care about
|
||||
# this script for the purposes of tiny, remove the dependency from here.
|
||||
RDEPENDS:${PN}-mtrace:pn-glibc = ""
|
||||
|
||||
SKIP_RECIPE[build-appliance-image] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-base] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-clutter] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-full-cmdline] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-rt] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-rt-sdk] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-sato] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-sato-dev] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-sato-sdk] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-x11] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[core-image-weston] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[plcos-image-sato] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[plcos-image-weston] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[plcos-image-base] = "not buildable with plcos-tiny"
|
||||
SKIP_RECIPE[plcos-image-dev] = "not buildable with plcos-tiny"
|
||||
|
||||
# Disable python usage in opkg-utils since it won't build with tiny config
|
||||
PACKAGECONFIG:pn-opkg-utils = "update-alternatives"
|
||||
PACKAGECONFIG:pn-lib32-opkg-utils = "update-alternatives"
|
||||
|
||||
TEMPLATES_PATH = "${LAYER_PATH_plcos}/plcos-distro/templates"
|
||||
WRTEMPLATE:append = " feature/posix-timers"
|
||||
Reference in new issue
Block a user