devtools: Add recipe for Chromium Embedded Controller utilities
PATCH v4 1/1 devtools: Add recipe for Chromium Embedded Controller utilities
Add a recipe to build 'ectool' a utility to interact with the embedded controller on Google's chromebooks (and other platforms using it).
---
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
--- .../chromium-utils/chromium-utils.bb | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb
meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb new file +23 -0
@@ -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 +}
Signature · 1 line
2.7.4
Quoted 16 lines
Op 6 jan. 2017, om 20:47 heeft Moritz Fischer <[email protected]> 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 <[email protected]>---
Changes from v1:- Replaced DESCRIPTION with SUMMARY (Martin)
- UseEXTRA_OEMAKE(Martin)
- Removed FILESEXTRAPATHS (Martin)
- Changed PV (Martin / Khem)
- RemovedFILES_PN(Khem)
Quoted 8 lines
Changes from v2:
- Changed PV (Martin)
Changes from v3:
- Patch now against meta-oe (Khem, Ross)
- No longer need patch forHOST_LDFLAGSsince merged upstream
For v4: Adapt commit message to patch guidelines, e.g.
Chromium-utils: add recipe for Chromium Embedded Controller utilities
Quoted 25 lines
---
.../chromium-utils/chromium-utils.bb | 23 ++++++++++++++++++++++1 file changed, 23 insertions(+)create mode 100644 meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb
meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb new file +13
-0@@ -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" +
meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb line 23
Quoted 10 lines
meta-oe/recipes-devtools/chromium-utils/chromium-utils.bb new file +10
-0+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.