Compare commits
7 Commits
de8f190eaa
...
c1035a2623
Author | SHA1 | Date | |
---|---|---|---|
c1035a2623 | |||
59f576a955 | |||
63bf0841e5 | |||
dd5a355dd5 | |||
573653228d | |||
a76caf5187 | |||
0570847e71 |
@ -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.
|
||||
|
3
recipes-app/yardlight/files/run.sh
Normal file
3
recipes-app/yardlight/files/run.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
gunicorn --bind 0.0.0.0:80 weblight:app
|
34
recipes-app/yardlight/yardlight.bb
Normal file
34
recipes-app/yardlight/yardlight.bb
Normal 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
|
22
recipes-core/images/app-container-image.bb
Normal file
22
recipes-core/images/app-container-image.bb
Normal 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 \
|
||||
"
|
5
recipes-core/images/dev-image.inc
Normal file
5
recipes-core/images/dev-image.inc
Normal file
@ -0,0 +1,5 @@
|
||||
|
||||
IMAGE_INSTALL_append = " \
|
||||
git \
|
||||
vim \
|
||||
"
|
@ -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"
|
||||
|
||||
|
8
recipes-core/images/podman-host-dev-image.bb
Normal file
8
recipes-core/images/podman-host-dev-image.bb
Normal 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"
|
10
recipes-core/images/yardlight-container-image.bb
Normal file
10
recipes-core/images/yardlight-container-image.bb
Normal 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 \
|
||||
"
|
18
recipes-devtools/rpi.gpio/rpi.gpio_0.7.0.bb
Normal file
18
recipes-devtools/rpi.gpio/rpi.gpio_0.7.0.bb
Normal 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 \
|
||||
"
|
Loading…
Reference in New Issue
Block a user