dragonboard-410c: install 96boards-tools for resizing partition 91/9391/2
authorKotaro Hashimoto <Hashimoto.Kotaro@ds.MitsubishiElectric.co.jp>
Mon, 15 May 2017 09:33:59 +0000 (18:33 +0900)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tue, 16 May 2017 04:52:27 +0000 (04:52 +0000)
Add 96boards-tools recipe for dragonboard-410c.
This tool resize the rootfs on the first boot.

The adding recipe is ported from meta-96boars layer(branch morty).
https://github.com/96boards/meta-96boards/

Change-Id: Ica597e36e530533cf4820a3b0a7ad2145bd3d6fb
Signed-off-by: Kotaro Hashimoto <Hashimoto.Kotaro@ds.MitsubishiElectric.co.jp>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/9391
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
meta-agl-bsp/conf/include/agl_dragonboard-410c.inc [new file with mode: 0644]
meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.7.bb [new file with mode: 0644]
templates/machine/dragonboard-410c/50_local.conf.inc

diff --git a/meta-agl-bsp/conf/include/agl_dragonboard-410c.inc b/meta-agl-bsp/conf/include/agl_dragonboard-410c.inc
new file mode 100644 (file)
index 0000000..f74d703
--- /dev/null
@@ -0,0 +1,2 @@
+# Install 96boards-tools for resizing partition
+IMAGE_INSTALL_append = " 96boards-tools"
diff --git a/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.7.bb b/meta-agl-bsp/meta-qcom/recipes-bsp/96boards-tools/96boards-tools_0.7.bb
new file mode 100644 (file)
index 0000000..36a9831
--- /dev/null
@@ -0,0 +1,27 @@
+SUMMARY = "Useful bits an pieces to make 96Boards more standard across the board"
+HOMEPAGE = "https://github.com/96boards/96boards-tools"
+SECTION = "devel"
+
+LICENSE = "GPLv2+"
+LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
+
+SRCREV = "193f355823d9dc38f370759153ac950a2833b0e2"
+SRC_URI = "git://github.com/96boards/96boards-tools;branch=master;protocol=https"
+
+S = "${WORKDIR}/git"
+
+inherit systemd allarch
+
+do_install () {
+    install -d ${D}${sysconfdir}/udev/rules.d
+    install -m 0755 ${S}/*.rules ${D}${sysconfdir}/udev/rules.d/
+
+    install -d ${D}${systemd_unitdir}/system
+    install -m 0644 ${S}/resize-helper.service ${D}${systemd_unitdir}/system
+
+    install -d ${D}${sbindir}
+    install -m 0755 ${S}/resize-helper ${D}${sbindir}
+}
+
+SYSTEMD_SERVICE_${PN} = "resize-helper.service"
+RDEPENDS_${PN} += "e2fsprogs-resize2fs gptfdisk parted util-linux udev"
index 472592c..f717fd8 100644 (file)
@@ -1 +1,3 @@
 MACHINE = "dragonboard-410c"
+#see meta-agl/meta-agl-bsp/conf/include/agl_dragonboard-410c.inc
+require conf/include/agl_dragonboard-410c.inc