Compare commits

...
6 Commits
35 changed files with 589 additions and 690 deletions

No files matched your search

+30 -5
View File
@@ -8,7 +8,7 @@ Please see the corresponding sections below for details.
Dependencies
============
URI: meta-plcopen
layer: meta-plcopen
branch: main
@@ -23,8 +23,9 @@ Table of Contents
=================
I. Adding the meta-plcos layer to your build
II. AI Notice
III. Misc
II. Current Status
III. AI Notice
IV. Misc
I. Adding the meta-plcos layer to your build
@@ -32,7 +33,31 @@ I. Adding the meta-plcos layer to your build
Run 'bitbake-layers add-layer meta-plcos'
II. AI Notice
II. Current Status
===================
This project has build files for a handful of architectures and bootloader configurations.
The goal is ultimately to have broad device support, however currently only a couple configurations are actually working. The following configurations are planned or implemented to some degree
| config name | architecture | manufacturer | bootloader | status |
|-------------|--------------|--------------|------------|-----------------|
| intel-x86 | x86-64 | intel | UEFI | working |
| x86 | x86-64 | any | UEFI | working |
| x86-eboot | x86-64 | any | EBoot\* | not implemented |
| arm-uefi | aarch64 | any | UEFI\*\* | untested |
| arm-uboot | aarch64 | any | U-Boot | unfinished |
| arm-eboot | aarch64 | any | EBoot\* | unfinished |
| sunxi | aarch64 | allwinner | U-Boot | unfinished |
| rpi\*\*\* | aarch64 | Raspberry Pi | U-Boot | working |
\*These bootloaders are designed to boot straight to Windows Embedded from ROM, so we need to do some trickery to chainload U-Boo
t
\*\*Very few aarch64 devices ship with UEFI, though several make it possible to manually flash UEFI firmware (e.g. TianoCore EDK II). This may be a viable option for devices which allow bootloader flashing but, for one reason or another, don't work with other images
\*\*\* Currently Raspberry Pi 4 and 5 both boot; no other compatible device has been tested yet. the Pi 5 has some runaway latency that has not yet been corrected, and so currently the Pi 4 is the only device confirmed to have suitable performance for any real-time task using PLC-OS
III. AI Notice
===============
The maintainer of this project kindly requests that you not use an LLM (or any other generative AI) in any capacity in your interactions with this project. This includes, but is not limited to, the following:
@@ -43,7 +68,7 @@ Integrating an LLM into a system running PLC-OS, or otherwise shipping an LLM al
Deriving a version of this project (e.g. forking) in order to allow an LLM to interact with this project
III. Misc
IV. Misc
==========
PLC-OS is derived from Yocto Linux, and as such uses Bitbake to build both installer (.iso) and direct boot (.wic) images. The following architectures have been nominally tested:
-174
View File
@@ -1,174 +0,0 @@
#
# Copyright (C) 2024 Wind River Systems, Inc
#
# SPDX-License-Identifier: GPL-2.0
#
inherit enable-vendor-revision
VENDOR_REVISION_DIR ?= "${TMPDIR}/vendor-revisions/${MACHINE}"
VENDOR_REVISION_ALL ?= "${VENDOR_REVISION_DIR}/wrlinux-vendor-revision.conf"
# For fixed RCPL users which can be set in their own conf file such as
# conf/layer.conf, for example, ccm01 to ccm99:
#VENDOR_REVISION_SUFFIX = ".ccm01"
VENDOR_REVISION_SUFFIX ??= ""
addhandler gen_vr_fatal
gen_vr_fatal[eventmask] = "bb.event.BuildStarted"
python gen_vr_fatal() {
bb.fatal('Only bitbake -p is supported when gen-vendor-revision.bbclass is enabled!')
}
addhandler gen_vr_prepare
gen_vr_prepare[eventmask] = "bb.event.CacheLoadStarted"
python gen_vr_prepare() {
vendor_revision_dir = d.getVar('VENDOR_REVISION_DIR')
# Need a fresh VENDOR_REVISION_DIR and CACHE dir
for k in ('VENDOR_REVISION_DIR', 'CACHE'):
value = d.getVar(k)
bb.note("Removing %s" % value)
bb.utils.remove(value, True)
bb.utils.mkdirhier(value)
}
# Generate VENDOR_REVISION for each recipe
addhandler gen_vr_recipe_handler
gen_vr_recipe_handler[eventmask] = "bb.event.RecipeParsed"
python gen_vr_recipe_handler() {
"""
Generate VENDOR_REVISION for each recipe, the format is:
VENDOR_REVISION[recipe_file] ?= 'vr cveid1:patch1 notcve:patch2'
"""
import hashlib
# Only generate vr for supported recipes
bpn = d.getVar('BPN')
wrl_supported = d.getVar('WRLINUX_SUPPORTED_RECIPE') or d.getVar('WRLINUX_SUPPORTED_RECIPE:pn-%s' % bpn)
if wrl_supported and wrl_supported.strip() == '0':
return
if vr_need_skip(d):
return
def get_cve_patch(patch):
ret = []
patch_bn = os.path.basename(patch)
# Open in 'text' mode doesn't work for very a few patches such as:
# hddtemp_0.3-beta15-52.diff: 'utf-8' codec can't decode byte 0xe8 in
# position 3851: invalid continuation byte
with open(patch, 'rb') as f:
# Get md5
md5 = hashlib.md5()
md5.update(f.read())
hash = md5.hexdigest()
patch_bn += ':%s' % md5.hexdigest()
# Reset file postion
f.seek(0, 0)
for line in f:
if not 'CVE:' in str(line):
continue
line = line.decode('utf-8')
if line.startswith('CVE:') and 'CVE-' in line:
line_split = line.split('CVE:')
for cveid in line_split[1].split():
cveid = cveid.strip()
if cveid.startswith('CVE-'):
ret.append('%s:%s' % (cveid, patch_bn))
if not ret:
ret.append('notcve:%s' % patch_bn)
return ret
def update_vr(patches):
"""
Check whether recipe's VENDOR_REVISION need update or not
* If old_vr == new_vf
- No check is needed since they are in the same
RCPL, just update it.
* If old_vr != new_vr:
- If the patches are the same:
Nothing changed, use the old_vr to avoid unneeded updates by dnf.
- If the patches are different:
Update to the new_vr
"""
patches.sort()
new_patches = ' '.join(patches)
file_short = get_file_short(d)
vr = get_current_vendor_revision(d)
old_val = d.getVarFlag('VENDOR_REVISION', file_short)
# No checking is needed in the following cases:
# - No old_val: It's a new vr, just update it
if old_val:
old_vr = old_val.split()[0]
if old_vr:
# In different RCPL, check whether need update
if old_vr != vr:
old_patches = ' '.join(old_val.split()[1:])
# The patches are the same, no update is needed
if old_patches == new_patches:
vr = old_vr
# Replace .vr -> ${VENDOR_REVISION_PREFIX}
vr_prefix = d.getVar("VENDOR_REVISION_PREFIX") or ""
vr = vr.removeprefix(vr_prefix)
vr = '${VENDOR_REVISION_PREFIX}%s' % vr
out_lines = []
val = ""
if new_patches:
val = '%s %s' % (vr, new_patches)
out_lines.append("VENDOR_REVISION[%s] ??= '%s'" % (file_short, val))
if is_work_shared(d):
s_short = get_var_short(d.getVar('S'))
if val:
out_lines.append("VENDOR_REVISION[%s] ?= '%s'" % (s_short, val))
else:
out_lines.append("VENDOR_REVISION[%s] ??= '${@d.getVarFlag(\"VENDOR_REVISION\", \"%s\")}'" \
% (file_short, s_short))
if out_lines:
out_file = os.path.join(d.getVar('VENDOR_REVISION_DIR'), file_short)
with open(out_file, 'w') as f:
f.write('%s\n' % '\n'.join(out_lines))
patches = []
localdata = bb.data.createCopy(d)
localdata.setVar('OVERRIDES', localdata.getVar('OVERRIDES') + localdata.getVar('GEN_VENDOR_REVISION_OVERRIDES'))
for local in get_src_patches(localdata):
patches += get_cve_patch(local)
update_vr(patches)
}
# Generate vendor-revision.conf
addhandler gen_vr_all_handler
gen_vr_all_handler[eventmask] = "bb.event.ParseCompleted"
python gen_vr_all_handler () {
"""
Collect each recipe's vendor revision in VENDOR_REVISION_DIR and save
to VENDOR_REVISION_ALL
"""
import glob
vendor_revision_dir = d.getVar('VENDOR_REVISION_DIR')
patches = []
output = d.getVar('VENDOR_REVISION_ALL')
output_dir = os.path.dirname(output)
for recipe in glob.glob(os.path.join(vendor_revision_dir, '*')):
with open(recipe) as f:
for line in f:
if not line in (patches):
patches.append(line)
patches.sort()
with open(output, 'w') as f:
f.write('require %s\n\n' % "wrlinux-vendor-revision-manual.inc")
f.write(''.join(patches))
bb.note('The recipes with patches are saved to %s' % output)
}
# Workaround Exception during build_dependencies for fetcher_hashes_dummyfunc
# https://git.openembedded.org/openembedded-core/commit/?id=a8e7b0f932b9ea69b3a218fca18041676c65aba0
fetcher_hashes_dummyfunc[vardepvalue] = ""
-41
View File
@@ -1,41 +0,0 @@
#
# Copyright (C) 2025 Wind River Systems, Inc.
#
# SPDX-License-Identifier: MIT
#
python do_create_spdx:prepend() {
import oe.packagedata
purl_qualifiers = "distro=%s-%s&arch=%s" % ("yocto" if d.getVar("DISTRO") == "poky" else d.getVar("DISTRO"), \
d.getVar("DISTRO_VERSION"), \
d.getVar("MACHINE"), \
)
purl_qualifiers_extend = d.getVar("SPDX_PURL_QUALIFIERS_EXTEND")
if purl_qualifiers_extend:
purl_qualifiers += "&%s" % purl_qualifiers_extend
purl_type = d.getVar("IMAGE_PKGTYPE")
if purl_type == "ipk":
purl_type = "yocto"
purl_qualifiers = "file_extension=ipk&" + purl_qualifiers
purl_subpath = d.getVar("SPDX_PURL_SUBPATH")
purl_subpath = "#" + purl_subpath if purl_subpath else ""
bb.build.exec_func("read_subpackage_metadata", d)
for package in d.getVar("PACKAGES", True).split():
if not oe.packagedata.packaged(package, d):
continue
pkg_name = d.getVar("PKG:%s" % package) or package
purl = "pkg:%s/%s/%s@%s?%s%s" % (purl_type, \
d.getVar("DISTRO"), \
pkg_name, \
d.getVar("EXTENDPKGV"), \
purl_qualifiers, \
purl_subpath \
)
d.setVar("SPDX_PACKAGE_URL:%s" % package, purl)
}
-27
View File
@@ -1,27 +0,0 @@
target_build_msg = "The meta-anaconda layer has been included, and the \
current build is a regular target build. After it is finished, create \
a new installer build with DISTRO = 'wrlinux-installer', \
INSTALLER_TARGET_BUILD = '<target-build-topdir>|<target-build-image>' \
and INSTALLER_TARGET_IMAGE = '<target-image-pn>' in local.conf"
target_build_warnmsg = "WARNING: The meta-anaconda layer has been included, \
and the current build is a regular target build. It requires to enable \
feature/installer-support template. Add option \
--templates=feature/installer-support to setup.sh, or set WRTEMPLATE += \
'feature/installer-support' in local.conf"
installer_build_msg = "The meta-anaconda layer has been included, and the \
current build is a installer build, if set INSTALLER_TARGET_BUILD = \
'<target-build-topdir>', and INSTALLER_TARGET_IMAGE = '<target-image-pn>' \
the installer is to do RPMs install; if set INSTALLER_TARGET_BUILD = \
'<target-build-image>', the installer is to do image copy install."
def get_installer_banner(d):
if d.getVar('DISTRO',True) == 'wrlinux-installer':
return d.getVar('installer_build_msg')
elif "feature/installer-support" in d.getVar("WRTEMPLATE").split():
return d.getVar('target_build_msg')
else:
return d.getVar('target_build_warnmsg')
CONFIG_BANNER[installer] = "${@get_installer_banner(d)}"
@@ -1,20 +0,0 @@
# copied from meta-mentor/conf/distro/include/sstate.inc
def lsb_distro_adjust(distro_id, ver):
"""This hook ensures that RHEL server, RHEL client, and CentOS all return
'RedHat' for distro, and '5' for the version, as we know minor
versions for these distros are compatible, and these distros are
compatible with one another."""
if distro_id in ('RedHatEnterpriseClient', 'RedHatEnterpriseServer',
'CentOS'):
distro_id = 'RedHat'
try:
major_ver, _ = ver.split('.', 1)
except ValueError:
pass
else:
ver = major_ver
return distro_id, ver
LSB_DISTRO_ADJUST = "lsb_distro_adjust"
+13 -2
View File
@@ -113,7 +113,7 @@ PREFERRED_PROVIDER_virtual/kernel = "linux-yocto-rt"
#cachyos is NOT officially supported by yocto/bitbake, but we have personally tested it without issue
SANITY_TESTED_DISTROS ?= " \
ubuntu-24.04 \n \
cachyos-260809 \n
cachyos-260809 \n \
"
# TODO: This works, but OE documentation recommends either working with the DISTRO_FEATURES variable, or with the DISTRO_FEATURES_OPTED_OUT variable
@@ -217,15 +217,26 @@ WKS_FILE:x86 = "plcos-bootdisk-x86.wks.in"
WKS_FILE:x86-64 = "plcos-bootdisk-x86.wks.in"
WKS_FILE:intel-x86-common = "plcos-bootdisk-intel.wks.in"
WKS_FILE:aarch64 = "plcos-bootdisk-arm.wks.in"
WKS_FILE:aarch64 ?= "plcos-bootdisk-arm-uboot.wks.in"
WKS_FILE:sunxi = "sunxi-sdcard-image.wks.in"
DISTRO_FEATURES:append = " pam opengl usbhost largefile "
#DISTRO_FEATURES:append = " x11 wayland virtualization "
INHERIT += "rtopts"
#TODO take the ones of these that tuned doesn't already modify, and add them to the additional tuned parameters
APPEND += "rcu_nocb_poll nmi-watchdog=0 processor.max_cstate=1 noefi irqaffinity=0"
ROOTFS_POSTPROCESS_COMMAND += " set_kernel_opts;"
TARGET_SUPPORTED_KTYPES:append = " preempt-rt"
DISTRO_FEATURES_DEFAULTS:append = " usbhost"
# use systemd as the default init manager
INIT_MANAGER = "systemd"
IMAGE_INSTALL:append = " sudo \
vim \
trace-cmd \
uftrace \
avahi-daemon \
"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

