Skip to content
Snippets Groups Projects

many: enable sysota for QEMU x86{,-64}

Merged Zygmunt Krynicki requested to merge zyga/oniro:feature/sysota-grub-support into kirkstone
All threads resolved!
1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
  • 7eacf211
    sysota: disable shared linking · 7eacf211
    Zygmunt Krynicki authored
    Shared linking has caused some problems on x86, where sysotactl would
    crash on an apparently-stray pointer. This looks like a compiler bug.
    
    Shared linking mode causes Go's standard library to be built into a
    large .so file and all applications link to that with the dynamic
    linker.
    
    Given that sysota is the only Go application in our image and that is
    has only one binary, this does not bring meaningful savings. In fact,
    without shared linking, the overall image size is smaller as unused
    parts of Go stdlib are removed.
    
    Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
@@ -12,6 +12,14 @@ SRC_URI = "git://gitlab.com/zygoon/sysota.git;protocol=https;branch=main \
SRCREV = "6aec6e345e7c7f6d94932acbebeada32fde33162"
S = "${WORKDIR}/git"
# Disable linking to shared Go stdlib.
# This fixes a crash when using Go 1.17 on x86.
# https://gitlab.eclipse.org/eclipse/oniro-core/sysota/-/issues/7
GO_DYNLINK:x86 = ""
GO_DYNLINK:x86-64 = ""
GO_DYNLINK:arm = ""
GO_DYNLINK:aarch64 = ""
# This package is built with go-mod as well as with make.
#
# The go-mod build is done in the ${B} directory but is not sufficient for
Loading