Set B to WORKDIR/build and clean that on configure so we ensure that the
build tree is clean.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
inherit kernelsrc
S = "${UNPACKDIR}/${BP}"
+B = "${WORKDIR}/build"
+do_configure[cleandirs] += "${B}"
# The LDFLAGS is required or some old kernels fails due missing
# symbols and this is preferred than requiring patches to every old
util/pmu-flex.h util/expr-flex.h util/expr-flex.c; do
f=${PKGD}${TARGET_DBGSRC_DIR}/$f
if [ -e $f ]; then
- sed -i -e 's#${S}/##g' $f
+ sed -i -e 's#${B}/##g' $f
fi
done
}