From 471747bdea33852433e15cbb852f1aa986e6d89c Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Thu, 29 Dec 2022 23:57:05 -0500 Subject: [PATCH] Add dev and prod images --- recipes-core/images/image-hvmpd-common.inc | 39 ++++++++++++++++++++++ recipes-core/images/image-hvmpd-dev.bb | 23 +++++++++++++ recipes-core/images/image-hvmpd-prod.bb | 6 ++++ 3 files changed, 68 insertions(+) create mode 100644 recipes-core/images/image-hvmpd-common.inc create mode 100644 recipes-core/images/image-hvmpd-dev.bb create mode 100644 recipes-core/images/image-hvmpd-prod.bb diff --git a/recipes-core/images/image-hvmpd-common.inc b/recipes-core/images/image-hvmpd-common.inc new file mode 100644 index 0000000..847a762 --- /dev/null +++ b/recipes-core/images/image-hvmpd-common.inc @@ -0,0 +1,39 @@ +LICENSE = "CLOSED" + +inherit core-image + +IMAGE_FEATURES += "ssh-server-openssh" + +# Common features/components: +IMAGE_INSTALL:append = " \ + libgpiod-tools \ + parted \ + e2fsprogs \ + nano \ + tzdata \ + util-linux \ + sudo \ + evtest \ + i2c-tools \ +" + +IMAGE_INSTALL:append = " \ + libubootenv \ + u-boot-fw-utils \ + u-boot-default-env \ +" + +# Add SWUpdate components +IMAGE_INSTALL:append = " \ + swupdate \ + swupdate-usb \ + swupdate-progress \ +" + +# Remove swupdate-www (package with the website, that you can customize with +# your own logo, template and style). +IMAGE_INSTALL:remove = " \ + swupdate-www \ +" + +IMAGE_FSTYPES += "tar.gz" diff --git a/recipes-core/images/image-hvmpd-dev.bb b/recipes-core/images/image-hvmpd-dev.bb new file mode 100644 index 0000000..8ba8070 --- /dev/null +++ b/recipes-core/images/image-hvmpd-dev.bb @@ -0,0 +1,23 @@ +SUMMARY = "HV MPD development image" + +require image-hvmpd-common.inc + +# Image suitable for development (empty root password): +IMAGE_FEATURES += "debug-tweaks" + +# Add debugging tools (gdb and strace, etc): +IMAGE_FEATURES += "tools-debug" + +# Add development tools (gcc, make, pkgconfig, etc): +IMAGE_FEATURES += "tools-sdk" + +# Additional development tools: +IMAGE_INSTALL:append = " \ + curl \ + lsof \ + spitools \ + tcpdump \ +" + +# Size must be in Kbytes: +IMAGE_ROOTFS_SIZE = "1048576" diff --git a/recipes-core/images/image-hvmpd-prod.bb b/recipes-core/images/image-hvmpd-prod.bb new file mode 100644 index 0000000..643f66d --- /dev/null +++ b/recipes-core/images/image-hvmpd-prod.bb @@ -0,0 +1,6 @@ +SUMMARY = "HV MPD production image" + +require image-hvmpd-common.inc + +# Size must be in Kbytes: +IMAGE_ROOTFS_SIZE = "768000" -- 2.20.1