Explorar o código

beaglebone: added example for swu image

Signed-off-by: Stefano Babic <sbabic@denx.de>
Stefano Babic %!s(int64=10) %!d(string=hai) anos
pai
achega
46bccd0041

+ 30 - 0
recipes-extended/images/bbb-swu-image.bb

@@ -0,0 +1,30 @@
+# Copyright (C) 2015 Unknown User <unknow@user.org>
+# Released under the MIT license (see COPYING.MIT for the terms)
+
+DESCRIPTION = "Example Compound image for beaglebone "
+SECTION = ""
+
+# Note: sw-description is mandatory
+SRC_URI = "file://sw-description \
+           "
+inherit swupdate
+
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \
+                    file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
+
+# IMAGE_DEPENDS: list of Yocto images that contains a root filesystem
+# it will be ensured they are built before creating swupdate image
+IMAGE_DEPENDS = ""
+
+# SWUPDATE_IMAGES: list of images that will be part of the compound image
+# the list can have any binaries - images must be in the DEPLOY directory
+SWUPDATE_IMAGES = " \
+                core-image-full-cmdline \
+                "
+
+# Images can have multiple formats - define which image must be
+# taken to be put in the compound image
+SWUPDATE_IMAGES_FSTYPES[core-image-full-cmdline] = ".ext3"
+
+COMPATIBLE = "beaglebone"

+ 15 - 0
recipes-extended/images/bbb-swu-image/beaglebone/sw-description

@@ -0,0 +1,15 @@
+software =
+{
+	version = "0.1.0";
+
+	hardware-compatibility: [ "revC"];
+
+	images: (
+		{
+			filename = "core-image-full-cmdline-beaglebone.ext3";
+			device = "/dev/mmcblk1p2";
+			type = "raw";
+		}
+	);
+}
+