Compare commits
No commits in common. "gatesgarth" and "dunfell" have entirely different histories.
gatesgarth
...
dunfell
@ -12,11 +12,9 @@ BBLAYERS ?= " \
|
|||||||
${TOPDIR}/../layers/meta-openembedded/meta-filesystems \
|
${TOPDIR}/../layers/meta-openembedded/meta-filesystems \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-perl \
|
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
||||||
${TOPDIR}/../layers/meta-virtualization \
|
${TOPDIR}/../layers/meta-virtualization \
|
||||||
${TOPDIR}/../layers/meta-raspberrypi \
|
${TOPDIR}/../layers/meta-raspberrypi \
|
||||||
${TOPDIR}/../layers/meta-security \
|
|
||||||
${TOPDIR}/../layers/meta-blackfinn \
|
${TOPDIR}/../layers/meta-blackfinn \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -1,8 +1,7 @@
|
|||||||
Common targets are:
|
Common targets are:
|
||||||
console-image
|
console-image
|
||||||
console-dev-image
|
console-dev-image
|
||||||
docker-host-image
|
docker-image
|
||||||
docker-host-dev-image
|
|
||||||
tiny-image
|
tiny-image
|
||||||
core-image-minimal
|
core-image-minimal
|
||||||
core-image-sato
|
core-image-sato
|
||||||
|
@ -46,7 +46,5 @@ export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
|
|||||||
ICECC_PARALLEL_MAKE = "-j 24"
|
ICECC_PARALLEL_MAKE = "-j 24"
|
||||||
INHERIT += "icecc"
|
INHERIT += "icecc"
|
||||||
|
|
||||||
ICECC_USER_PACKAGE_BL = "pkgconfig-native \
|
ICECC_USER_PACKAGE_BL = "pkgconfig-native"
|
||||||
json-c \
|
|
||||||
podman \
|
|
||||||
"
|
|
||||||
|
@ -1,22 +0,0 @@
|
|||||||
# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
|
|
||||||
# changes incompatibly
|
|
||||||
POKY_BBLAYERS_CONF_VERSION = "3"
|
|
||||||
|
|
||||||
BBPATH = "${TOPDIR}"
|
|
||||||
BBFILES ?= ""
|
|
||||||
|
|
||||||
BBLAYERS ?= " \
|
|
||||||
${TOPDIR}/../layers/poky/meta \
|
|
||||||
${TOPDIR}/../layers/poky/meta-poky \
|
|
||||||
${TOPDIR}/../layers/poky/meta-yocto-bsp \
|
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-filesystems \
|
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-perl \
|
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
|
||||||
${TOPDIR}/../layers/meta-virtualization \
|
|
||||||
${TOPDIR}/../layers/meta-raspberrypi \
|
|
||||||
${TOPDIR}/../layers/meta-security \
|
|
||||||
${TOPDIR}/../layers/meta-blackfinn \
|
|
||||||
"
|
|
||||||
|
|
@ -1,12 +0,0 @@
|
|||||||
Common targets are:
|
|
||||||
console-image
|
|
||||||
console-dev-image
|
|
||||||
docker-host-image
|
|
||||||
docker-host-dev-image
|
|
||||||
tiny-image
|
|
||||||
core-image-minimal
|
|
||||||
core-image-sato
|
|
||||||
meta-toolchain
|
|
||||||
adt-installer
|
|
||||||
meta-ide-support
|
|
||||||
|
|
@ -1,50 +0,0 @@
|
|||||||
MACHINE ?= "qemuarm"
|
|
||||||
|
|
||||||
#DL_DIR ?= "${TOPDIR}/../../downloads"
|
|
||||||
#SSTATE_DIR ?= "${TOPDIR}/../../sstate-cache"
|
|
||||||
#TMPDIR = "${TOPDIR}/tmp"
|
|
||||||
|
|
||||||
DISTRO ?= "roro"
|
|
||||||
PACKAGE_CLASSES ?= "package_ipk"
|
|
||||||
|
|
||||||
#SDKMACHINE ?= "i686"
|
|
||||||
|
|
||||||
#EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
|
|
||||||
|
|
||||||
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
|
|
||||||
|
|
||||||
SERIAL_CONSOLES = "115200;ttyS0"
|
|
||||||
|
|
||||||
PATCHRESOLVE = "noop"
|
|
||||||
|
|
||||||
BB_DISKMON_DIRS = "\
|
|
||||||
STOPTASKS,${TMPDIR},1G,100K \
|
|
||||||
STOPTASKS,${DL_DIR},1G,100K \
|
|
||||||
STOPTASKS,${SSTATE_DIR},1G,100K \
|
|
||||||
STOPTASKS,/tmp,100M,100K \
|
|
||||||
ABORT,${TMPDIR},100M,1K \
|
|
||||||
ABORT,${DL_DIR},100M,1K \
|
|
||||||
ABORT,${SSTATE_DIR},100M,1K \
|
|
||||||
ABORT,/tmp,10M,1K"
|
|
||||||
|
|
||||||
#SSTATE_MIRRORS ?= "\
|
|
||||||
#file://.* http://someserver.tld/share/sstate/PATH;downloadfilename=PATH \n \
|
|
||||||
#file://.* file:///some/local/dir/sstate/PATH"
|
|
||||||
|
|
||||||
CONF_VERSION = "1"
|
|
||||||
|
|
||||||
INHERIT += "rm_work"
|
|
||||||
|
|
||||||
INHERIT += "own-mirrors"
|
|
||||||
SOURCE_MIRROR_URL = "https://files.blackfinn.de/mirror/sources"
|
|
||||||
BB_GENERATE_MIRROR_TARBALLS = "1"
|
|
||||||
|
|
||||||
export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
|
|
||||||
|
|
||||||
ICECC_PARALLEL_MAKE = "-j 24"
|
|
||||||
INHERIT += "icecc"
|
|
||||||
|
|
||||||
ICECC_USER_PACKAGE_BL = "pkgconfig-native \
|
|
||||||
json-c \
|
|
||||||
podman \
|
|
||||||
"
|
|
@ -12,10 +12,8 @@ BBLAYERS ?= " \
|
|||||||
${TOPDIR}/../layers/meta-openembedded/meta-filesystems \
|
${TOPDIR}/../layers/meta-openembedded/meta-filesystems \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-perl \
|
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
||||||
${TOPDIR}/../layers/meta-raspberrypi \
|
${TOPDIR}/../layers/meta-raspberrypi \
|
||||||
${TOPDIR}/../layers/meta-virtualization \
|
${TOPDIR}/../layers/meta-virtualization \
|
||||||
${TOPDIR}/../layers/meta-security \
|
|
||||||
${TOPDIR}/../layers/meta-blackfinn \
|
${TOPDIR}/../layers/meta-blackfinn \
|
||||||
"
|
"
|
||||||
|
@ -2,8 +2,7 @@ Common targets are:
|
|||||||
console-image
|
console-image
|
||||||
console-dev-image
|
console-dev-image
|
||||||
tiny-image
|
tiny-image
|
||||||
docker-host-image
|
docker-image
|
||||||
docker-host-dev-image
|
|
||||||
core-image-minimal
|
core-image-minimal
|
||||||
core-image-sato
|
core-image-sato
|
||||||
meta-toolchain
|
meta-toolchain
|
||||||
|
@ -31,8 +31,6 @@ ENABLE_UART = "1"
|
|||||||
ENABLE_SPI_BUS = "1"
|
ENABLE_SPI_BUS = "1"
|
||||||
ENABLE_I2C = "1"
|
ENABLE_I2C = "1"
|
||||||
|
|
||||||
RPI_EXTRA_CONFIG = "dtoverlay=w1-gpio,gpiopin=4"
|
|
||||||
|
|
||||||
RPI_USE_U_BOOT = "1"
|
RPI_USE_U_BOOT = "1"
|
||||||
|
|
||||||
INHERIT += "rm_work"
|
INHERIT += "rm_work"
|
||||||
@ -46,7 +44,5 @@ export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
|
|||||||
ICECC_PARALLEL_MAKE = "-j 24"
|
ICECC_PARALLEL_MAKE = "-j 24"
|
||||||
INHERIT += "icecc"
|
INHERIT += "icecc"
|
||||||
|
|
||||||
ICECC_USER_PACKAGE_BL = "pkgconfig-native \
|
ICECC_USER_PACKAGE_BL = "pkgconfig-native"
|
||||||
json-c \
|
|
||||||
podman \
|
|
||||||
"
|
|
||||||
|
@ -12,10 +12,8 @@ BBLAYERS ?= " \
|
|||||||
${TOPDIR}/../layers/meta-openembedded/meta-filesystems \
|
${TOPDIR}/../layers/meta-openembedded/meta-filesystems \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
${TOPDIR}/../layers/meta-openembedded/meta-oe \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
${TOPDIR}/../layers/meta-openembedded/meta-networking \
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-perl \
|
|
||||||
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
${TOPDIR}/../layers/meta-openembedded/meta-python \
|
||||||
${TOPDIR}/../layers/meta-raspberrypi \
|
${TOPDIR}/../layers/meta-raspberrypi \
|
||||||
${TOPDIR}/../layers/meta-virtualization \
|
${TOPDIR}/../layers/meta-virtualization \
|
||||||
${TOPDIR}/../layers/meta-security \
|
|
||||||
${TOPDIR}/../layers/meta-blackfinn \
|
${TOPDIR}/../layers/meta-blackfinn \
|
||||||
"
|
"
|
||||||
|
@ -2,8 +2,7 @@ Common targets are:
|
|||||||
console-image
|
console-image
|
||||||
console-dev-image
|
console-dev-image
|
||||||
tiny-image
|
tiny-image
|
||||||
docker-host-image
|
docker-image
|
||||||
docker-host-dev-image
|
|
||||||
core-image-minimal
|
core-image-minimal
|
||||||
core-image-sato
|
core-image-sato
|
||||||
meta-toolchain
|
meta-toolchain
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
MACHINE ?= "raspberrypi4-64"
|
MACHINE ?= "raspberrypi3-64"
|
||||||
|
|
||||||
DISTRO ?= "roro"
|
DISTRO ?= "roro"
|
||||||
PACKAGE_CLASSES ?= "package_ipk"
|
PACKAGE_CLASSES ?= "package_ipk"
|
||||||
@ -31,8 +31,6 @@ ENABLE_UART = "1"
|
|||||||
ENABLE_SPI_BUS = "1"
|
ENABLE_SPI_BUS = "1"
|
||||||
ENABLE_I2C = "1"
|
ENABLE_I2C = "1"
|
||||||
|
|
||||||
RPI_EXTRA_CONFIG = "dtoverlay=w1-gpio,gpiopin=4"
|
|
||||||
|
|
||||||
RPI_USE_U_BOOT = "1"
|
RPI_USE_U_BOOT = "1"
|
||||||
|
|
||||||
INHERIT += "rm_work"
|
INHERIT += "rm_work"
|
||||||
@ -46,7 +44,5 @@ export BB_ENV_EXTRAWHITE="$BB_ENV_EXTRAWHITE DL_DIR"
|
|||||||
ICECC_PARALLEL_MAKE = "-j 24"
|
ICECC_PARALLEL_MAKE = "-j 24"
|
||||||
INHERIT += "icecc"
|
INHERIT += "icecc"
|
||||||
|
|
||||||
ICECC_USER_PACKAGE_BL = "pkgconfig-native \
|
ICECC_USER_PACKAGE_BL = "pkgconfig-native"
|
||||||
json-c \
|
|
||||||
podman \
|
|
||||||
"
|
|
||||||
|
@ -24,15 +24,8 @@ DISTRO_FEATURES = " \
|
|||||||
POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"
|
POKY_DEFAULT_EXTRA_RDEPENDS = "packagegroup-core-boot"
|
||||||
POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
|
POKY_DEFAULT_EXTRA_RRECOMMENDS = "kernel-module-af-packet"
|
||||||
|
|
||||||
# INIT_MANAGER ?= "none"
|
|
||||||
# INIT_MANAGER ?= "sysvinit"
|
|
||||||
# INIT_MANAGER ?= "systemd"
|
|
||||||
INIT_MANAGER ?= "mdev-busybox"
|
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
|
# Disable wide char support for ncurses as we don't include it in
|
||||||
# in the LIBC features below.
|
# in the LIBC features below.
|
||||||
@ -40,8 +33,6 @@ TCLIBC = "glibc"
|
|||||||
ENABLE_WIDEC = "false"
|
ENABLE_WIDEC = "false"
|
||||||
ENABLE_WIDEC_class-native = "true"
|
ENABLE_WIDEC_class-native = "true"
|
||||||
|
|
||||||
DEFAULT_TIMEZONE = "Europe/Berlin"
|
|
||||||
|
|
||||||
# Drop native language support. This removes the
|
# Drop native language support. This removes the
|
||||||
# eglibc->bash->gettext->libc-posix-clang-wchar dependency.
|
# eglibc->bash->gettext->libc-posix-clang-wchar dependency.
|
||||||
USE_NLS="no"
|
USE_NLS="no"
|
||||||
@ -51,6 +42,3 @@ SDK_VERSION := "${@'${DISTRO_VERSION}'.replace('snapshot-${DATE}','snapshot')}"
|
|||||||
MAINTAINER = "rorodist "
|
MAINTAINER = "rorodist "
|
||||||
INHERIT += "buildhistory"
|
INHERIT += "buildhistory"
|
||||||
BUILDHISTORY_COMMIT = "1"
|
BUILDHISTORY_COMMIT = "1"
|
||||||
|
|
||||||
KERNEL_MODULE_AUTOLOAD += "w1-gpio"
|
|
||||||
KERNEL_MODULE_AUTOLOAD += "w1-therm"
|
|
||||||
|
@ -9,7 +9,7 @@ BBFILES += " \
|
|||||||
|
|
||||||
BBFILE_COLLECTIONS += "meta-blackfinn"
|
BBFILE_COLLECTIONS += "meta-blackfinn"
|
||||||
BBFILE_PATTERN_meta-blackfinn = "^${LAYERDIR}/"
|
BBFILE_PATTERN_meta-blackfinn = "^${LAYERDIR}/"
|
||||||
BBFILE_PRIORITY_meta-blackfinn = "12"
|
BBFILE_PRIORITY_meta-blackfinn = "11"
|
||||||
|
|
||||||
LAYERSERIES_COMPAT_meta-blackfinn = "gatesgarth dunfell zeus warrior thud sumo rocko"
|
LAYERSERIES_COMPAT_meta-blackfinn = "dunfell zeus warrior thud sumo rocko"
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
gunicorn --bind 0.0.0.0:80 greenhouse:app
|
|
@ -1,35 +0,0 @@
|
|||||||
SUMMARY = "Greenhouse control"
|
|
||||||
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/greenhouse.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 \
|
|
||||||
w1thermsensor \
|
|
||||||
"
|
|
||||||
|
|
||||||
FILES_${PN} = " \
|
|
||||||
/usr/bin/run.sh \
|
|
||||||
"
|
|
||||||
|
|
||||||
inherit setuptools3
|
|
@ -1,3 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
gunicorn --bind 0.0.0.0:80 weblight:app
|
|
@ -1,34 +0,0 @@
|
|||||||
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
|
|
@ -1,11 +1,11 @@
|
|||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
|
||||||
|
#file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
|
|
||||||
SRC_URI += " \
|
SRC_URI += " \
|
||||||
file://S20load_modules.sh \
|
file://S20load_modules.sh \
|
||||||
file://S99firstboot.sh \
|
|
||||||
file://S49cgroups_mount.sh \
|
file://S49cgroups_mount.sh \
|
||||||
file://ntp.conf \
|
file://ntp.conf \
|
||||||
file://ntpd \
|
file://ntpd \
|
||||||
@ -18,12 +18,12 @@ do_install_append () {
|
|||||||
install -m 0644 ${WORKDIR}/ntp.conf ${D}${sysconfdir}
|
install -m 0644 ${WORKDIR}/ntp.conf ${D}${sysconfdir}
|
||||||
install -m 0755 ${WORKDIR}/ntpd ${D}${sysconfdir}/init.d/
|
install -m 0755 ${WORKDIR}/ntpd ${D}${sysconfdir}/init.d/
|
||||||
install -m 0755 ${WORKDIR}/S20load_modules.sh ${D}${sysconfdir}/rcS.d/
|
install -m 0755 ${WORKDIR}/S20load_modules.sh ${D}${sysconfdir}/rcS.d/
|
||||||
install -m 0755 ${WORKDIR}/S99firstboot.sh ${D}${sysconfdir}/rcS.d/
|
|
||||||
install -m 0755 ${WORKDIR}/S49cgroups_mount.sh ${D}${sysconfdir}/rcS.d/
|
install -m 0755 ${WORKDIR}/S49cgroups_mount.sh ${D}${sysconfdir}/rcS.d/
|
||||||
|
|
||||||
cd ${D}${sysconfdir}/rcS.d/
|
cd ${D}${sysconfdir}/rcS.d/
|
||||||
ln -s ../init.d/networking S40networking.sh
|
ln -s ../init.d/networking S40networking.sh
|
||||||
ln -s ../init.d/dropbear S47dropbear.sh
|
ln -s ../init.d/dropbear S47dropbear.sh
|
||||||
ln -s ../init.d/ntpd S48ntpd.sh
|
ln -s ../init.d/ntpd S48ntpd.sh
|
||||||
ln -s ../init.d/docker.init S50docker.sh
|
ln -s ../init.d/docker.init S50docker.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,110 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
|
|
||||||
function generate_hostname() {
|
|
||||||
mac=$( ifconfig |grep eth0 | grep -io '[0-9a-f:]\{15\}[0-9a-f]\{2\}' )
|
|
||||||
mac=${mac//:}
|
|
||||||
nic=${mac:6}
|
|
||||||
nic=$(( 16#$nic ))
|
|
||||||
let length=32
|
|
||||||
|
|
||||||
for i in 4 3 2 1 0; do
|
|
||||||
let div=$length**$i
|
|
||||||
let idx=$nic/$div
|
|
||||||
let nic=$nic%$div
|
|
||||||
|
|
||||||
if [ $idx = 0 ] ; then
|
|
||||||
res=a
|
|
||||||
elif [ $idx = 1 ] ; then
|
|
||||||
res=b
|
|
||||||
elif [ $idx = 2 ] ; then
|
|
||||||
res=c
|
|
||||||
elif [ $idx = 3 ] ; then
|
|
||||||
res=d
|
|
||||||
elif [ $idx = 4 ] ; then
|
|
||||||
res=e
|
|
||||||
elif [ $idx = 5 ] ; then
|
|
||||||
res=f
|
|
||||||
elif [ $idx = 6 ] ; then
|
|
||||||
res=g
|
|
||||||
elif [ $idx = 7 ] ; then
|
|
||||||
res=h
|
|
||||||
elif [ $idx = 8 ] ; then
|
|
||||||
res=i
|
|
||||||
elif [ $idx = 9 ] ; then
|
|
||||||
res=j
|
|
||||||
elif [ $idx = 10 ] ; then
|
|
||||||
res=k
|
|
||||||
elif [ $idx = 11 ] ; then
|
|
||||||
res=m
|
|
||||||
elif [ $idx = 12 ] ; then
|
|
||||||
res=n
|
|
||||||
elif [ $idx = 13 ] ; then
|
|
||||||
res=p
|
|
||||||
elif [ $idx = 14 ] ; then
|
|
||||||
res=q
|
|
||||||
elif [ $idx = 15 ] ; then
|
|
||||||
res=r
|
|
||||||
elif [ $idx = 16 ] ; then
|
|
||||||
res=s
|
|
||||||
elif [ $idx = 17 ] ; then
|
|
||||||
res=t
|
|
||||||
elif [ $idx = 18 ] ; then
|
|
||||||
res=u
|
|
||||||
elif [ $idx = 19 ] ; then
|
|
||||||
res=v
|
|
||||||
elif [ $idx = 20 ] ; then
|
|
||||||
res=w
|
|
||||||
elif [ $idx = 21 ] ; then
|
|
||||||
res=x
|
|
||||||
elif [ $idx = 22 ] ; then
|
|
||||||
res=y
|
|
||||||
elif [ $idx = 23 ] ; then
|
|
||||||
res=z
|
|
||||||
elif [ $idx = 24 ] ; then
|
|
||||||
res=2
|
|
||||||
elif [ $idx = 25 ] ; then
|
|
||||||
res=3
|
|
||||||
elif [ $idx = 26 ] ; then
|
|
||||||
res=4
|
|
||||||
elif [ $idx = 27 ] ; then
|
|
||||||
res=5
|
|
||||||
elif [ $idx = 28 ] ; then
|
|
||||||
res=6
|
|
||||||
elif [ $idx = 29 ] ; then
|
|
||||||
res=7
|
|
||||||
elif [ $idx = 30 ] ; then
|
|
||||||
res=8
|
|
||||||
elif [ $idx = 31 ] ; then
|
|
||||||
res=8
|
|
||||||
fi
|
|
||||||
basex="$basex${res}"
|
|
||||||
done
|
|
||||||
|
|
||||||
old_hostname=$( cat /etc/hostname )
|
|
||||||
new_hostname=unknown-$basex
|
|
||||||
|
|
||||||
if [ $old_hostname = raspberrypi3-64 ]
|
|
||||||
then
|
|
||||||
new_hostname=rpi3-$basex
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $old_hostname = raspberrypi4-64 ]
|
|
||||||
then
|
|
||||||
new_hostname=rpi3-$basex
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $new_hostname > /etc/hostname
|
|
||||||
}
|
|
||||||
|
|
||||||
FLAG="/var/local/firstboot.log"
|
|
||||||
|
|
||||||
if [ ! -f $FLAG ]; then
|
|
||||||
echo "First boot"
|
|
||||||
touch $FLAG
|
|
||||||
|
|
||||||
generate_hostname
|
|
||||||
generate_avahi_service
|
|
||||||
|
|
||||||
|
|
||||||
reboot
|
|
||||||
fi
|
|
@ -3,4 +3,3 @@ CONFIG_FEATURE_NTPD_SERVER=y
|
|||||||
CONFIG_FEATURE_NTPD_CONF=y
|
CONFIG_FEATURE_NTPD_CONF=y
|
||||||
CONFIG_FEATURE_NTP_AUTH=y
|
CONFIG_FEATURE_NTP_AUTH=y
|
||||||
|
|
||||||
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -b -H $HOSTNAME"
|
|
@ -1,22 +0,0 @@
|
|||||||
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 \
|
|
||||||
"
|
|
@ -1,6 +0,0 @@
|
|||||||
|
|
||||||
IMAGE_INSTALL_append = " \
|
|
||||||
git \
|
|
||||||
sudo \
|
|
||||||
vim \
|
|
||||||
"
|
|
@ -1,9 +0,0 @@
|
|||||||
SUMMARY = "Development image for docker host system"
|
|
||||||
HOMEPAGE = "https://blackfinn.de"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
|
|
||||||
require docker-host-image.bb
|
|
||||||
require dev-image.inc
|
|
||||||
|
|
||||||
export IMAGE_BASENAME = "docker-host-dev-image"
|
|
||||||
|
|
@ -10,5 +10,5 @@ EXTRA_USERS_PARAMS += " \
|
|||||||
usermod -a -G docker tkl \
|
usermod -a -G docker tkl \
|
||||||
"
|
"
|
||||||
|
|
||||||
export IMAGE_BASENAME = "docker-host-image"
|
export IMAGE_BASENAME = "docker-image"
|
||||||
|
|
@ -1,23 +0,0 @@
|
|||||||
SUMMARY = "Greenhouse container image"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
||||||
|
|
||||||
require app-container-image.bb
|
|
||||||
|
|
||||||
IMAGE_INSTALL += " \
|
|
||||||
busybox \
|
|
||||||
busybox-initcfg \
|
|
||||||
greenhouse \
|
|
||||||
tzdata \
|
|
||||||
"
|
|
||||||
|
|
||||||
# docker run
|
|
||||||
# --detach
|
|
||||||
# --restart always
|
|
||||||
# --cap-add SYS_RAWIO
|
|
||||||
# --device=/dev/mem:/dev/mem
|
|
||||||
# --device=/dev/gpiomem:/dev/gpiomem
|
|
||||||
# --publish 80:80
|
|
||||||
# --name greenhouse
|
|
||||||
# greenhouse
|
|
||||||
# run.sh
|
|
@ -1,8 +0,0 @@
|
|||||||
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"
|
|
@ -1,15 +0,0 @@
|
|||||||
SUMMARY = "A tiny image"
|
|
||||||
HOMEPAGE = "https://blackfinn.de"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
|
|
||||||
require tiny-image-base.inc
|
|
||||||
|
|
||||||
IMAGE_INSTALL_append = " \
|
|
||||||
initscripts \
|
|
||||||
init-ifupdown \
|
|
||||||
podman \
|
|
||||||
podman-compose \
|
|
||||||
cgroup-lite \
|
|
||||||
"
|
|
||||||
|
|
||||||
export IMAGE_BASENAME = "podman-host-image"
|
|
@ -31,10 +31,16 @@ IMAGE_INSTALL += " \
|
|||||||
|
|
||||||
IMAGE_INSTALL_append_beaglebone-yocto = " linux-firmware-rtl8192cu"
|
IMAGE_INSTALL_append_beaglebone-yocto = " linux-firmware-rtl8192cu"
|
||||||
|
|
||||||
|
set_local_timezone() {
|
||||||
|
ln -sf /usr/share/zoneinfo/Europe/Berlin ${IMAGE_ROOTFS}/etc/localtime
|
||||||
|
}
|
||||||
|
|
||||||
disable_bootlogd() {
|
disable_bootlogd() {
|
||||||
echo BOOTLOGD_ENABLE=no > ${IMAGE_ROOTFS}/etc/default/bootlogd
|
echo BOOTLOGD_ENABLE=no > ${IMAGE_ROOTFS}/etc/default/bootlogd
|
||||||
}
|
}
|
||||||
|
|
||||||
ROOTFS_POSTPROCESS_COMMAND += " \
|
ROOTFS_POSTPROCESS_COMMAND += " \
|
||||||
|
set_local_timezone ; \
|
||||||
disable_bootlogd ; \
|
disable_bootlogd ; \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -1,21 +0,0 @@
|
|||||||
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 \
|
|
||||||
"
|
|
||||||
|
|
||||||
# docker run
|
|
||||||
# --detach
|
|
||||||
# --restart always
|
|
||||||
# --cap-add SYS_RAWIO
|
|
||||||
# --device=/dev/mem:/dev/mem
|
|
||||||
# --device=/dev/gpiomem:/dev/gpiomem
|
|
||||||
# --publish 80:80
|
|
||||||
# --name yardlight
|
|
||||||
# yardlight
|
|
||||||
# run.sh
|
|
@ -1,22 +0,0 @@
|
|||||||
# The loopback interface
|
|
||||||
auto lo
|
|
||||||
iface lo inet loopback
|
|
||||||
|
|
||||||
# Wireless interface
|
|
||||||
allow-hotplug wlan0
|
|
||||||
auto wlan0
|
|
||||||
iface wlan0 inet dhcp
|
|
||||||
wireless_mode managed
|
|
||||||
wireless_essid any
|
|
||||||
wpa-driver nl80211
|
|
||||||
wpa-conf /etc/wpa_supplicant.conf
|
|
||||||
wireless-power off
|
|
||||||
|
|
||||||
|
|
||||||
# Wired interface
|
|
||||||
auto eth0
|
|
||||||
iface eth0 inet dhcp
|
|
||||||
|
|
||||||
# Bluetooth networking
|
|
||||||
iface bnep0 inet dhcp
|
|
||||||
|
|
@ -24,9 +24,9 @@
|
|||||||
# Offline mode (for use in constructing flash images offline)
|
# Offline mode (for use in constructing flash images offline)
|
||||||
#option offline_root target
|
#option offline_root target
|
||||||
|
|
||||||
src/gz all https://files.blackfinn.de/yocto/gatesgarth/all
|
src/gz all https://opkg.blackfinn.de/thud/all
|
||||||
src/gz beaglebone https://files.blackfinn.de/yocto/gatesgarth/beaglebone_yocto
|
src/gz beaglebone https://opkg.blackfinn.de/thud/beaglebone
|
||||||
src/gz cortexa8hf-neon https://files.blackfinn.de/yocto/gatesgarth/cortexa8hf-neon
|
src/gz cortexa8hf-neon https://opkg.blackfinn.de/thud/cortexa8hf-neon
|
||||||
|
|
||||||
# Default destination for installed packages
|
# Default destination for installed packages
|
||||||
dest root /
|
dest root /
|
||||||
|
@ -24,9 +24,9 @@
|
|||||||
# Offline mode (for use in constructing flash images offline)
|
# Offline mode (for use in constructing flash images offline)
|
||||||
#option offline_root target
|
#option offline_root target
|
||||||
|
|
||||||
src/gz all https://files.blackfinn.de/yocto/gatesgarth/all
|
src/gz all https://opkg.blackfinn.de/thud/all
|
||||||
src/gz raspberrypi3_64 https://files.blackfinn.de/yocto/gatesgarth/raspberrypi3_64
|
src/gz raspberrypi3_64 https://opkg.blackfinn.de/thud/raspberrypi3_64
|
||||||
src/gz cortexa53 https://files.blackfinn.de/yocto/gatesgarth/cortexa53
|
src/gz aarch64 https://opkg.blackfinn.de/thud/aarch64
|
||||||
|
|
||||||
# Default destination for installed packages
|
# Default destination for installed packages
|
||||||
dest root /
|
dest root /
|
@ -24,9 +24,9 @@
|
|||||||
# Offline mode (for use in constructing flash images offline)
|
# Offline mode (for use in constructing flash images offline)
|
||||||
#option offline_root target
|
#option offline_root target
|
||||||
|
|
||||||
src/gz all https://files.blackfinn.de/yocto/gatesgarth/all
|
src/gz all https://opkg.blackfinn.de/thud/all
|
||||||
src/gz raspberrypi4_64 https://files.blackfinn.de/yocto/gatesgarth/raspberrypi4_64
|
src/gz raspberrypi4_64 https://opkg.blackfinn.de/thud/raspberrypi4_64
|
||||||
src/gz cortexa72 https://files.blackfinn.de/yocto/gatesgarth/cortexa72
|
src/gz aarch64 https://opkg.blackfinn.de/thud/aarch64
|
||||||
|
|
||||||
# Default destination for installed packages
|
# Default destination for installed packages
|
||||||
dest root /
|
dest root /
|
@ -1,18 +0,0 @@
|
|||||||
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 \
|
|
||||||
"
|
|
@ -1,18 +0,0 @@
|
|||||||
SUMMARY = "RPi.GPIO"
|
|
||||||
SECTION = "Devtools"
|
|
||||||
LICENSE = "MIT"
|
|
||||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
||||||
|
|
||||||
PR = "r0"
|
|
||||||
|
|
||||||
SRC_URI[sha256sum] = "11c684af807c89c6f066ed93cb7cfc00082095fef8899e412e92e748e642d9c1"
|
|
||||||
|
|
||||||
inherit pypi setuptools3
|
|
||||||
|
|
||||||
PYPI_PACKAGE = "w1thermsensor"
|
|
||||||
|
|
||||||
# TARGET_CFLAGS += "-fcommon"
|
|
||||||
|
|
||||||
RDEPENDS_${PN} = " \
|
|
||||||
python3 \
|
|
||||||
"
|
|
@ -1,2 +0,0 @@
|
|||||||
CONFIG_I2C_BCM2835=y
|
|
||||||
CONFIG_DRM=y
|
|
@ -1,2 +0,0 @@
|
|||||||
CONFIG_I2C_BCM2835=y
|
|
||||||
CONFIG_DRM=y
|
|
@ -4,6 +4,3 @@ KERNEL_FEATURES_remove = " cfg/virtio.scc"
|
|||||||
|
|
||||||
KERNEL_MODULE_AUTOLOAD += " brcmfmac i2c-dev spi-bcm2835"
|
KERNEL_MODULE_AUTOLOAD += " brcmfmac i2c-dev spi-bcm2835"
|
||||||
|
|
||||||
SRC_URI += " \
|
|
||||||
file://config.cfg \
|
|
||||||
"
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
LICENSE = "GPLv2"
|
LICENSE = "GPLv2"
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
LIC_FILES_CHKSUM = "file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814"
|
||||||
|
|
||||||
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
|
||||||
|
|
||||||
KERNEL_MODULE_AUTOLOAD += " rtl8192cu"
|
KERNEL_MODULE_AUTOLOAD += " rtl8192cu"
|
||||||
|
|
||||||
|
|
||||||
SRC_URI += " \
|
SRC_URI += " \
|
||||||
file://rtl8192cu.cfg \
|
file://rtl8192cu.cfg \
|
||||||
file://enable_onboard_leds.cfg \
|
file://enable_onboard_leds.cfg \
|
||||||
@ -12,9 +13,10 @@ SRC_URI += " \
|
|||||||
file://0002-onboard-led-init-disable.patch \
|
file://0002-onboard-led-init-disable.patch \
|
||||||
"
|
"
|
||||||
|
|
||||||
KERNEL_CONFIG_FRAGMENTS_append = " \
|
KERNEL_CONFIG_FRAGMENTS_append_ti33x = " \
|
||||||
${WORKDIR}/rtl8192cu.cfg \
|
${WORKDIR}/rtl8192cu.cfg \
|
||||||
${WORKDIR}/enable_onboard_leds.cfg \
|
${WORKDIR}/enable_onboard_leds.cfg \
|
||||||
${WORKDIR}/enable_hostap_wext.cfg \
|
${WORKDIR}/enable_hostap_wext.cfg \
|
||||||
${WORKDIR}/enable_cgroups.cfg \
|
${WORKDIR}/enable_cgroups.cfg \
|
||||||
"
|
"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user