-79
View File
@@ -1,79 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1280mm"
height="800mm"
viewBox="0 0 1280 800"
version="1.1"
id="svg5"
inkscape:version="1.4.4 (dcaf3e7d9e, 2026-05-05)"
sodipodi:docname="psplash-plcos-img.svg"
inkscape:export-filename="psplash-poky-img.png"
inkscape:export-xdpi="25.4"
inkscape:export-ydpi="25.4"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#ecece1"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageshadow="2"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:document-units="mm"
showgrid="false"
units="mm"
inkscape:zoom="0.1767767"
inkscape:cx="1561.2917"
inkscape:cy="760.84688"
inkscape:window-width="2560"
inkscape:window-height="1372"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
inkscape:showpageshadow="2"
inkscape:deskcolor="#d1d1d1" />
<defs
id="defs2">
<rect
x="1636.3861"
y="1993.7577"
width="1960.7313"
height="754.86579"
id="rect1" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1" />
<g
inkscape:groupmode="layer"
id="layer2"
inkscape:label="Layer 2">
<text
xml:space="preserve"
transform="matrix(0.26509751,0,0,0.26716234,25.935831,-186.76745)"
id="text1"
style="font-size:366.667px;writing-mode:lr-tb;direction:ltr;white-space:pre;shape-inside:url(#rect1);display:inline;fill:#afdde9;stroke-width:0.967559;stroke-dasharray:none"><tspan
x="1636.3867"
y="2327.379"
id="tspan4"><tspan
style="font-weight:bold"
id="tspan2">PLC OS</tspan></tspan></text>
</g>
<g
inkscape:groupmode="layer"
id="layer3"
inkscape:label="Layer 3">
<path
style="fill:#ffff00;stroke-width:0.276323"
d="m 664.52086,436.84985 -13.16951,-43.05816 9.95281,4.37141 -6.28075,-31.75662 14.11952,40.77449 -9.68909,-4.20408 z"
id="path1"
sodipodi:nodetypes="ccccccc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

