From 81715eee0344574f50370cad3052d22b83009980 Mon Sep 17 00:00:00 2001 From: Thomas Klaehn Date: Fri, 29 Nov 2019 07:18:14 +0100 Subject: [PATCH] recipes-core: Add new development console image --- buildconf/bananapi-m3/conf-notes.txt | 1 + buildconf/beaglebone-yocto/conf-notes.txt | 1 + buildconf/raspberrypi3-64/conf-notes.txt | 1 + recipes-core/images/console-dev-image.bb | 105 ++++++++++++++++++++++ 4 files changed, 108 insertions(+) create mode 100644 recipes-core/images/console-dev-image.bb diff --git a/buildconf/bananapi-m3/conf-notes.txt b/buildconf/bananapi-m3/conf-notes.txt index 36009da..5759f0d 100644 --- a/buildconf/bananapi-m3/conf-notes.txt +++ b/buildconf/bananapi-m3/conf-notes.txt @@ -1,5 +1,6 @@ Common targets are: console-image + console-dev-image core-image-minimal core-image-sato meta-toolchain diff --git a/buildconf/beaglebone-yocto/conf-notes.txt b/buildconf/beaglebone-yocto/conf-notes.txt index 36009da..5759f0d 100644 --- a/buildconf/beaglebone-yocto/conf-notes.txt +++ b/buildconf/beaglebone-yocto/conf-notes.txt @@ -1,5 +1,6 @@ Common targets are: console-image + console-dev-image core-image-minimal core-image-sato meta-toolchain diff --git a/buildconf/raspberrypi3-64/conf-notes.txt b/buildconf/raspberrypi3-64/conf-notes.txt index 36009da..5759f0d 100644 --- a/buildconf/raspberrypi3-64/conf-notes.txt +++ b/buildconf/raspberrypi3-64/conf-notes.txt @@ -1,5 +1,6 @@ Common targets are: console-image + console-dev-image core-image-minimal core-image-sato meta-toolchain diff --git a/recipes-core/images/console-dev-image.bb b/recipes-core/images/console-dev-image.bb new file mode 100644 index 0000000..a19b1df --- /dev/null +++ b/recipes-core/images/console-dev-image.bb @@ -0,0 +1,105 @@ +SUMMARY = "A console image with some additional tools" +HOMEPAGE = "https://blackfinn.de" +LICENSE = "MIT" + +inherit core-image extrausers + +IMAGE_FEATURES += "package-management" + +# Encrypt the password with: echo "" | openssl passwd -1 -stdin +EXTRA_USERS_PARAMS = " \ + usermod -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' root; \ + useradd -p '\$1\$4h5Qdc3i\$Vke4J2Ci5z.D3TtFDmV9r/' tkl; \ +" + +CORE_OS = " \ + openssh \ + openssh-keygen \ + openssh-sftp-server \ + psplash \ + tzdata \ +" + +KERNEL_EXTRA_INSTALL = " \ + kernel-modules \ + " + +WIFI_SUPPORT = " \ + iw \ + wpa-supplicant \ + " + +DEV_SDK_INSTALL = " \ + file \ + git \ + make \ + perl-modules \ + pkgconfig \ + python-modules \ + python-pip \ + python-dev \ + bash \ + " + +EXTRA_TOOLS_INSTALL = " \ + acpid \ + bc \ + bzip2 \ + dosfstools \ + e2fsprogs-mke2fs \ + ethtool \ + findutils \ + htop \ + i2c-tools \ + less \ + mc \ + procps \ + rsync \ + sysfsutils \ + unzip \ + util-linux \ + util-linux-blkid \ + vim \ + wget \ + curl \ + zip \ + ntp \ + " + +MQTT = " \ + python-paho-mqtt \ +" + +PYTHON_LIBS = " \ + python-smbus \ +" + +IMAGE_INSTALL += " \ + ${CORE_OS} \ + ${DEV_SDK_INSTALL} \ + ${EXTRA_TOOLS_INSTALL} \ + ${KERNEL_EXTRA_INSTALL} \ + ${WIFI_SUPPORT} \ + ${MQTT} \ + ${PYTHON_LIBS} \ + packagegroup-core-buildessential \ +" + +IMAGE_INSTALL_append_beaglebone-yocto = " linux-firmware-rtl8192cu" +IMAGE_INSTALL_append_bananapi-m3 += " linux-firmware-bcm43430" + +set_local_timezone() { + ln -sf /usr/share/zoneinfo/Europe/Berlin ${IMAGE_ROOTFS}/etc/localtime +} + +disable_bootlogd() { + echo BOOTLOGD_ENABLE=no > ${IMAGE_ROOTFS}/etc/default/bootlogd +} + +ROOTFS_POSTPROCESS_COMMAND += " \ + set_local_timezone ; \ + disable_bootlogd ; \ + " + +export IMAGE_BASENAME = "console-dev-image" +