Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 5 additions & 15 deletions recipes-core/base-files/base-files_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
FILESEXTRAPATHS:prepend:oel := "${THISDIR}/${PN}:"

SRC_URI += "file://profile.d_locale.sh"
SRC_URI:append:oel = " file://profile.d_locale.sh"

DEFAULT_SYSTEM_LOCALE ??= ""

do_generate_locale_conf() {
if [ "${@d.getVar('DEFAULT_SYSTEM_LOCALE', True)}" != "" ]; then
cat > ${WORKDIR}/locale.conf <<EOF
LANG=${DEFAULT_SYSTEM_LOCALE}
EOF
fi
}
addtask do_generate_locale_conf after do_compile before do_install

do_install:append() {
do_install:append:oel() {
install -Dm 0644 ${S}/profile.d_locale.sh ${D}${sysconfdir}/profile.d/locale.sh

if [ "${@d.getVar('DEFAULT_SYSTEM_LOCALE', True)}" != "" ]; then
install -Dm 0644 ${WORKDIR}/locale.conf ${D}${sysconfdir}/locale.conf
install -d ${D}${sysconfdir}
printf 'LANG=%s\n' "${DEFAULT_SYSTEM_LOCALE}" > ${D}${sysconfdir}/locale.conf
fi
}
4 changes: 2 additions & 2 deletions recipes-core/busybox/busybox_%.bbappend
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
SRC_URI:append:oel = "\
FILESEXTRAPATHS:prepend:oel := "${THISDIR}/files:"
SRC_URI:append:oel = " \
file://setsid.cfg \
file://resize.cfg \
file://pidof.cfg \
Expand Down
21 changes: 14 additions & 7 deletions recipes-core/easysplash/easysplash-animation-default_2.0.0.bb
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
SUMMARY = "Default EasySplash Animation intended for general use"
DESCRIPTION = "Default EasySplash animation assets intended for general use."
HOMEPAGE = "https://github.com/OSSystems/EasySplash"
BUGTRACKER = "https://github.com/OSSystems/EasySplash/issues"
SECTION = "graphics"
CVE_PRODUCT = "easysplash"
LICENSE = "CLOSED"

require easysplash-common-2.0.inc

inherit easysplash-animation
inherit easysplash_animation

do_configure[noexec] = "1"
do_compile[noexec] = "1"
Expand All @@ -21,15 +26,17 @@ do_install() {

ALTERNATIVE_PRIORITY[animation] = "10"

RDEPENDS:${PN} += " \
RDEPENDS:${PN} += "\
gstreamer1.0-libav \
gstreamer1.0-plugins-base-playback \
gstreamer1.0-plugins-good-isomp4 \
gstreamer1.0-plugins-bad-kms \
gstreamer1.0-plugins-bad-camerabin \
gstreamer1.0-plugins-good-videofilter \
gstreamer1.0-plugins-bad-kms \
gstreamer1.0-plugins-base-playback \
gstreamer1.0-plugins-base-typefindfunctions \
gstreamer1.0-plugins-base-videoconvertscale \
gstreamer1.0-plugins-good-deinterlace \
gstreamer1.0-plugins-good-isomp4 \
gstreamer1.0-plugins-good-multifile \
gstreamer1.0-plugins-base-typefindfunctions \
gstreamer1.0-plugins-good-videofilter \
"

BBCLASSEXTEND = ""
21 changes: 14 additions & 7 deletions recipes-core/easysplash/easysplash-animation-ossystems_2.0.0.bb
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
SUMMARY = "O.S. Systems EasySplash Animation"
DESCRIPTION = "O.S. Systems branded EasySplash animation assets."
HOMEPAGE = "https://github.com/OSSystems/EasySplash"
BUGTRACKER = "https://github.com/OSSystems/EasySplash/issues"
SECTION = "graphics"
CVE_PRODUCT = "easysplash"
LICENSE = "CLOSED"

require easysplash-common-2.0.inc

inherit easysplash-animation
inherit easysplash_animation

do_configure[noexec] = "1"
do_compile[noexec] = "1"
Expand All @@ -19,15 +24,17 @@ do_install() {
mv ${D}${base_libdir}/easysplash/ossystems-demo ${D}${base_libdir}/easysplash/${PN}
}

RDEPENDS:${PN} += " \
RDEPENDS:${PN} += "\
gstreamer1.0-libav \
gstreamer1.0-plugins-base-playback \
gstreamer1.0-plugins-good-isomp4 \
gstreamer1.0-plugins-bad-kms \
gstreamer1.0-plugins-bad-camerabin \
gstreamer1.0-plugins-good-videofilter \
gstreamer1.0-plugins-bad-kms \
gstreamer1.0-plugins-base-playback \
gstreamer1.0-plugins-base-typefindfunctions \
gstreamer1.0-plugins-base-videoconvertscale \
gstreamer1.0-plugins-good-deinterlace \
gstreamer1.0-plugins-good-isomp4 \
gstreamer1.0-plugins-good-multifile \
gstreamer1.0-plugins-base-typefindfunctions \
gstreamer1.0-plugins-good-videofilter \
"

BBCLASSEXTEND = ""
14 changes: 3 additions & 11 deletions recipes-core/easysplash/easysplash-common-2.0.inc
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
LICENSE = "Apache-2.0|MIT"
LIC_FILES_CHKSUM = "file://LICENSE-APACHE-2.0;md5=1836efb2eb779966696f473ee8540542"
LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d"

SRCREV = "81a44392efe15fd12ea673f1c828a52e95103eea"
SRCBRANCH = "master"

SRC_URI = "git://github.com/OSSystems/EasySplash.git;branch=${SRCBRANCH};protocol=https"

PV = "2.0.0"

S = "${WORKDIR}/git"
SRC_URI = "git://github.com/OSSystems/EasySplash.git;branch=master;protocol=https"
SRCREV = "81a44392efe15fd12ea673f1c828a52e95103eea"

EXTRA_OEMAKE += " \
EXTRA_OEMAKE += "\
prefix=${prefix} \
sysconfdir=${sysconfdir} \
sbindir=${bindir} \
Expand Down
9 changes: 8 additions & 1 deletion recipes-core/easysplash/easysplash-config_2.0.0.bb
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
SUMMARY = "Easysplash Configuration"
DESCRIPTION = "Default EasySplash configuration installed under /etc/default."
HOMEPAGE = "https://github.com/OSSystems/EasySplash"
BUGTRACKER = "https://github.com/OSSystems/EasySplash/issues"
SECTION = "graphics"
CVE_PRODUCT = "easysplash"
LICENSE = "CLOSED"

SRC_URI += "file://easysplash.default"

do_install() {
install -Dm 0644 ${WORKDIR}/easysplash.default ${D}${sysconfdir}/default/easysplash
install -Dm 0644 ${UNPACKDIR}/easysplash.default ${D}${sysconfdir}/default/easysplash
}

PACKAGE_ARCH = "${MACHINE_ARCH}"

BBCLASSEXTEND = ""
3 changes: 2 additions & 1 deletion recipes-core/easysplash/easysplash-crates.inc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Autogenerated with 'bitbake -c update_crates easysplash'

# from Cargo.lock
SRC_URI += " \
# nooelint: oelint.vars.srcuridomains
SRC_URI += "\
crate://crates.io/anyhow/1.0.59 \
crate://crates.io/argh/0.1.8 \
crate://crates.io/argh_derive/0.1.8 \
Expand Down
40 changes: 25 additions & 15 deletions recipes-core/easysplash/easysplash_2.0.0.bb
Original file line number Diff line number Diff line change
@@ -1,32 +1,38 @@
# Auto-Generated by cargo-bitbake 0.3.16-alpha.0
#

SUMMARY = "Graphical boot animation application"
DESCRIPTION = "EasySplash is an application that runs early the OS boot for showing graphical \
animation while the boot process itself happens in the background. \
The app is built on Rust and binds to GStreamer, so it can run in any backend that supports both."
animation while the boot process itself happens in the background. \
The app is built on Rust and binds to GStreamer, so it can run in any backend that supports both."
HOMEPAGE = "https://github.com/OSSystems/EasySplash"
BUGTRACKER = "https://github.com/OSSystems/EasySplash/issues"
SECTION = "graphics"
CVE_PRODUCT = "easysplash"
LICENSE = "Apache-2.0 | MIT"
LIC_FILES_CHKSUM = "\
file://LICENSE-APACHE-2.0;md5=1836efb2eb779966696f473ee8540542 \
file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d \
"
DEPENDS += "glib-2.0 gstreamer1.0"

require easysplash-common-2.0.inc easysplash-crates.inc
require easysplash-common-2.0.inc
require easysplash-crates.inc

inherit cargo pkgconfig systemd update-rc.d cargo-update-recipe-crates

# If this is git based prefer versioned ones if they exist
# DEFAULT_PREFERENCE = "-1"

CARGO_SRC_DIR = ""
PV:append = ".AUTOINC+724e1c7edc"

LICENSE = "Apache-2.0|MIT"
LIC_FILES_CHKSUM = "file://LICENSE-APACHE-2.0;md5=1836efb2eb779966696f473ee8540542"
LIC_FILES_CHKSUM = "file://LICENSE-MIT;md5=b377b220f43d747efdec40d69fcaa69d"

DEPENDS = "glib-2.0 gstreamer1.0"
PV .= ".AUTOINC+724e1c7edc"

INITSCRIPT_NAME = "${PN}-start"
INITSCRIPT_PARAMS:${PN} = "start 5 S ."

SYSTEMD_SERVICE:${PN} = "${PN}-start.service ${PN}-quit.service"

EXTRA_CARGO_FLAGS += " \
CARGO_BUILD_FLAGS += "\
${@bb.utils.contains('PACKAGECONFIG', 'systemd', '--features systemd', '', d)} \
"

Expand All @@ -35,12 +41,16 @@ PACKAGECONFIG ?= "\
${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
"

PACKAGECONFIG[sysvinit] = "INIT=1, INIT=0,"
PACKAGECONFIG[systemd] = "SYSTEMD=1, SYSTEM=0, systemd"
PACKAGECONFIG[sysvinit] = ",,"
PACKAGECONFIG[systemd] = ",, systemd"

do_install:append() {
(cd ${S} ; oe_runmake install-service DESTDIR=${D})
rm ${D}${sysconfdir}/default/easysplash
(cd ${S} ; oe_runmake install-service DESTDIR=${D} \
${@bb.utils.contains('PACKAGECONFIG', 'sysvinit', 'INIT=1', 'INIT=0', d)} \
${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'SYSTEMD=1', 'SYSTEMD=0', d)})
rm ${D}${sysconfdir}/default/easysplash
}

RDEPENDS:${PN} += "easysplash-config"

BBCLASSEXTEND = ""
2 changes: 2 additions & 0 deletions recipes-core/initrdscripts/initramfs-framework-psplash_1.0.bb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ SRC_URI = " \
file://psplash-finish \
"

S = "${UNPACKDIR}"

do_install() {
# psplash
install -Dm 0755 ${S}/psplash ${D}/init.d/11-psplash
Expand Down
2 changes: 1 addition & 1 deletion recipes-core/os-release/os-release.bbappend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OS_RELEASE_FIELDS:append:oel = " BUILD_NUMBER"

# Append build number for development builds
VERSION:append:oel = "${@' (build %s)' % BUILD_NUMBER if 'BUILD_NUMBER' in d and DISTRO_VERSION.endswith('+devel') else ''}"
VERSION:append:oel = " ${@'(build %s)' % BUILD_NUMBER if 'BUILD_NUMBER' in d and DISTRO_VERSION.endswith('+devel') else ''}"
2 changes: 1 addition & 1 deletion recipes-core/psplash/psplash_git.bbappend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
FILESEXTRAPATHS:prepend:oel := "${THISDIR}/files:"

SRC_URI:append:oel = " \
file://psplash-colors.h \
Expand Down
2 changes: 1 addition & 1 deletion recipes-core/systemd/systemd_%.bbappend
Original file line number Diff line number Diff line change
@@ -1 +1 @@
RDEPENDS:${PN} += "util-linux-umount"
RDEPENDS:${PN}:append:oel = " util-linux-umount"
17 changes: 17 additions & 0 deletions recipes-core/tiny-init-system/files/COPYING.MIT
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
19 changes: 0 additions & 19 deletions recipes-core/tiny-init-system/tiny-init-system.bb

This file was deleted.

29 changes: 29 additions & 0 deletions recipes-core/tiny-init-system/tiny-init-system_1.0.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
SUMMARY = "Basic init system for constrained systems"
DESCRIPTION = "Tiny init system for constrained systems based on BusyBox."
HOMEPAGE = "https://github.com/OSSystemsEmbeddedLinux/meta-ossystems-base"
BUGTRACKER = "https://github.com/OSSystemsEmbeddedLinux/meta-ossystems-base/issues"
SECTION = "base"
CVE_PRODUCT = "tiny-init-system"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://COPYING.MIT;md5=40eb1f165a0cf177f2660b7d4223cc56"

SRC_URI = "\
file://COPYING.MIT \
file://init \
file://rc.local.sample \
"

S = "${UNPACKDIR}"

do_configure[noexec] = "1"
do_compile[noexec] = "1"

do_install() {
install -m 0755 ${S}/init ${D}
install -Dm 0755 ${S}/rc.local.sample ${D}${sysconfdir}/rc.local.sample
}

FILES:${PN} += "/init ${sysconfdir}/rc.local.sample"
RDEPENDS:${PN} = "busybox"

BBCLASSEXTEND = ""
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
PACKAGECONFIG:append = " kms"
Loading