diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2015-09-05 01:02:16 +0200 |
---|---|---|
committer | Enrico Jorns <ejo@pengutronix.de> | 2016-01-22 09:31:43 +0100 |
commit | 36a3abce357cebc7f3e0c2c04f3dc02832cbcc74 (patch) | |
tree | e6bbfb8eaef598c9590c363de74bcf73acece0f8 /recipes-core | |
parent | 28a04070326de29db342badd7359558c85d6d14b (diff) | |
download | meta-ptx-36a3abce357cebc7f3e0c2c04f3dc02832cbcc74.tar.gz meta-ptx-36a3abce357cebc7f3e0c2c04f3dc02832cbcc74.tar.xz |
rauc: place rauc binary in DEPLOY_DIR_TOOLS in native build
BSP users might want to run the rauc tool from the BSP to resign
bundles, display bundle informations, etc.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
Diffstat (limited to 'recipes-core')
-rw-r--r-- | recipes-core/rauc/rauc.inc | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/recipes-core/rauc/rauc.inc b/recipes-core/rauc/rauc.inc index 0e57fc8..349fdd6 100644 --- a/recipes-core/rauc/rauc.inc +++ b/recipes-core/rauc/rauc.inc @@ -44,9 +44,23 @@ do_install_append () { } +inherit deploy +do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}" + +do_deploy() { +} + +do_deploy_append_class-native() { + install -d ${DEPLOY_DIR_TOOLS} + install -m 0755 ${B}/rauc ${DEPLOY_DIR_TOOLS}/rauc-${PV} + rm -f ${DEPLOY_DIR_TOOLS}/rauc + ln -sf ./rauc-${PV} ${DEPLOY_DIR_TOOLS}/rauc +} + +addtask deploy before do_package after do_install + SYSTEMD_PACKAGES = "${PN}" SYSTEMD_SERVICE_${PN} = "rauc.service rauc-mark-good.service" SYSTEMD_AUTO_ENABLE_${PN} = "enable" - BBCLASSEXTEND = "native" |