Add dev and prod images
authorHugo Villeneuve <hugo@hugovil.com>
Fri, 30 Dec 2022 04:57:05 +0000 (23:57 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Fri, 30 Dec 2022 16:57:35 +0000 (11:57 -0500)
recipes-core/images/image-hvmpd-common.inc [new file with mode: 0644]
recipes-core/images/image-hvmpd-dev.bb [new file with mode: 0644]
recipes-core/images/image-hvmpd-prod.bb [new file with mode: 0644]

diff --git a/recipes-core/images/image-hvmpd-common.inc b/recipes-core/images/image-hvmpd-common.inc
new file mode 100644 (file)
index 0000000..847a762
--- /dev/null
@@ -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 (file)
index 0000000..8ba8070
--- /dev/null
@@ -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 (file)
index 0000000..643f66d
--- /dev/null
@@ -0,0 +1,6 @@
+SUMMARY = "HV MPD production image"
+
+require image-hvmpd-common.inc
+
+# Size must be in Kbytes:
+IMAGE_ROOTFS_SIZE = "768000"