[oe] [meta-oe][PATCH v5] Chromium-utils: add recipe for Chromium Embedded Controller utilities

Moritz Fischer moritz.fischer at ettus.com
Wed Jan 11 22:50:13 UTC 2017


Add a recipe to build 'ectool' a utility to interact with the embedded
controller on Google's chromebooks (and other platforms using it).

Signed-off-by: Moritz Fischer <moritz.fischer at ettus.com>
---
Changes from v1:

- Replaced DESCRIPTION with SUMMARY (Martin)
- Use EXTRA_OEMAKE (Martin)
- Removed FILESEXTRAPATHS (Martin)
- Changed PV (Martin / Khem)
- Removed FILES_PN (Khem)

Changes from v2:

- Changed PV (Martin)

Changes from v3:

- Patch now against meta-oe (Khem, Ross)
- No longer need patch for HOST_LDFLAGS since merged upstream

Changes from v4:
- Change commitmsg (Koen)
- Install to ${sbindir} vs ${bindir} (Koen)

---

 .../chromium-utils/chromium-utils.bb               | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb

diff --git a/meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb b/meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb
new file mode 100644
index 0000000..c3c465e
--- /dev/null
+++ b/meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb
@@ -0,0 +1,23 @@
+SUMMARY = "Chromium EC utilities"
+DEPENDS = "libftdi"
+LICENSE = "BSD-3-Clause"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=562c740877935f40b262db8af30bca36"
+
+SRCREV = "a7bf207add71cfb20308ed6858b1b028c866304a"
+SRC_URI = "git://chromium.googlesource.com/chromiumos/platform/ec;protocol=https \
+          "
+
+PV = "1.1.9999+gitr${SRCPV}"
+
+S = "${WORKDIR}/git"
+
+EXTRA_OEMAKE = "'HOSTCC=${CC}' 'HOSTCFLAGS=${CFLAGS}' 'HOST_LDFLAGS=${LDFLAGS}'"
+
+do_compile() {
+    oe_runmake utils
+}
+
+do_install() {
+    install -m 0755 -d ${D}${sbindir}
+    install -m 0755 ${S}/build/bds/util/ectool ${D}${sbindir}/ectool
+}
-- 
2.7.4




More information about the Openembedded-devel mailing list