+13
View File
@@ -0,0 +1,13 @@
# short-description: Create an EFI disk image with grub-efi
# long-description: Creates a partitioned EFI disk image that the user
# can directly dd to boot media. The selected bootloader is grub-efi.
# It also includes intel-microcode as an initrd for early update support.
part /boot --source bootimg-efi --sourceparams="loader=grub-efi" --label boot --active --align 4096 --use-uuid
#part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 100
part / --source rootfs --fstype=ext4 --ondisk mmcblk0 --label root --align 4096
#part swap --ondisk sda --size 44 --label swap1 --fstype=swap --use-uuid
bootloader --ptable gpt --timeout=5 --append=" rootfstype=ext4 "
+13
View File
@@ -0,0 +1,13 @@
# short-description: Create an EFI disk image with grub-efi
# long-description: Creates a partitioned EFI disk image that the user
# can directly dd to boot media. The selected bootloader is grub-efi.
# It also includes intel-microcode as an initrd for early update support.
#part /boot --source bootimg-efi --sourceparams="loader=grub-efi,initrd=microcode.cpio" --label boot --active --align 1024 --use-uuid
part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 100
part / --source rootfs --fstype=ext4 --ondisk mmcblk0 --label root --align 4096
#part swap --ondisk sda --size 44 --label swap1 --fstype=swap --use-uuid
#bootloader --ptable gpt --timeout=5 --append=" rootfstype=ext4 "
+60 -27
View File
@@ -14,7 +14,11 @@ IMAGE_INSTALL = " \
packagegroup-wr-base-discrete-tools \
packagegroup-core-boot \
packagegroup-plcos-core \
rt-tests \
hwlatdetect \
grub-efi \
grub \
grub-bootconf \
tuned \
openplc \
rt-setup \
@@ -29,9 +33,10 @@ IMAGE_INSTALL = " \
LABELS_LIVE = "install boot"
inherit wrlinux-image
inherit rtopts
inherit grub-efi
#inherit image_types
#############################################################
#IMAGE_FEATURES += " package-management wr-core-db wr-core-interactive wr-core-net wr-core-perl wr-core-python wr-core-sys-util wr-core-util wr-core-mail wr-bsps "
# ssh-server-openssh
@@ -39,7 +44,6 @@ DISTRO_FEATURES += " polkit "
IMAGE_FEATURES += " splash package-management"
#IMAGE_FEATURES += " ssh-server-dropbear hwcodecs "
#CORE_IMAGE_BASE_INSTALL += " openssh"
#linuxcnc linuxcnc-doc"
#DEPENDS += " cdrtools-native"
@@ -50,17 +54,63 @@ IMAGE_FSTYPES += "wic wic.bmap"
inherit extrausers
IMAGE_EFI_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
IMAGE_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
#additional kernel images may not be required at all, but I don't want to break the x86 build while trying to fix the allwinner build
IMAGE_EFI_BOOT_FILES:append:x86-64 := " ${KERNEL_IMAGETYPE}-*"
#IMAGE_EFI_BOOT_FILES:append := "${KERNEL_IMAGETYPE}-*"
IMAGE_BOOT_FILES:append:x86-64 := " ${KERNEL_IMAGETYPE}-*"
IMAGE_BOOT_FILES:append:arm-uefi := " startup.nsh"
#TODO reference GRUB_IMAGE destination name via variables, otherwise this could break possible future 32 bit builds
#BOOT_EFI =
IMAGE_BOOT_FILES:append:rpi = " \
grub.cfg;EFI/BOOT/grub.cfg \
bootaa64.efi;EFI/BOOT/bootaa64.efi \
${EFI_PROVIDER}-bootaa64.efi;EFI/BOOT/bootaa64.efi \
"
# ${EFI_PROVIDER}-bootaa64.efi:EFI/BOOT/bootaa64.efi
#IMAGE_EFI_BOOT_FILES:append := " boot"
do_bootimg[depends] += "dosfstools-native:do_populate_sysroot \
mtools-native:do_populate_sysroot \
cdrtools-native:do_populate_sysroot \
virtual/kernel:do_deploy \
"
#${@'%s:do_image_%s' % (d.getVar('PN'), d.getVar('LIVE_ROOTFS_TYPE').replace('-', '_').split('.')[0]) if d.getVar('ROOTFS') else ''}
python do_bootimg:prepend() {
build_efi() {
#populate_kernel ${EFIIMGDIR}
#if [ "${EFI}" = "1" ]; then
# efi_populate ${EFIIMGDIR}
#fi
EFIPATH=$(echo "${EFIDIR}" | sed 's/\//\\/g')
printf 'fs0:%s\%s\n' "$EFIPATH" "${EFI_BOOT_IMAGE}" >${DEPLOY_DIR_IMAGE}/startup.nsh
}
python do_bootimg:rpi() {
pass
}
#python do_bootimg:arm-uefi() {
# bb.build.exec_func('build_efi_cfg', d)
# bb.build.exec_func('build_efi', d)
# bb.build.exec_func('create_symlinks', d)
#}
#for some reason, adding my override (arm-uefi) to "python do_bootimg" causes bitbake to interpret the function as shell script, not as python.
#Since I don't have time for none of that, I'm just doing this in my own python function for non-x86 architectures
#(x86 is the only one that supports syslinux, which is a build requirement for OE's 'live' image classes, even for EFI-only images)
python do_build_boot() {
pass
}
python do_build_boot:arm-uefi() {
bb.build.exec_func('build_efi_cfg', d)
bb.build.exec_func('build_efi', d)
bb.build.exec_func('create_symlinks', d)
}
python do_bootimg:prepend:x86-64() {
#import os
import glob
deploy_dir = d.getVar("DEPLOY_DIR_IMAGE")
@@ -74,25 +124,8 @@ python do_bootimg:prepend() {
for file in files:
os.system("install -m 644 -t " + iso_dir + " " + file + " | install -m 644 -t " + hdd_dir + " " + file )
}
python do_image:append() {
# try:
# os.system("ln -s /boot/EFI/BOOT " + d.getVar("ROOTFS") + "/boot/grub")
# except E:
# pass
}
efi_iso_populate:append() {
# if [ ! -e "${EFIIMGDIR}/grub" ] ; then
# ln -s /boot/EFI/BOOT "${EFIIMGDIR}/grub"
# fi
}
addtask build_boot before do_image_complete after do_rootfs
#do_image_wic[recrdeptask] += " do_bootimg"
#do_bootimg[depends] += " ${INITRD_IMAGE_LIVE}:do_image_complete"
#below breaks something, it tries to make the file even when it already exists
efi_populate:append() {
# if [ ! -e "${DEST}/grub" ] ; then
# ln -s /boot/EFI/BOOT "${DEST}/grub"
# fi
}
populate_kernel:append() {
#mv $dest/${KERNEL_IMAGETYPE} $dest/${KERNEL_IMAGETYPE}-
}
#hostname:pn-base-files = "plc"
-10
View File
@@ -35,16 +35,6 @@ DISTRO = "plcos-graphics"
IMAGE_FEATURES += " \
hwcodecs \
ssh-server-openssh \
wr-core-db \
wr-core-interactive \
wr-core-net \
wr-core-perl \
wr-core-python \
wr-core-sys-util \
wr-core-util \
wr-core-mail \
wr-bsps \
"
@@ -21,15 +21,6 @@ inherit rtopts
IMAGE_FEATURES += " \
package-management \
ssh-server-openssh \
wr-core-db \
wr-core-interactive \
wr-core-net \
wr-core-perl \
wr-core-python \
wr-core-sys-util \
wr-core-util \
wr-core-mail \
wr-bsps \
"
@@ -24,15 +24,6 @@ PACKAGES = "\
"
RDEPENDS:packagegroup-core-boot-wrs = "\
base-files \
base-passwd \
busybox \
${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${VIRTUAL-RUNTIME_initscripts}", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
modutils-initscripts \
netbase \
${VIRTUAL-RUNTIME_login_manager} \
${VIRTUAL-RUNTIME_init_manager} \
${VIRTUAL-RUNTIME_dev_manager} \
${VIRTUAL-RUNTIME_update-alternatives} \
"
@@ -5,13 +5,10 @@ WR_MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
ALLOW_EMPTY:packagegroup-wr-boot = "1"
RDEPENDS:packagegroup-wr-boot = "${PN} ${WR_MACHINE_ESSENTIAL_EXTRA_RDEPENDS}"
# add wr-init
RDEPENDS:${PN}:append = " ${@bb.utils.contains('DISTRO_FEATURES','sysvinit','wr-init','',d)}"
# Need these, but images may choose to pull them from various
# packages, e.g. busybox or bash+busybox-oe-min.
# The following only works with the RPM backend...
FILERDEPENDS_${PN} = "/bin/sh /usr/bin/run-parts /sbin/start-stop-daemon /sbin/ifup"
# override the default in package-core-boot.bb
EFI_PROVIDER ??= "${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPL-3.0-only', '', 'grub-efi', d)}"
#EFI_PROVIDER ??= "${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPL-3.0-only', '', 'grub-efi', d)}"
@@ -1,10 +0,0 @@
#
# Copyright (C) 2014 Wind River Systems, Inc.
#
# The graphics packages in packagegroup-self-hosted-graphics
# are for Build Appliance usage in oe-core which are not
# needed in our self-hosted feature.
# So drop the graphics packagegroup.
PACKAGES:remove = "packagegroup-self-hosted-graphics"
RDEPENDS:packagegroup-self-hosted:remove = "packagegroup-self-hosted-graphics"
@@ -1,2 +0,0 @@
PACKAGEGROUP_SELF_HOST_INC_WRLINUX = "packagegroup-self-host_wrlinux.inc"
require ${PACKAGEGROUP_SELF_HOST_INC_WRLINUX}
@@ -18,7 +18,6 @@ PACKAGES += "${PN}-discrete-tools ${PN}-discrete-tools-dbg ${PN}-discrete-tools-
# packagegroup-core-initscripts and packagegroup-core-basic-utils:
VIRTUAL-RUNTIME_syslog ?= "sysklogd"
RDEPENDS:${PN} = "\
acl \
attr \
bash \
bc \
@@ -37,7 +36,6 @@ RDEPENDS:${PN} = "\
procps \
psmisc \
sed \
sudo \
${VIRTUAL-RUNTIME_syslog} \
tar \
time \
@@ -48,9 +46,11 @@ RDEPENDS:${PN} = "\
util-linux-fstrim \
util-linux-hwclock \
util-linux-logger \
vim \
which \
"
# acl
# sudo
# vim
# Minimal network environment
RDEPENDS:${PN}-net = "\
@@ -1,65 +0,0 @@
SUMMARY = "Packages required by bsp"
#
# packages which content depend on MACHINE_FEATURES need to be MACHINE_ARCH
#
ALLOW_EMPTY:${PN} = "1"
PACKAGE_ARCH = "${MACHINE_ARCH}"
inherit packagegroup
BSP_EXTRAS_PACKAGES ?= ""
PROVIDES = "${PACKAGES}"
PACKAGES = ' \
packagegroup-wr-bsps \
${@bb.utils.contains("MACHINE_FEATURES", "parser", "packagegroup-wr-bsps-parser", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "shell-tools", "packagegroup-wr-bsps-shell-tools", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "filesystem", "packagegroup-wr-bsps-filesystem-tools", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "profile", "packagegroup-wr-bsps-profile-tools", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "network", "packagegroup-wr-bsps-network-tools", "", d)} \
\
${@bb.utils.contains("DISTRO_FEATURES", "bsp-extras", "packagegroup-wr-bsps-bsp-extras", "", d)} \
'
#
# packagegroup-wr-bsps contain stuff needed by BSPs (machine related)
#
RDEPENDS:packagegroup-wr-bsps = "\
${@bb.utils.contains("MACHINE_FEATURES", "parser", "packagegroup-wr-bsps-parser", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "shell-tools", "packagegroup-wr-bsps-shell-tools", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "filesystem", "packagegroup-wr-bsps-filesystem-tools", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "profile", "packagegroup-wr-bsps-profile-tools", "", d)} \
${@bb.utils.contains("MACHINE_FEATURES", "network", "packagegroup-wr-bsps-network-tools", "", d)} \
\
${@bb.utils.contains("DISTRO_FEATURES", "bsp-extras", "packagegroup-wr-bsps-bsp-extras", "", d)} \
"
SUMMARY:packagegroup-wr-bsps-parser = "Parser Generator Support"
RDEPENDS:packagegroup-wr-bsps-parser = "\
flex \
bison"
SUMMARY:packagegroup-wr-bsps-shell-tools = "Shell tools support"
RDEPENDS:packagegroup-wr-bsps-shell-tools = "\
dialog"
SUMMARY:packagegroup-wr-bsps-filesystem-tools = "Filesystem tools support"
RDEPENDS:packagegroup-wr-bsps-filesystem-tools = "\
fio \
smartmontools"
SUMMARY:packagegroup-wr-bsps-profile-tools = "Profile tools support"
RDEPENDS:packagegroup-wr-bsps-profile-tools = "\
${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPL-3.0-only', '', 'perf', d)}"
SUMMARY:packagegroup-wr-bsps-network-tools = "Network tools support"
RDEPENDS:packagegroup-wr-bsps-network-tools = "\
iperf3"
SUMMARY:packagegroup-wr-bsps-bsp-extras = "BSP related extras devices tools"
RDEPENDS:packagegroup-wr-bsps-bsp-extras = "\
${BSP_EXTRAS_PACKAGES} \
"
@@ -1,19 +0,0 @@
#
# Copyright (C) 2012-2013 Wind River Systems Inc.
#
# This package matches a FEATURE_PACKAGES_packagegroup-wr-core-db definition in
# wrlinux-image.bbclass that may be used to customize an image by
# adding "wr-core-db" to IMAGE_FEATURES.
#
DESCRIPTION = "Wind River Linux core package group: db"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
ALLOW_EMPTY:${PN} = "1"
RDEPENDS:${PN} = " \
db \
sqlite3 \
"
@@ -1,28 +0,0 @@
#
# Copyright (C) 2012-2013 Wind River Systems Inc.
#
# This package matches a FEATURE_PACKAGES_packagegroup-wr-core-interactive definition in
# wrlinux-image.bbclass that may be used to customize an image by
# adding "wr-core-interactive" to IMAGE_FEATURES.
#
DESCRIPTION = "Wind River Linux core package group: interactive"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"
ALLOW_EMPTY:${PN} = "1"
RDEPENDS:${PN} = " \
lrzsz \
man \
man-pages \
minicom \
ncurses-tools \
vim \
vim-common \
vim-syntax \
${@bb.utils.contains('INCOMPATIBLE_LICENSE', 'GPL-3.0-or-later', '', 'screen', d)} \
"
@@ -1,23 +0,0 @@
#
# Copyright (C) 2012-2013 Wind River Systems Inc.
#
# This package matches a FEATURE_PACKAGES_packagegroup-wr-core-perl definition in
# wrlinux-image.bbclass that may be used to customize an image by
# adding "wr-core-perl" to IMAGE_FEATURES.
#
DESCRIPTION = "Wind River Linux core package group: perl"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"
ALLOW_EMPTY:${PN} = "1"
RDEPENDS:${PN} = " \
perl \
perl-misc \
perl-modules \
perl-pod \
"
@@ -1,22 +0,0 @@
#
# Copyright (C) 2012-2013 Wind River Systems Inc.
#
# This package matches a FEATURE_PACKAGES_packagegroup-wr-core-python definition in
# wrlinux-image.bbclass that may be used to customize an image by
# adding "wr-core-python" to IMAGE_FEATURES.
#
DESCRIPTION = "Wind River Linux core package group: python"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302 \
file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PR = "r1"
ALLOW_EMPTY:${PN} = "1"
RDEPENDS:${PN} = " \
python3 \
python3-misc \
python3-modules \
"
@@ -1,7 +1,14 @@
ROOT = "root=/dev/mmcblk0p2"
#TODO clean this mess up
ROOT:rpi = "root=/dev/mmcblk0p2"
ROOT:arm = "root=/dev/mmcblk0p2"
inherit deploy
addtask do_deploy after do_install before do_build
do_deploy() {
}
do_deploy:aarch64() {
install -m 644 ${S}/grub-bootconf ${DEPLOY_DIR_IMAGE}/grub.cfg
}
do_deploy:rpi() {
install -m 644 ${S}/grub-bootconf ${DEPLOY_DIR_IMAGE}/grub.cfg
}
#not sure why this is necessary as a result of the above
-1
View File
@@ -1 +0,0 @@
CONFIG_NO_HZ_FULL=y
@@ -1,2 +0,0 @@
FILESEXTRAPATHS:prepend := "${THISDIR}:"
SRC_URI += "file://kernelconf.cfg"
-47
View File
@@ -1,47 +0,0 @@
LICENSE = "CLOSED"
#MY_FILES =
#LIC_FILES_CHKSUM = "file://cf/install-sh;beginline=6;endline=16;md5=6c39b6a36ad775d09cc9ee0e33fe9e6c"
SRC_URI = "file://lat-plot \
"
# python3targetconfig: configuration for the target machine is accessible (such as correct installation directories)
# autotools-brokensep: autotools build process (without support for building outside of ${S})
# pkgconfig: standard way to get header and library information by using pkg-config
#inherit autotools-brokensep pkgconfig python3native
# Modify these as desired
PV = "0.1"
#SRCREV = "bcbf35634ccf49ff39261b291f01ca0c4a5fddd5"
#S = "${WORKDIR}/git"
# LinuxCNC build separation is broken, so we need to build in src
#B = "${S}/src"
S = '${UNPACKDIR}'
TARGET_CC_ARCH += " ${LDFLAGS}"
#######################################################
# autotools fixes
#######################################################
#AUTOTOOLS_SCRIPT_PATH = "${B}"
# We need to replace autotools_preconfigure with our own, because it deletes ${B} otherwise
# since S != B in our case (but B is still *inside* S)
#DEPENDS += " tk8 tcl8 tcl8-native tk8-native freetype"
RDEPENDS:${PN} += " rt-tests gnuplot stress"
#RDEPENDS:${PN} += "cairo pango gd"
#PREFERRED_VERSION:tk8 = "8.6.%"
#RDEPENDS:${PN}-dev += " tk8 "
#inherit autotools
FILES:${PN} += " /usr/bin/lat-plot \
"
FILES:${PN}-dev = " "
FILES:${PN}-dbg = " "
do_install () {
install -d ${D}/usr/bin
install -m 777 ${UNPACKDIR}/lat-plot ${D}/usr/bin/lat-plot
}
-58
View File
@@ -1,58 +0,0 @@
LICENSE = "MIT"
#MY_FILES =
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
inherit systemd
SYSTEMD_AUTO_ENABLE:${PN} = "enable"
SYSTEMD_SERVICE:${PN} = "rt.service"
SRC_URI:append = "file://rt-setup \
file://rt.service \
file://COPYING.MIT \
"
# python3targetconfig: configuration for the target machine is accessible (such as correct installation directories)
# autotools-brokensep: autotools build process (without support for building outside of ${S})
# pkgconfig: standard way to get header and library information by using pkg-config
#inherit autotools-brokensep pkgconfig python3native
# Modify these as desired
PV = "0.0"
#SRCREV = "bcbf35634ccf49ff39261b291f01ca0c4a5fddd5"
#S = "${WORKDIR}/git"
# LinuxCNC build separation is broken, so we need to build in src
#B = "${S}/src"
S = '${UNPACKDIR}'
TARGET_CC_ARCH += " ${LDFLAGS}"
#######################################################
# autotools fixes
#######################################################
#AUTOTOOLS_SCRIPT_PATH = "${B}"
# We need to replace autotools_preconfigure with our own, because it deletes ${B} otherwise
# since S != B in our case (but B is still *inside* S)
#DEPENDS += " tk8 tcl8 tcl8-native tk8-native freetype"
#RDEPENDS:${PN} += " rt-tests "
#PREFERRED_VERSION:tk8 = "8.6.%"
RDEPENDS:${PN} += " bash "
#inherit autotools
FILES:${PN} += " /usr/bin/rt-setup \
${systemd_unitdir}/system/rt.service \
"
FILES:${PN}-dev = " "
FILES:${PN}-dbg = " "
do_install () {
install -d ${D}/usr/bin
#install -d ${D}${sysconfdir}/init.d
install -d ${D}${systemd_unitdir}/system
install -m 0755 ${UNPACKDIR}/rt.service ${D}${systemd_unitdir}/system/rt.service
install -m 0755 ${UNPACKDIR}/rt-setup ${D}/usr/bin/rt-setup
#update-rc.d -r ${D} rt-setup start 03 S .
}
+36
View File
@@ -0,0 +1,36 @@
LICENSE = "MIT"
#MY_FILES =
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
inherit systemd
SYSTEMD_AUTO_ENABLE:${PN} = "enable"
SYSTEMD_SERVICE:${PN} = "rt.service"
SRC_URI:append = "file://rt-setup \
file://rt.service \
file://COPYING.MIT \
"
PV = "0.1"
S = '${UNPACKDIR}'
TARGET_CC_ARCH += " ${LDFLAGS}"
RDEPENDS:${PN} += " bash "
FILES:${PN} += " /usr/bin/rt-setup \
${systemd_unitdir}/system/rt.service \
"
FILES:${PN}-dev = " "
FILES:${PN}-dbg = " "
do_install () {
install -d ${D}/usr/bin
#install -d ${D}${sysconfdir}/init.d
install -d ${D}${systemd_unitdir}/system
install -m 0755 ${UNPACKDIR}/rt.service ${D}${systemd_unitdir}/system/rt.service
install -m 0755 ${UNPACKDIR}/rt-setup ${D}/usr/bin/rt-setup
#update-rc.d -r ${D} rt-setup start 03 S .
}
+3 -2
View File
@@ -57,8 +57,9 @@ rm ${PKGD}/var/volatile -rf
PYVER=$(find ${RECIPE_SYSROOT}/usr/${BASELIB} -maxdepth 1 -type d -name python3\.* -exec basename {} \;)
mkdir -p ${D}/usr/${BASELIB}/${PYVER}/site-packages
#PYTHON_SITELIB might break on a future update to tuned; this line is copied manually from the makefile
PYTHON_SITELIB=$(python3 -c 'from sysconfig import get_path; print(get_path("purelib"));')
mv ${D}${PYTHON_SITELIB}/${PN} ${D}/usr/${BASELIB}/${PYVER}/site-packages
#PYTHON_SITELIB=$(python3 -c 'from sysconfig import get_path; print(get_path("purelib"));')
TUNED_ORIG=$(find ${D} -wholename "*/${PYVER}/site-packages/${PN}" -type d -maxdepth 5)
mv $TUNED_ORIG ${D}/usr/${BASELIB}/${PYVER}/site-packages
ln -s /boot/EFI/BOOT/grub.cfg ${D}/etc/grub2.cfg
ln -s grub-editenv ${D}/usr/bin/grub2-editenv
ln -s grub-mkconfig ${D}/usr/bin/grub2-mkconfig
+373
View File
@@ -0,0 +1,373 @@
Mozilla Public License Version 2.0
==================================
1. Definitions
--------------
1.1. "Contributor"
means each individual or legal entity that creates, contributes to
the creation of, or owns Covered Software.
1.2. "Contributor Version"
means the combination of the Contributions of others (if any) used
by a Contributor and that particular Contributor's Contribution.
1.3. "Contribution"
means Covered Software of a particular Contributor.
1.4. "Covered Software"
means Source Code Form to which the initial Contributor has attached
the notice in Exhibit A, the Executable Form of such Source Code
Form, and Modifications of such Source Code Form, in each case
including portions thereof.
1.5. "Incompatible With Secondary Licenses"
means
(a) that the initial Contributor has attached the notice described
in Exhibit B to the Covered Software; or
(b) that the Covered Software was made available under the terms of
version 1.1 or earlier of the License, but not also under the
terms of a Secondary License.
1.6. "Executable Form"
means any form of the work other than Source Code Form.
1.7. "Larger Work"
means a work that combines Covered Software with other material, in
a separate file or files, that is not Covered Software.
1.8. "License"
means this document.
1.9. "Licensable"
means having the right to grant, to the maximum extent possible,
whether at the time of the initial grant or subsequently, any and
all of the rights conveyed by this License.
1.10. "Modifications"
means any of the following:
(a) any file in Source Code Form that results from an addition to,
deletion from, or modification of the contents of Covered
Software; or
(b) any new file in Source Code Form that contains any Covered
Software.
1.11. "Patent Claims" of a Contributor
means any patent claim(s), including without limitation, method,
process, and apparatus claims, in any patent Licensable by such
Contributor that would be infringed, but for the grant of the
License, by the making, using, selling, offering for sale, having
made, import, or transfer of either its Contributions or its
Contributor Version.
1.12. "Secondary License"
means either the GNU General Public License, Version 2.0, the GNU
Lesser General Public License, Version 2.1, the GNU Affero General
Public License, Version 3.0, or any later versions of those
licenses.
1.13. "Source Code Form"
means the form of the work preferred for making modifications.
1.14. "You" (or "Your")
means an individual or a legal entity exercising rights under this
License. For legal entities, "You" includes any entity that
controls, is controlled by, or is under common control with You. For
purposes of this definition, "control" means (a) the power, direct
or indirect, to cause the direction or management of such entity,
whether by contract or otherwise, or (b) ownership of more than
fifty percent (50%) of the outstanding shares or beneficial
ownership of such entity.
2. License Grants and Conditions
--------------------------------
2.1. Grants
Each Contributor hereby grants You a world-wide, royalty-free,
non-exclusive license:
(a) under intellectual property rights (other than patent or trademark)
Licensable by such Contributor to use, reproduce, make available,
modify, display, perform, distribute, and otherwise exploit its
Contributions, either on an unmodified basis, with Modifications, or
as part of a Larger Work; and
(b) under Patent Claims of such Contributor to make, use, sell, offer
for sale, have made, import, and otherwise transfer either its
Contributions or its Contributor Version.
2.2. Effective Date
The licenses granted in Section 2.1 with respect to any Contribution
become effective for each Contribution on the date the Contributor first
distributes such Contribution.
2.3. Limitations on Grant Scope
The licenses granted in this Section 2 are the only rights granted under
this License. No additional rights or licenses will be implied from the
distribution or licensing of Covered Software under this License.
Notwithstanding Section 2.1(b) above, no patent license is granted by a
Contributor:
(a) for any code that a Contributor has removed from Covered Software;
or
(b) for infringements caused by: (i) Your and any other third party's
modifications of Covered Software, or (ii) the combination of its
Contributions with other software (except as part of its Contributor
Version); or
(c) under Patent Claims infringed by Covered Software in the absence of
its Contributions.
This License does not grant any rights in the trademarks, service marks,
or logos of any Contributor (except as may be necessary to comply with
the notice requirements in Section 3.4).
2.4. Subsequent Licenses
No Contributor makes additional grants as a result of Your choice to
distribute the Covered Software under a subsequent version of this
License (see Section 10.2) or under the terms of a Secondary License (if
permitted under the terms of Section 3.3).
2.5. Representation
Each Contributor represents that the Contributor believes its
Contributions are its original creation(s) or it has sufficient rights
to grant the rights to its Contributions conveyed by this License.
2.6. Fair Use
This License is not intended to limit any rights You have under
applicable copyright doctrines of fair use, fair dealing, or other
equivalents.
2.7. Conditions
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
in Section 2.1.
3. Responsibilities
-------------------
3.1. Distribution of Source Form
All distribution of Covered Software in Source Code Form, including any
Modifications that You create or to which You contribute, must be under
the terms of this License. You must inform recipients that the Source
Code Form of the Covered Software is governed by the terms of this
License, and how they can obtain a copy of this License. You may not
attempt to alter or restrict the recipients' rights in the Source Code
Form.
3.2. Distribution of Executable Form
If You distribute Covered Software in Executable Form then:
(a) such Covered Software must also be made available in Source Code
Form, as described in Section 3.1, and You must inform recipients of
the Executable Form how they can obtain a copy of such Source Code
Form by reasonable means in a timely manner, at a charge no more
than the cost of distribution to the recipient; and
(b) You may distribute such Executable Form under the terms of this
License, or sublicense it under different terms, provided that the
license for the Executable Form does not attempt to limit or alter
the recipients' rights in the Source Code Form under this License.
3.3. Distribution of a Larger Work
You may create and distribute a Larger Work under terms of Your choice,
provided that You also comply with the requirements of this License for
the Covered Software. If the Larger Work is a combination of Covered
Software with a work governed by one or more Secondary Licenses, and the
Covered Software is not Incompatible With Secondary Licenses, this
License permits You to additionally distribute such Covered Software
under the terms of such Secondary License(s), so that the recipient of
the Larger Work may, at their option, further distribute the Covered
Software under the terms of either this License or such Secondary
License(s).
3.4. Notices
You may not remove or alter the substance of any license notices
(including copyright notices, patent notices, disclaimers of warranty,
or limitations of liability) contained within the Source Code Form of
the Covered Software, except that You may alter any license notices to
the extent required to remedy known factual inaccuracies.
3.5. Application of Additional Terms
You may choose to offer, and to charge a fee for, warranty, support,
indemnity or liability obligations to one or more recipients of Covered
Software. However, You may do so only on Your own behalf, and not on
behalf of any Contributor. You must make it absolutely clear that any
such warranty, support, indemnity, or liability obligation is offered by
You alone, and You hereby agree to indemnify every Contributor for any
liability incurred by such Contributor as a result of warranty, support,
indemnity or liability terms You offer. You may include additional
disclaimers of warranty and limitations of liability specific to any
jurisdiction.
4. Inability to Comply Due to Statute or Regulation
---------------------------------------------------
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Software due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect. Such description must
be placed in a text file included with all distributions of the Covered
Software under this License. Except to the extent prohibited by statute
or regulation, such description must be sufficiently detailed for a
recipient of ordinary skill to be able to understand it.
5. Termination
--------------
5.1. The rights granted under this License will terminate automatically
if You fail to comply with any of its terms. However, if You become
compliant, then the rights granted under this License from a particular
Contributor are reinstated (a) provisionally, unless and until such
Contributor explicitly and finally terminates Your grants, and (b) on an
ongoing basis, if such Contributor fails to notify You of the
non-compliance by some reasonable means prior to 60 days after You have
come back into compliance. Moreover, Your grants from a particular
Contributor are reinstated on an ongoing basis if such Contributor
notifies You of the non-compliance by some reasonable means, this is the
first time You have received notice of non-compliance with this License
from such Contributor, and You become compliant prior to 30 days after
Your receipt of the notice.
5.2. If You initiate litigation against any entity by asserting a patent
infringement claim (excluding declaratory judgment actions,
counter-claims, and cross-claims) alleging that a Contributor Version
directly or indirectly infringes any patent, then the rights granted to
You by any and all Contributors for the Covered Software under Section
2.1 of this License shall terminate.
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
end user license agreements (excluding distributors and resellers) which
have been validly granted by You or Your distributors under this License
prior to termination shall survive termination.
************************************************************************
* *
* 6. Disclaimer of Warranty *
* ------------------------- *
* *
* Covered Software is provided under this License on an "as is" *
* basis, without warranty of any kind, either expressed, implied, or *
* statutory, including, without limitation, warranties that the *
* Covered Software is free of defects, merchantable, fit for a *
* particular purpose or non-infringing. The entire risk as to the *
* quality and performance of the Covered Software is with You. *
* Should any Covered Software prove defective in any respect, You *
* (not any Contributor) assume the cost of any necessary servicing, *
* repair, or correction. This disclaimer of warranty constitutes an *
* essential part of this License. No use of any Covered Software is *
* authorized under this License except under this disclaimer. *
* *
************************************************************************
************************************************************************
* *
* 7. Limitation of Liability *
* -------------------------- *
* *
* Under no circumstances and under no legal theory, whether tort *
* (including negligence), contract, or otherwise, shall any *
* Contributor, or anyone who distributes Covered Software as *
* permitted above, be liable to You for any direct, indirect, *
* special, incidental, or consequential damages of any character *
* including, without limitation, damages for lost profits, loss of *
* goodwill, work stoppage, computer failure or malfunction, or any *
* and all other commercial damages or losses, even if such party *
* shall have been informed of the possibility of such damages. This *
* limitation of liability shall not apply to liability for death or *
* personal injury resulting from such party's negligence to the *
* extent applicable law prohibits such limitation. Some *
* jurisdictions do not allow the exclusion or limitation of *
* incidental or consequential damages, so this exclusion and *
* limitation may not apply to You. *
* *
************************************************************************
8. Litigation
-------------
Any litigation relating to this License may be brought only in the
courts of a jurisdiction where the defendant maintains its principal
place of business and such litigation shall be governed by laws of that
jurisdiction, without reference to its conflict-of-law provisions.
Nothing in this Section shall prevent a party's ability to bring
cross-claims or counter-claims.
9. Miscellaneous
----------------
This License represents the complete agreement concerning the subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. Any law or regulation which provides
that the language of a contract shall be construed against the drafter
shall not be used to construe this License against a Contributor.
10. Versions of the License
---------------------------
10.1. New Versions
Mozilla Foundation is the license steward. Except as provided in Section
10.3, no one other than the license steward has the right to modify or
publish new versions of this License. Each version will be given a
distinguishing version number.
10.2. Effect of New Versions
You may distribute the Covered Software under the terms of the version
of the License under which You originally received the Covered Software,
or under the terms of any subsequent version published by the license
steward.
10.3. Modified Versions
If you create software not governed by this License, and you want to
create a new license for such software, you may create and use a
modified version of this License if you rename the license and remove
any references to the name of the license steward (except to note that
such modified license differs from this License).
10.4. Distributing Source Code Form that is Incompatible With Secondary
Licenses
If You choose to distribute Source Code Form that is Incompatible With
Secondary Licenses under the terms of this version of the License, the
notice described in Exhibit B of this License must be attached.
Exhibit A - Source Code Form License Notice
-------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at https://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
You may add additional accurate notices of copyright ownership.
Exhibit B - "Incompatible With Secondary Licenses" Notice
---------------------------------------------------------
This Source Code Form is "Incompatible With Secondary Licenses", as
defined by the Mozilla Public License, v. 2.0.
+6
View File
@@ -0,0 +1,6 @@
#!/bin/bash
#This script is currently a simple tool which passes the given command (and any arguments) to taskset
#This may expand later to perform more intelligent mapping, and, possibly, to schedule cyclic execution of compiled tasks
#To isolate to one or more target cores, use taskset directly, e.g. taskset -c 1,3,5-8 <your command>
icpus="$(cat /sys/devices/system/cpu/isolated)"
taskset -c "${icpus}" $@
@@ -0,0 +1,30 @@
#This is a handful of bash helper scripts designed for PLC-OS
#lat-plot: realtime performance testing
#rt-run: run tasks on isolated cores
LICENSE = "MPL-2.0"
LIC_FILES_CHKSUM = "file://LICENSE;md5=45dcfba70224e877d087016b142b3672"
SRC_URI = " \
file://lat-plot \
file://rt-run \
"
PV = "0.1"
S = '${UNPACKDIR}'
TARGET_CC_ARCH += " ${LDFLAGS}"
RDEPENDS:${PN} += " util-linux bash rt-tests gnuplot stress"
FILES:${PN} += " \
/usr/bin/lat-plot \
/usr/bin/rt-run \
"
FILES:${PN}-dev = " "
FILES:${PN}-dbg = " "
do_install () {
install -d ${D}/usr/bin
install -m 755 ${UNPACKDIR}/lat-plot ${D}/usr/bin/lat-plot
install -m 755 ${UNPACKDIR}/rt-run ${D}/usr/bin/rt-run
}