mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +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:
parent
146473ce0f
commit
9472f4a728
|
|
@ -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
|
||||
if [ "${SITEINFO_BITS}" != "32" ]; then
|
||||
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
|
||||
fi
|
||||
oe_runmake -C ${S} headers
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user