diff options
author | Enrico Jorns <ejo@pengutronix.de> | 2017-02-20 12:36:06 +0100 |
---|---|---|
committer | Enrico Jorns <ejo@pengutronix.de> | 2017-02-20 16:37:14 +0100 |
commit | 75b3d59f3c3eca376d1c6cbfd71ffa47933b7b97 (patch) | |
tree | e72a448675e0a1b355a12af92a0c89789fd1639a | |
parent | b57a3eea8cf23187687d98a5ce2109f8accbeb79 (diff) | |
download | meta-ptx-75b3d59f3c3eca376d1c6cbfd71ffa47933b7b97.tar.gz meta-ptx-75b3d59f3c3eca376d1c6cbfd71ffa47933b7b97.tar.xz |
barebox: install bindir only if target tools enabled
Prior to this change, the directory ${D}${bindir} was created
unconditionally and not added to any package. This led to packaging
error due to QA check [installed-vs-shipped].
This is fixed now by creating the install dir conditionally for each
target tool. Multiple calls of install on the same dir will not cause
any issues.
Signed-off-by: Enrico Jorns <ejo@pengutronix.de>
-rw-r--r-- | recipes-bsp/barebox/barebox.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-bsp/barebox/barebox.inc b/recipes-bsp/barebox/barebox.inc index 01e566b..a0616cf 100644 --- a/recipes-bsp/barebox/barebox.inc +++ b/recipes-bsp/barebox/barebox.inc @@ -60,17 +60,20 @@ do_compile () { } do_install() { - install -d ${D}${bindir} if grep "CONFIG_BAREBOXENV_TARGET=y" ${B}/.config; then + install -d ${D}${bindir} install -m 0755 ${B}/scripts/bareboxenv-target ${D}${bindir}/bareboxenv fi if grep "CONFIG_BAREBOXCRC32_TARGET=y" ${B}/.config; then + install -d ${D}${bindir} install -m 0755 ${B}/scripts/bareboxcrc32-target ${D}${bindir}/bareboxcrc32 fi if grep "CONFIG_KERNEL_INSTALL_TARGET=y" ${B}/.config; then + install -d ${D}${bindir} install -m 0755 ${B}/scripts/kernel-install-target ${D}${bindir}/kernel-install fi if grep "CONFIG_IMD_TARGET=y" ${B}/.config; then + install -d ${D}${bindir} install -m 0755 ${B}/scripts/bareboximd-target ${D}${bindir}/bareboximd fi } |