Skip to content
Snippets Groups Projects
Commit f5f47b33 authored by Bernhard Rosenkränzer's avatar Bernhard Rosenkränzer Committed by Zygmunt Krynicki
Browse files

gcc: Use DWARF-4 by default on non-Linux targets


Support for DWARF-5 is incomplete on Zephyr due to its reliance
on pyelftools for tests.
Default to DWARF-4 on non-Linux targets for the time being.

Signed-off-by: default avatarBernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
parent d671d6a6
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,15 @@ ARCH_FLAGS_FOR_TARGET += "-isystem${STAGING_DIR_TARGET}${target_includedir}"
do_configure_prepend () {
install -d ${RECIPE_SYSROOT}${target_includedir}
touch ${RECIPE_SYSROOT}${target_includedir}/limits.h
if ! echo ${@d.getVar("TARGET_OS")} |grep -qi linux; then
# Building Zephyr with DWARF-5 is problematic because
# its kernel tests use pyelftools, which has incomplete
# DWARF-5 support (even after applying preliminary
# support patches). Use DWARF-4 on Zephyr and FreeRTOS
# for the time being.
sed -i -e 's,Var(dwarf_version) Init(5),Var(dwarf_version) Init(4),' ${S}/gcc/common.opt
fi
}
do_compile () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment