mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-06 16:58:24 +00:00
kernel-selftest: handle missing -64.h headers
Some toolchains ship only bits/*.h without the -64.h suffix, causing the recipe to fail. Add a fallback to use *.h if *-64.h is not found, and warn if neither exists. Signed-off-by: Nylon Chen <nylon.chen@sifive.com> Signed-off-by: Joao Marcos Costa <joaomarcos.costa@bootlin.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -89,7 +89,16 @@ either install it and add it to HOSTTOOLS, or add clang-native from meta-clang t
|
|||||||
install -Dm 0644 ${STAGING_KERNEL_BUILDDIR}/.config ${S}/include/config/auto.conf
|
install -Dm 0644 ${STAGING_KERNEL_BUILDDIR}/.config ${S}/include/config/auto.conf
|
||||||
if [ "${SITEINFO_BITS}" != "32" ]; then
|
if [ "${SITEINFO_BITS}" != "32" ]; then
|
||||||
for f in long-double endianness floatn struct_rwlock; do
|
for f in long-double endianness floatn struct_rwlock; do
|
||||||
cp ${RECIPE_SYSROOT}${includedir}/bits/$f-64.h ${S}/bits/$f-32.h
|
src_base="${RECIPE_SYSROOT}${includedir}/bits/${f}"
|
||||||
|
if [ -f "${src_base}-64.h" ]; then
|
||||||
|
src="${src_base}-64.h"
|
||||||
|
elif [ -f "${src_base}.h" ]; then
|
||||||
|
src="${src_base}.h"
|
||||||
|
else
|
||||||
|
bbwarn "Missing header for bits/${f}{-64,.h} under ${RECIPE_SYSROOT}${includedir}/bits skipped"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
install -m 0644 "${src}" "${S}/bits/${f}-32.h"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
oe_runmake -C ${S} headers
|
oe_runmake -C ${S} headers
|
||||||
|
|||||||
Reference in New Issue
Block a user