Topics

How to create a Blacksand Image with source tarball


Saul Wold <saul.wold@...>
 

Richard, Scott:

Here is what I did to create the blacksand sdk live image with a source tarball. I still need to include the docs and release notes at the top level, but we now have the basic infrastructure in place.

2 changes where required, first to the local.conf file to include the serial port changes (with one additional tweak):

SYSLINUX_OPTS_atom-pc = "serial 0 115200"
SERIAL_CONSOLE_atom-pc = "115200 ttyS0"
APPEND_atom-pc = "console=ttyS0,115200 console=tty0"


And then a new image, that I named poky-image-spec-live, pretty straight forward, we just need to edit the build_src_tarball_bin to include the docs and release notes.

diff --git a/meta/recipes-sato/images/poky-image-spec-live.bb b/meta/recipes-sato/images/poky-image-spec-live.bb
new file mode 100644
index 0000000..1abeb95
--- /dev/null
+++ b/meta/recipes-sato/images/poky-image-spec-live.bb
@@ -0,0 +1,23 @@
+DESCRIPTION = "Bootable Live SDK Image for Atom-PC Board"
+
+require recipes-core/images/poky-image-live.inc
+
+LABELS += "boot install"
+
+ROOTFS = "${DEPLOY_DIR_IMAGE}/poky-image-spec-${MACHINE}.ext3"
+
+LICENSE = "MIT"
+
+PR = "r0"
+
+do_bootimg[depends] += "poky-image-sdk:do_rootfs"
+
+build_src_tarball_bin () {
+ install -d ${S}/hdd/boot
+ (cd ${OEROOT}; git archive HEAD | bzip2 > "${S}/hdd/boot/poky4.tar.bz2")
+}
+
+python do_bootimg_prepend () {
+ import bb
+ bb.build.exec_func('build_src_tarball_bin', d)
+}