Skip to content
Snippets Groups Projects
Verified Commit 507ebb86 authored by Andrei Gherzan's avatar Andrei Gherzan :penguin:
Browse files

gcc-cross: Bring back the dwarf fix for non-Linux targets


This changes brings back the fix in

commit f5f47b33
Author: Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
Date:   Thu Oct 21 22:40:17 2021 +0200
    gcc: Use DWARF-4 by default on non-Linux targets

It was dropped when removing the local oniro version of gcc.

Signed-off-by: Andrei Gherzan's avatarAndrei Gherzan <andrei.gherzan@huawei.com>
parent 20846a87
No related branches found
No related tags found
1 merge request!30flavours/zephyr/local.conf.sample: Bump CONF_VERSION
# SPDX-FileCopyrightText: Huawei Inc.
#
# SPDX-License-Identifier: Apache-2.0
do_configure:prepend () {
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
}
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