[oe] [meta-oe][PATCH v4] devtools: Add recipe for Chromium Embedded Controller utilities

Koen Kooi koen at dominion.thruhere.net
Sat Jan 7 08:50:43 UTC 2017


> Op 6 jan. 2017, om 20:47 heeft Moritz Fischer <moritz.fischer at ettus.com> het volgende geschreven:
> 
> 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

For v4: Adapt commit message to patch guidelines, e.g.

Chromium-utils: add recipe for Chromium Embedded Controller utilities


> 
> ---
> .../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..49d2647
> --- /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}${bindir}
> +    install -m 0755 ${S}/build/bds/util/ectool ${D}${bindir}/ectool
> +}

nitpick: sbindir instead since it it (hopefully) requires root to talk to hardware.


More information about the Openembedded-devel mailing list