Compare commits

..

7 Commits

9 changed files with 109 additions and 6 deletions

View File

@ -24,8 +24,15 @@ DISTRO_FEATURES = " \
POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"
POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
# INIT_MANAGER ?= "none"
# INIT_MANAGER ?= "sysvinit"
# INIT_MANAGER ?= "systemd"
INIT_MANAGER ?= "mdev-busybox"
TCLIBC = "musl"
TCLIBC = "glibc"
# TCLIBC = "newlib"
# TCLIBC = "musl"
# TLIBC = "baremetal"
# Disable wide char support for ncurses as we don't include it in
# in the LIBC features below.

View File

@ -0,0 +1,3 @@
#!/bin/sh
gunicorn --bind 0.0.0.0:80 weblight:app

View File

@ -0,0 +1,34 @@
SUMMARY = "Yardlight switcher with web ui"
SECTION = "Applications"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
PR = "r0"
SRCREV = "${AUTOREV}"
SRC_URI = " \
git://git.blackfinn.de/python/weblight.git;protocol=https;branch=master \
file://run.sh \
"
S = "${WORKDIR}/git"
do_install_append () {
install -d ${D}/usr/
install -d ${D}/usr/bin/
install -m 0755 ${WORKDIR}/run.sh ${D}/usr/bin/
}
RDEPENDS_${PN} += "\
python3 \
python3-gunicorn \
python3-flask \
rpi.gpio \
"
FILES_${PN} = " \
/usr/bin/run.sh \
"
inherit setuptools3

View File

@ -0,0 +1,22 @@
SUMMARY = "A minimal container image"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
PREFERRED_PROVIDER_virtual/kernel = "linux-dummy"
IMAGE_FSTYPES = "container oci"
inherit image
inherit image-oci
IMAGE_FEATURES = ""
IMAGE_LINGUAS = ""
NO_RECOMMENDATIONS = "1"
IMAGE_CONTAINER_NO_DUMMY = "0"
IMAGE_INSTALL = " \
base-files \
base-passwd \
netbase \
"

View File

@ -0,0 +1,5 @@
IMAGE_INSTALL_append = " \
git \
vim \
"

View File

@ -3,11 +3,7 @@ HOMEPAGE = "https://blackfinn.de"
LICENSE = "MIT"
require docker-host-image.bb
IMAGE_INSTALL_append = " \
git \
vim \
"
require dev-image.inc
export IMAGE_BASENAME = "docker-host-dev-image"

View File

@ -0,0 +1,8 @@
SUMMARY = "A tiny image"
HOMEPAGE = "https://blackfinn.de"
LICENSE = "MIT"
require podman-host-image.bb
require dev-image.inc
export IMAGE_BASENAME = "podman-host-dev-image"

View File

@ -0,0 +1,10 @@
SUMMARY = "Busybox container image"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
require app-container-image.bb
IMAGE_INSTALL += " \
busybox \
yardlight \
"

View File

@ -0,0 +1,18 @@
SUMMARY = "RPi.GPIO"
SECTION = "Devtools"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
PR = "r0"
SRC_URI[sha256sum] = "7424bc6c205466764f30f666c18187a0824077daf20b295c42f08aea2cb87d3f"
inherit pypi setuptools3
PYPI_PACKAGE = "RPi.GPIO"
TARGET_CFLAGS += "-fcommon"
RDEPENDS_${PN} = " \
python3 \
"