added my Recipes
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "OpenSTLinux core image."
|
||||
LICENSE = "Proprietary"
|
||||
|
||||
include recipes-st/images/st-image.inc
|
||||
|
||||
inherit core-image
|
||||
|
||||
IMAGE_LINGUAS = "en-us"
|
||||
|
||||
IMAGE_FEATURES += "\
|
||||
package-management \
|
||||
ssh-server-dropbear \
|
||||
"
|
||||
|
||||
#
|
||||
# INSTALL addons
|
||||
#
|
||||
CORE_IMAGE_EXTRA_INSTALL += " \
|
||||
resize-helper \
|
||||
\
|
||||
packagegroup-framework-core-base \
|
||||
packagegroup-framework-tools-base \
|
||||
\
|
||||
${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'packagegroup-optee-core', '', d)} \
|
||||
${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'packagegroup-optee-test', '', d)} \
|
||||
"
|
||||
@@ -0,0 +1,43 @@
|
||||
SUMMARY = "INITRD able to resize the mmc paritions"
|
||||
LICENSE = "MIT"
|
||||
|
||||
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
|
||||
inherit core-image
|
||||
|
||||
IMAGE_ROOTFS_EXTRA_SPACE = "0"
|
||||
|
||||
# Reset IMAGE_LINGUAS to empty
|
||||
IMAGE_LINGUAS = ""
|
||||
|
||||
# Disable partition image for InitRD image to avoid circular dependancy
|
||||
# If we keep enable this feature, when building the InitRD image a dependancy
|
||||
# will be added for the completion of bootfs image while we're just expecting
|
||||
# to add the InitRD inside bootfs...
|
||||
ENABLE_PARTITIONS_IMAGE = "0"
|
||||
|
||||
# Disable flashlayout generation for this particular image as this is supposed
|
||||
# to be done only for complete image (bootloader binaries, bootfs, rootfs...))
|
||||
ENABLE_FLASHLAYOUT_CONFIG = "0"
|
||||
|
||||
# Disable image license summary generation for this particular image as this is
|
||||
# supposed to be done only for complete image
|
||||
ENABLE_IMAGE_LICENSE_SUMMARY = "0"
|
||||
ENABLE_IMAGE_CVE_SUMMARY = "0"
|
||||
|
||||
# Disable generation of multi volume ubifs for this particular image as this is
|
||||
# supposed to be done only for complete image
|
||||
ENABLE_MULTIVOLUME_UBI = "0"
|
||||
|
||||
PACKAGE_INSTALL = " \
|
||||
busybox \
|
||||
e2fsprogs \
|
||||
e2fsprogs-e2fsck \
|
||||
e2fsprogs-resize2fs \
|
||||
e2fsprogs-tune2fs \
|
||||
e2fsprogs-mke2fs \
|
||||
initramfs-module-rootfs \
|
||||
initramfs-module-udev \
|
||||
initrd-boot \
|
||||
"
|
||||
|
||||
NO_RECOMMENDATIONS = "1"
|
||||
@@ -0,0 +1,46 @@
|
||||
SUMMARY = "OpenSTLinux weston image with basic Wayland support (if enable in distro)."
|
||||
LICENSE = "Proprietary"
|
||||
|
||||
include recipes-st/images/st-image.inc
|
||||
|
||||
inherit core-image features_check
|
||||
|
||||
# let's make sure we have a good image...
|
||||
REQUIRED_DISTRO_FEATURES = "wayland"
|
||||
|
||||
IMAGE_LINGUAS = "en-us"
|
||||
|
||||
IMAGE_FEATURES += "\
|
||||
splash \
|
||||
package-management \
|
||||
ssh-server-dropbear \
|
||||
hwcodecs \
|
||||
tools-profile \
|
||||
eclipse-debug \
|
||||
"
|
||||
|
||||
#
|
||||
# INSTALL addons
|
||||
#
|
||||
CORE_IMAGE_EXTRA_INSTALL += " \
|
||||
resize-helper \
|
||||
\
|
||||
packagegroup-framework-core-base \
|
||||
packagegroup-framework-tools-base \
|
||||
\
|
||||
packagegroup-framework-core \
|
||||
packagegroup-framework-tools \
|
||||
\
|
||||
packagegroup-framework-core-extra \
|
||||
\
|
||||
${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'packagegroup-optee-core', '', d)} \
|
||||
${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'packagegroup-optee-test', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('COMBINED_FEATURES', 'tpm2', 'packagegroup-security-tpm2', '', d)} \
|
||||
\
|
||||
packagegroup-st-demo \
|
||||
"
|
||||
|
||||
# NOTE:
|
||||
# packagegroup-st-demo are installed on rootfs to populate the package
|
||||
# database.
|
||||
50
meta-st/meta-st-openstlinux/recipes-st/images/st-image.inc
Normal file
50
meta-st/meta-st-openstlinux/recipes-st/images/st-image.inc
Normal file
@@ -0,0 +1,50 @@
|
||||
LICENSE = "Proprietary"
|
||||
LIC_FILES_CHKSUM = "file://${EULA_FILE_ST};md5=${EULA_FILE_ST_MD5SUM}"
|
||||
LIC_FILES_CHKSUM[vardepsexclude] += "EULA_FILE_ST"
|
||||
|
||||
inherit st-image-license-summary
|
||||
inherit st-sdk-license-summary
|
||||
inherit st-image-cve-summary
|
||||
|
||||
|
||||
EULA_FILE_ST ?= "${OPENSTLINUX_BASE}/files/licenses/ST-Proprietary"
|
||||
EULA_FILE_ST_MD5SUM ?= "7cb1e55a9556c7dd1a3cae09db9cc85f"
|
||||
|
||||
image_copy_image_license() {
|
||||
if [ -f ${EULA_FILE_ST} ]; then
|
||||
cp ${EULA_FILE_ST} ${IMGDEPLOYDIR}/${IMAGE_NAME}.license
|
||||
cd ${IMGDEPLOYDIR}; ln -sf ${IMAGE_NAME}.license ${IMAGE_LINK_NAME}.license
|
||||
else
|
||||
bbwarn "Missing 'EULA_FILE_ST' var : no image license copied..."
|
||||
fi
|
||||
}
|
||||
IMAGE_POSTPROCESS_COMMAND:prepend = "image_copy_image_license;"
|
||||
|
||||
sdk_copy_image_license() {
|
||||
mkdir -p ${SDKDEPLOYDIR}
|
||||
if [ -f ${EULA_FILE_ST} ]; then
|
||||
cp ${EULA_FILE_ST} ${SDKDEPLOYDIR}/${TOOLCHAIN_OUTPUTNAME}.license
|
||||
else
|
||||
bbwarn "Missing 'EULA_FILE_ST' var : no image license copied..."
|
||||
fi
|
||||
}
|
||||
SDK_POSTPROCESS_COMMAND:prepend = "sdk_copy_image_license;"
|
||||
|
||||
LSB_RELASE_TIMESTAMP = "${DATE}-${TIME}"
|
||||
LSB_RELASE_TIMESTAMP[vardepsexclude] += "DATE"
|
||||
LSB_RELASE_TIMESTAMP[vardepsexclude] += "TIME"
|
||||
|
||||
update_lsbreleasedate() {
|
||||
if [ -f ${IMAGE_ROOTFS}${sysconfdir}/lsb-release ]; then
|
||||
sed -i 's/^DISTRIB_RELEASE=\(.*\)-snapshot-.*$/DISTRIB_RELEASE=\1-snapshot-'"${LSB_RELASE_TIMESTAMP}"'/' ${IMAGE_ROOTFS}${sysconfdir}/lsb-release
|
||||
sed -i 's/^DISTRIB_DESCRIPTION=\(.*\)-snapshot-.*\"/DISTRIB_DESCRIPTION=\1-snapshot-'"${LSB_RELASE_TIMESTAMP}"'\"/' ${IMAGE_ROOTFS}${sysconfdir}/lsb-release
|
||||
fi
|
||||
}
|
||||
ROOTFS_POSTPROCESS_COMMAND:append = "update_lsbreleasedate;"
|
||||
|
||||
zap_empty_weston_password () {
|
||||
if [ -e ${IMAGE_ROOTFS}/etc/shadow ]; then
|
||||
sed -i 's%^weston:!:%weston::%' ${IMAGE_ROOTFS}/etc/shadow
|
||||
fi
|
||||
}
|
||||
ROOTFS_POSTPROCESS_COMMAND:append = "zap_empty_weston_password;"
|
||||
@@ -0,0 +1,69 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||||
|
||||
resize_enabled() {
|
||||
return 0
|
||||
}
|
||||
|
||||
resize_run() {
|
||||
ln -s /proc/mounts /etc/mtab
|
||||
|
||||
if [ -n "$ROOTFS_DIR" ]; then
|
||||
if [ ! -e $ROOTFS_DIR/etc/.resized ]
|
||||
then
|
||||
# check command line to now storage device used
|
||||
if [ -n "$bootparam_root" ]; then
|
||||
debug "No e2fs compatible filesystem has been mounted, mounting $bootparam_root..."
|
||||
|
||||
if [ "`echo ${bootparam_root} | cut -c1-5`" = "UUID=" ]; then
|
||||
root_uuid=`echo $bootparam_root | cut -c6-`
|
||||
bootparam_root="/dev/disk/by-uuid/$root_uuid"
|
||||
elif [ "`echo ${bootparam_root} | cut -c1-9`" = "PARTUUID=" ]; then
|
||||
root_partuuid=`echo $bootparam_root | cut -c10-`
|
||||
bootparam_root="/dev/disk/by-partuuid/$root_partuuid"
|
||||
elif [ "`echo ${bootparam_root} | cut -c1-10`" = "PARTLABEL=" ]; then
|
||||
root_partlabel=`echo $bootparam_root | cut -c11-`
|
||||
bootparam_root="/dev/disk/by-partlabel/$root_partlabel"
|
||||
elif [ "`echo ${bootparam_root} | cut -c1-6`" = "LABEL=" ]; then
|
||||
root_label=`echo $bootparam_root | cut -c7-`
|
||||
bootparam_root="/dev/disk/by-label/$root_label"
|
||||
fi
|
||||
if [ -e "$bootparam_root" ]; then
|
||||
bootparam_root_device=$(busybox readlink $bootparam_root -f)
|
||||
j=$(echo $bootparam_root_device | sed "s|/dev/mmcblk\([0-1]\)p.*|\1|")
|
||||
for i in 3 4 5 6 7 8 9 10 11 12 13 14 15 16;
|
||||
do
|
||||
DEVICE="/dev/mmcblk"$j"p"$i
|
||||
if [ -e $DEVICE ]; then
|
||||
label=$(/sbin/e2label $DEVICE 2> /dev/null)
|
||||
if [ $? -eq 0 ]; then
|
||||
case $label in
|
||||
user*)
|
||||
echo "RESIZE USERFS [$DEVICE]"
|
||||
/sbin/e2fsck -f -y -c -C 0 $DEVICE && /sbin/resize2fs $DEVICE
|
||||
;;
|
||||
root*)
|
||||
echo "RESIZE ROOTFS [$DEVICE]"
|
||||
/sbin/resize2fs $DEVICE
|
||||
;;
|
||||
vendor*)
|
||||
echo "RESIZE VENDORFS [$DEVICE]"
|
||||
/sbin/e2fsck -f -y -c -C 0 $DEVICE && /sbin/resize2fs $DEVICE
|
||||
;;
|
||||
boot*)
|
||||
echo "RESIZE BOOTFS [$DEVICE]"
|
||||
/sbin/e2fsck -f -y -c -C 0 $DEVICE && /sbin/resize2fs $DEVICE
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
done
|
||||
touch $ROOTFS_DIR/etc/.resized
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
}
|
||||
15
meta-st/meta-st-openstlinux/recipes-st/initrd/initrd-boot.bb
Normal file
15
meta-st/meta-st-openstlinux/recipes-st/initrd/initrd-boot.bb
Normal file
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "Resize init script"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
SRC_URI = "file://init-resize.sh"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/init.d
|
||||
install -m 0755 ${WORKDIR}/init-resize.sh ${D}/init.d/95-resize
|
||||
}
|
||||
|
||||
inherit allarch
|
||||
|
||||
FILES:${PN} += "/init.d/"
|
||||
44
meta-st/meta-st-openstlinux/recipes-st/initrd/st-initrd.bb
Normal file
44
meta-st/meta-st-openstlinux/recipes-st/initrd/st-initrd.bb
Normal file
@@ -0,0 +1,44 @@
|
||||
SUMMARY = "ST InitRD installation package for ${INITRD_IMAGE_ALL} image(s)"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
# We provide an InitRD specific to machine
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit deploy
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
# Set InitRD image list
|
||||
INITRD_IMAGE ??= ""
|
||||
INITRD_IMAGE_ALL += "${INITRD_IMAGE}"
|
||||
|
||||
do_install() {
|
||||
if [ -z "${INITRD_IMAGE_ALL}" ]; then
|
||||
bbnote "No InitRD file set"
|
||||
return
|
||||
fi
|
||||
|
||||
for img in ${INITRD_IMAGE_ALL}; do
|
||||
INITRD_IMAGE_FILE=$(find ${DEPLOY_DIR_IMAGE} -name ${img}*-${MACHINE}.${INITRAMFS_FSTYPES})
|
||||
if [ -e "${INITRD_IMAGE_FILE}" ]; then
|
||||
bbnote "Copying ${img} InitRD file into ./boot/ ..."
|
||||
install -d ${D}/boot
|
||||
install -m 0644 ${INITRD_IMAGE_FILE} ${D}/boot/${img}
|
||||
else
|
||||
bbfatal "Could not find ${img}*-${MACHINE}.${INITRAMFS_FSTYPES} image file in ${DEPLOY_DIR_IMAGE} folder"
|
||||
fi
|
||||
done
|
||||
}
|
||||
do_install[depends] += "${@' '.join([i + ':do_image_complete' for i in d.getVar('INITRD_IMAGE_ALL').split()])}"
|
||||
|
||||
do_deploy() {
|
||||
install -d ${DEPLOYDIR}
|
||||
echo "${SUMMARY}" > ${DEPLOYDIR}/${PN}-${DISTRO}-${MACHINE}
|
||||
}
|
||||
addtask deploy before do_build after do_compile
|
||||
|
||||
FILES:${PN} += "/boot"
|
||||
|
||||
# Provide empty package to allow direct use on image side even with none InitRD
|
||||
ALLOW_EMPTY:${PN} = "1"
|
||||
@@ -0,0 +1,40 @@
|
||||
SUMMARY = "Framework core base components for display and mutlimedia"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = "\
|
||||
packagegroup-framework-core-base \
|
||||
packagegroup-framework-core-base-display \
|
||||
packagegroup-framework-core-base-mm \
|
||||
packagegroup-framework-core-base-fs \
|
||||
"
|
||||
|
||||
# Manage to provide all framework core base packages with overall one
|
||||
RDEPENDS:packagegroup-framework-core-base = "\
|
||||
packagegroup-framework-core-base-display \
|
||||
packagegroup-framework-core-base-mm \
|
||||
packagegroup-framework-core-base-fs \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-core-base-display = "Framework core base components for display"
|
||||
RDEPENDS:packagegroup-framework-core-base-display = "\
|
||||
libdrm \
|
||||
libdrm-tests \
|
||||
\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'libsdl2', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-core-base-mm = "Framework core base components for multimedia"
|
||||
RDEPENDS:packagegroup-framework-core-base-mm = "\
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-core-base-fs = "Framework core base components for filesystem"
|
||||
RDEPENDS:packagegroup-framework-core-base-fs = "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-mount-partitions', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'userfs-cleanup-package', '', d)} \
|
||||
"
|
||||
@@ -0,0 +1,55 @@
|
||||
SUMMARY = "Framework core extra components for display and mutlimedia"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = "\
|
||||
packagegroup-framework-core-extra \
|
||||
packagegroup-framework-core-extra-display \
|
||||
packagegroup-framework-core-extra-mm \
|
||||
"
|
||||
|
||||
# Manage to provide all framework core extra packages with overall one
|
||||
RDEPENDS:packagegroup-framework-core-extra = "\
|
||||
packagegroup-framework-core-extra-display \
|
||||
packagegroup-framework-core-extra-mm \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-core-extra-display = "Framework core extra components for display"
|
||||
RDEPENDS:packagegroup-framework-core-extra-display = "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'weston', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-utils', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'weston-init', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'weston-examples', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'tzdata', '', d)} \
|
||||
${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk+3', '', d)} \
|
||||
${@bb.utils.contains_any('DISTRO_FEATURES', '${GTK3DISTROFEATURES}', 'gtk+3-demo', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'weston-xwayland', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'libx11-locale', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'libx11', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'libxcb', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'libxcursor', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xf86-input-evdev', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xf86-input-mouse', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xf86-input-keyboard', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xclock', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xeyes', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xinput', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xkbcomp', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xorg-minimal-fonts', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xterm', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'kmscube', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-core-extra-mm = "Framework core extra components for multimedia"
|
||||
RDEPENDS:packagegroup-framework-core-extra-mm = "\
|
||||
qrencode \
|
||||
qrenc \
|
||||
"
|
||||
@@ -0,0 +1,36 @@
|
||||
SUMMARY = "Framework core components for display and mutlimedia"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = "\
|
||||
packagegroup-framework-core \
|
||||
packagegroup-framework-core-display \
|
||||
packagegroup-framework-core-mm \
|
||||
"
|
||||
|
||||
# Manage to provide all framework core packages with overall one
|
||||
RDEPENDS:packagegroup-framework-core = "\
|
||||
packagegroup-framework-core-display \
|
||||
packagegroup-framework-core-mm \
|
||||
infos-openstlinux \
|
||||
gpio-udev \
|
||||
${@bb.utils.contains('ST_DEBUG_TRACE','0', 'notrace', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-core-display = "Framework core components for display"
|
||||
RDEPENDS:packagegroup-framework-core-display = "\
|
||||
fb-test \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-core-mm = "Framework core components for multimedia"
|
||||
RDEPENDS:packagegroup-framework-core-mm = "\
|
||||
tiff \
|
||||
libv4l \
|
||||
rc-keymaps \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'gstreamer', 'packagegroup-gstreamer1-0', '', d)} \
|
||||
"
|
||||
@@ -0,0 +1,80 @@
|
||||
SUMMARY = "Framework tools base components (core,kernel,network,audio,ui,python2,python3)"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = "\
|
||||
packagegroup-framework-tools-base \
|
||||
packagegroup-framework-tools-base-core \
|
||||
packagegroup-framework-tools-base-kernel \
|
||||
packagegroup-framework-tools-base-network \
|
||||
packagegroup-framework-tools-base-audio \
|
||||
packagegroup-framework-tools-base-ui \
|
||||
packagegroup-framework-tools-base-python3 \
|
||||
"
|
||||
|
||||
# Manage to provide all framework tools base packages with overall one
|
||||
RDEPENDS:packagegroup-framework-tools-base = "\
|
||||
packagegroup-framework-tools-base-core \
|
||||
packagegroup-framework-tools-base-kernel \
|
||||
packagegroup-framework-tools-base-network \
|
||||
packagegroup-framework-tools-base-audio \
|
||||
packagegroup-framework-tools-base-ui \
|
||||
packagegroup-framework-tools-base-python3 \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-base-core = "Framework tools base components for core"
|
||||
RDEPENDS:packagegroup-framework-tools-base-core = "\
|
||||
ckermit \
|
||||
ntp \
|
||||
coreutils \
|
||||
libiio-iiod \
|
||||
libiio-tests \
|
||||
lrzsz \
|
||||
libgpiod \
|
||||
libgpiod-tools \
|
||||
openssl-engines \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'usbgadget', 'usbotg-gadget-config', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-base-kernel = "Framework tools base components for kernel"
|
||||
RDEPENDS:packagegroup-framework-tools-base-kernel = "\
|
||||
can-utils \
|
||||
i2c-tools \
|
||||
strace \
|
||||
usbutils \
|
||||
\
|
||||
evtest \
|
||||
memtester \
|
||||
mtd-utils \
|
||||
v4l-utils \
|
||||
util-linux \
|
||||
util-linux-fdisk\
|
||||
pciutils \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-base-network = "Framework tools base components for network"
|
||||
RDEPENDS:packagegroup-framework-tools-base-network = "\
|
||||
ethtool \
|
||||
iproute2 \
|
||||
curl \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-base-audio = "Framework tools base components for audio"
|
||||
RDEPENDS:packagegroup-framework-tools-base-audio = "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'libasound alsa-conf', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa-utils', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa-plugins', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-base-ui = "Framework tools base components for ui"
|
||||
RDEPENDS:packagegroup-framework-tools-base-ui = "\
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-base-python3 = "Framework tools base components for python3"
|
||||
RDEPENDS:packagegroup-framework-tools-base-python3 = "\
|
||||
"
|
||||
@@ -0,0 +1,98 @@
|
||||
SUMMARY = "Framework tools extra components (core,kernel,network,audio,ui,python3)"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = "\
|
||||
packagegroup-framework-tools-extra \
|
||||
packagegroup-framework-tools-extra-core \
|
||||
packagegroup-framework-tools-extra-kernel \
|
||||
packagegroup-framework-tools-extra-network \
|
||||
packagegroup-framework-tools-extra-audio \
|
||||
packagegroup-framework-tools-extra-ui \
|
||||
packagegroup-framework-tools-extra-python3 \
|
||||
"
|
||||
|
||||
# Manage to provide all framework tools extra packages with overall one
|
||||
RDEPENDS:packagegroup-framework-tools-extra = "\
|
||||
packagegroup-framework-tools-extra-core \
|
||||
packagegroup-framework-tools-extra-kernel \
|
||||
packagegroup-framework-tools-extra-network \
|
||||
packagegroup-framework-tools-extra-audio \
|
||||
packagegroup-framework-tools-extra-ui \
|
||||
packagegroup-framework-tools-extra-python3 \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-extra-core = "Framework tools extra components for core"
|
||||
RDEPENDS:packagegroup-framework-tools-extra-core = "\
|
||||
tslib-calibrate \
|
||||
pointercal \
|
||||
\
|
||||
acl \
|
||||
bzip2 \
|
||||
cronie \
|
||||
ltrace \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-extra-kernel = "Framework tools extra components for kernel"
|
||||
RDEPENDS:packagegroup-framework-tools-extra-kernel = "\
|
||||
powertop \
|
||||
fio \
|
||||
\
|
||||
lmbench \
|
||||
nbench-byte \
|
||||
iozone3 \
|
||||
bonnie++ \
|
||||
bonnie-scripts \
|
||||
ltp \
|
||||
elfutils \
|
||||
formfactor \
|
||||
\
|
||||
lirc \
|
||||
\
|
||||
dhrystone \
|
||||
"
|
||||
|
||||
RDEPENDS:packagegroup-framework-tools-extra-kernel:append:arm = "\
|
||||
cpuburn-arm \
|
||||
"
|
||||
RDEPENDS:packagegroup-framework-tools-extra-kernel:append:aarch64 = "\
|
||||
cpuburn-arm \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-extra-network = "Framework tools extra components for network"
|
||||
RDEPENDS:packagegroup-framework-tools-extra-network = "\
|
||||
iperf3 \
|
||||
netperf \
|
||||
bridge-utils \
|
||||
vlan \
|
||||
libnl \
|
||||
connman \
|
||||
connman-client \
|
||||
net-snmp \
|
||||
\
|
||||
neard \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-extra-audio = "Framework tools extra components for audio"
|
||||
RDEPENDS:packagegroup-framework-tools-extra-audio = "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa-utils-aplay', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-extra-ui = "Framework tools extra components for ui"
|
||||
RDEPENDS:packagegroup-framework-tools-extra-ui = "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11perf', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'gtkperf', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-extra-python3 = "Framework tools extra components for python3"
|
||||
RDEPENDS:packagegroup-framework-tools-extra-python3 = "\
|
||||
python3-pip \
|
||||
python3-pytest \
|
||||
python3-lxml \
|
||||
python3-setuptools \
|
||||
"
|
||||
@@ -0,0 +1,125 @@
|
||||
SUMMARY = "Framework tools components (core,kernel,network,audio,ui,python3)"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
PACKAGES = "\
|
||||
packagegroup-framework-tools \
|
||||
packagegroup-framework-tools-core \
|
||||
packagegroup-framework-tools-kernel \
|
||||
packagegroup-framework-tools-network \
|
||||
packagegroup-framework-tools-audio \
|
||||
packagegroup-framework-tools-ui \
|
||||
packagegroup-framework-tools-python3 \
|
||||
"
|
||||
|
||||
# Manage to provide all framework tools packages with overall one
|
||||
RDEPENDS:packagegroup-framework-tools = "\
|
||||
packagegroup-framework-tools-core \
|
||||
packagegroup-framework-tools-kernel \
|
||||
packagegroup-framework-tools-network \
|
||||
packagegroup-framework-tools-audio \
|
||||
packagegroup-framework-tools-ui \
|
||||
packagegroup-framework-tools-python3 \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-core = "Framework tools components for core"
|
||||
RDEPENDS:packagegroup-framework-tools-core = "\
|
||||
grep \
|
||||
util-linux \
|
||||
util-linux-lscpu\
|
||||
procps \
|
||||
kbd \
|
||||
file \
|
||||
bc \
|
||||
e2fsprogs \
|
||||
e2fsprogs-resize2fs \
|
||||
sysstat \
|
||||
minicom \
|
||||
systemtap \
|
||||
gptfdisk \
|
||||
rng-tools \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'rng-tools-service', '', d)} \
|
||||
apt-openstlinux \
|
||||
bzip2 \
|
||||
tar \
|
||||
wget \
|
||||
xz \
|
||||
cracklib \
|
||||
db \
|
||||
sqlite3 \
|
||||
rt-tests \
|
||||
stm32-ddr-tools \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-kernel = "Framework tools components for kernel"
|
||||
RDEPENDS:packagegroup-framework-tools-kernel = "\
|
||||
cpufrequtils \
|
||||
sysfsutils \
|
||||
dosfstools \
|
||||
mmc-utils \
|
||||
blktool \
|
||||
mtd-utils-ubifs \
|
||||
sysprof \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-network = "Framework tools components for network"
|
||||
RDEPENDS:packagegroup-framework-tools-network = "\
|
||||
tcpdump \
|
||||
packagegroup-core-full-cmdline-extended \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'iw', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'wpa-supplicant', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'hostapd', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wifi', 'wireless-regdb-static', '', d)} \
|
||||
openssh-sftp \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd-networkd-configuration', '', d)} \
|
||||
usbip uhubctl \
|
||||
bridge-utils \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-audio = "Framework tools components for audio"
|
||||
RDEPENDS:packagegroup-framework-tools-audio = "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio-server', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio-misc', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio-module-combine-sink', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio bluetooth', 'pulseaudio-module-bluetooth-discover', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio bluetooth', 'pulseaudio-module-bluetooth-policy', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio bluetooth', 'pulseaudio-module-bluez5-device', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio bluetooth', 'pulseaudio-module-bluez5-discover', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-ui = "Framework tools components for ui"
|
||||
RDEPENDS:packagegroup-framework-tools-ui = "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xvinfo', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'gplv3', 'glmark2', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'gplv3', 'netdata', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'gplv3', 'lmsensors-libsensors lmsensors-sensors', '', d)} \
|
||||
"
|
||||
|
||||
SUMMARY:packagegroup-framework-tools-python3 = "Framework tools components for python3"
|
||||
RDEPENDS:packagegroup-framework-tools-python3 = "\
|
||||
python3-datetime \
|
||||
python3-dateutil \
|
||||
python3-distutils \
|
||||
python3-email \
|
||||
python3-fcntl \
|
||||
python3-io \
|
||||
python3-logging \
|
||||
python3-misc \
|
||||
python3-numbers \
|
||||
python3-pycairo \
|
||||
python3-pygobject \
|
||||
python3-pyparsing \
|
||||
python3-shell \
|
||||
python3-stringold \
|
||||
python3-threading \
|
||||
python3-unittest \
|
||||
python3-pyyaml \
|
||||
python3-pexpect \
|
||||
python3-evdev \
|
||||
"
|
||||
@@ -0,0 +1,23 @@
|
||||
SUMMARY = "Gstreamer 1.0 components"
|
||||
LICENSE = "LGPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-2.0-or-later;md5=6d2d9952d88b50a51a5c73dc431d06c7"
|
||||
|
||||
PACKAGE_ARCH = "${TUNE_PKGARCH}"
|
||||
|
||||
inherit packagegroup
|
||||
|
||||
PACKAGES = "\
|
||||
packagegroup-gstreamer1-0 \
|
||||
"
|
||||
|
||||
PROVIDES = "${PACKAGES}"
|
||||
RDEPENDS:packagegroup-gstreamer1-0 = "\
|
||||
gstreamer1.0-plugins-base-meta \
|
||||
gstreamer1.0-plugins-base \
|
||||
gstreamer1.0-plugins-good-meta \
|
||||
gstreamer1.0-plugins-bad-meta \
|
||||
gstreamer1.0-plugins-ugly-meta \
|
||||
\
|
||||
gstreamer1.0-libav \
|
||||
gstreamer1.0-rtsp-server-meta \
|
||||
"
|
||||
@@ -0,0 +1,15 @@
|
||||
RDEPENDS:${PN} += "\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'demo-launcher', '', d)} \
|
||||
\
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'demo-application-netdata-hotspot', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'demo-application-camera', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'demo-application-video', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'demo-application-3d-cube', '', d)} \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'demo-application-bluetooth', '', d)} \
|
||||
"
|
||||
|
||||
AI_DEMO_APPLICATION = "${@bb.utils.contains('MACHINE_FEATURES', 'm4copro', 'ai-hand-char-reco-launcher', '', d)} "
|
||||
RDEPENDS:${PN}:append:stm32mpcommon = " \
|
||||
${@bb.utils.contains('DISTRO_FEATURES', 'wayland', '${AI_DEMO_APPLICATION}', '', d)} \
|
||||
"
|
||||
|
||||
Reference in New Issue
Block a user