mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 20:21:58 +02:00
When more than two machine are built using same tmpdir and happen to use
these tools the builds fail
Fixes
ERROR: The recipe dfu-util-native is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
TOPDIR/build/tmp/deploy/tools/dfu-util-0.9
(matched in manifest-qemumips-dfu-util-native.deploy)
Please verify which recipe should provide the above files.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
26 lines
651 B
BlitzBasic
26 lines
651 B
BlitzBasic
require dfu-util_${PV}.bb
|
|
|
|
inherit native deploy
|
|
|
|
DEPENDS = "libusb1-native"
|
|
|
|
PACKAGECONFIG ??= ""
|
|
|
|
PACKAGECONFIG[static] = "CFLAGS='${CFLAGS} -pthread -static',,"
|
|
|
|
do_deploy() {
|
|
install -m 0755 src/dfu-util ${DEPLOYDIR}/dfu-util-${PV}
|
|
rm -f ${DEPLOYDIR}/dfu-util
|
|
ln -sf ./dfu-util-${PV} ${DEPLOYDIR}/dfu-util
|
|
}
|
|
|
|
addtask deploy before do_package after do_install
|
|
|
|
do_deploy[sstate-outputdirs] = "${DEPLOY_DIR_TOOLS}"
|
|
# cleandirs should possibly be in deploy.bbclass but we need it
|
|
do_deploy[cleandirs] = "${DEPLOYDIR}"
|
|
# clear stamp-extra-info since MACHINE_ARCH is normally put there by
|
|
# deploy.bbclass
|
|
do_deploy[stamp-extra-info] = ""
|
|
|