- Sep 14, 2021
-
-
Stefan Schmidt authored
Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
python3-pyelftools 0.26 can't handle DWARF-5, which is generated by default by modern toolchains (clang 12+, gcc 11+). Update it to 0.27 with an extra patch taken from upstream git to support DWARF-5 so we can use it (e.g. in the Zephyr kernel test suite) without switching the toolchains back to DWARF-4. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Amit Kucheria authored
We first convert over qemuarm, qemuarm64, qemux86 and qemux86-64 to use the common kernel. Signed-off-by:
Amit Kucheria <amit.kucheria.ext@huawei.com>
-
Amit Kucheria authored
These will be similar to linux-yocto, but customized to the ASOS kernel policies and support our reference HW. qemuarm and qemuarm64 builds aren't yet supported by wic, but we can still start building the kernels from a common base. Signed-off-by:
Amit Kucheria <amit.kucheria.ext@huawei.com>
-
Amit Kucheria authored
This rename also better reflects the purpose of the file since it reflects ASOS kernel policies. Signed-off-by:
Amit Kucheria <amit.kucheria.ext@huawei.com>
-
- Sep 13, 2021
-
-
Andrei Gherzan authored
We have merged in the inclusion of NetworkManager in the reference images so we can disable networkd to avoid runtime conflict. Fixes https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/112 Signed-off-by:
Andrei Gherzan <andrei.gherzan@huawei.com>
-
Esben Haabendal authored
The recently introduced fixes for networkmanager introduced an implicit dependency on meta-networking. This change allows use of meta-ohos-staging without meta-networking layer, without changing behaviour when used together with meta-networking. Signed-off-by:
Esben Haabendal <esben.haabendal@huawei.com>
-
- Sep 10, 2021
-
-
Stefan Schmidt authored
This problem showed when building nodejs and resulted in an error of malformed archives: libv8_initializers.a: error adding symbols: malformed archive There was a corner case where the fd's have not been closed on thin archives and nodejs was heavy enough to be linked to show this problem. Upstream report and analysis can be seen here: https://sourceware.org/bugzilla/show_bug.cgi?id=28138 Fix is already upstream and just a backport for 2.37 added here. Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
- Sep 09, 2021
-
-
Zygmunt Krynicki authored
The cache is relatively network-heavy, as it attempts to check if one of myriad of cache files is available and is somewhat misleading, since the cache only works for the small subset of configurations that have been cleared for legal re-distribution and have a public cache available. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
-
- Sep 08, 2021
-
-
Bernhard Rosenkränzer authored
Fix crash on startup with networkmanager built with musl Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
This provides a fully fledged network manager in our reference images. Signed-off-by:
Andrei Gherzan <andrei.gherzan@huawei.com>
-
Signed-off-by:
Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com> [adapted to current meta-ohos]
-
On musl, build would fail with: | In file included from ../NetworkManager-1.22.10/shared/systemd/src/basic/env-util.c:11: | ../NetworkManager-1.22.10/shared/systemd/src/basic/alloc-util.h:100:35: error: static declaration of 'reallocarray' follows non-static declaration | 100 | _alloc_(2, 3) static inline void *reallocarray(void *p, size_t need, size_t size) { | | ^~~~~~~~~~~~ | In file included from ../NetworkManager-1.22.10/shared/nm-default.h:184, | from ../NetworkManager-1.22.10/shared/systemd/sd-adapt-shared/nm-sd-adapt-shared.h:9, | from ../NetworkManager-1.22.10/shared/systemd/src/basic/env-util.c:3: | [...]/build-linux/tmp/work/aarch64-poky-linux-musl/networkmanager/1.22.10-r0/recipe-sysroot/usr/include/stdlib.h:148:7: note: previous declaration of 'reallocarray' with type 'void *(void *, size_t, size_t)' {aka 'void *(void *, long unsigned int, long unsigned int)'} | 148 | void *reallocarray (void *, size_t, size_t); | | ^~~~~~~~~~~~ This is because musl does't provide reallocarray as part of malloc.h but only as part of stdlib.h. Configure script was modified to check for its definition in stdlib.h as well (backported patch). Signed-off-by:
Andrei Gherzan <andrei.gherzan@huawei.com> Signed-off-by: Bernhard Rosenkraenzer <bernhard.rosenkraenzer.ext@huawei.com> [adapt filename in .bbappend to match the actual patch filename]
-
Pavel Zhukov authored
Due to custom option parser implementation weston accepts only one argument of given type. As the result if multiple modules add --module only last will be used. This fix introduces wrapper around modules in terms of weston-init to prepare proper modules argument for weston and moves systemd-notify module into weston-init module instead of command line argument Based on Poky revision #bdd30be1a3815f70062d8febca91eaf042a77c3d Downstream changes: Adding add_weston_module function into weston-start script and modify xwayland plugin to use new interface. Submitted upstream: https://lists.openembedded.org/g/openembedded-core/topic/patch_weston_wrapper_for/85453995 Ref: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/110 Signed-off-by:
Pavel Zhukov <pavel.zhukov@huawei.com>
-
Stefan Schmidt authored
In version 2.0.11 a potential security bug (CVE-2021-34431) was fixed. Reports: https://nvd.nist.gov/vuln/detail/CVE-2021-34431 https://bugs.eclipse.org/bugs/show_bug.cgi?id=573191 Fix: https://github.com/eclipse/mosquitto/commit/42163634c72d41a1f12d299f54e00adf14520eb2 Updating to the latest stable update 2.0.12 here for our reciep to collect all the fixes. The notice.html file got renamed to NOTICE.md, adjust accordingly. Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
Zygmunt Krynicki authored
LAVA jobs are AFAIK not useful since the read-only images landed. Since we've disabled publishing image artifacts earlier, let's properly disable the LAVA jobs as well. This commit should be reverted when LAVA jobs are working and the slowness issue was debugged. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
-
Zygmunt Krynicki authored
There are indications that upload pipe between GitLab workers and the OSTC GitLab instance is slowing down CI, making an otherwise fast machine idle while it waits for network traffic. Since the images were only consumed by LAVA and for the moment, LAVA is disabled, switch jobs using .build-image to .build-recipe. The only difference is that now artifacts are discarded immediately after the build. This is a temporary workaround that can be reverted once the situation is debugged further. Signed-off-by:
Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
-
Andrei Gherzan authored
We revert this workaround as the existing poky plugin, bootimg-pcbios.py, includes the needed support as per the last poky bump in the manifest repository. PartOf: https://git.ostc-eu.org/OSTC/OHOS/meta-ohos/-/issues/97 Signed-off-by:
Andrei Gherzan <andrei.gherzan@huawei.com>
-
Pavel Zhukov authored
Ref: https://git.ostc-eu.org/OSTC/planning/devops/-/issues/70 Signed-off-by:
Pavel Zhukov <pavel.zhukov@huawei.com>
-
Stefan Schmidt authored
The wpantund package is only needed for scenarios where the OpenThread device is operating in network co-processor (NCP) mode. We are not using NCP, but radio co-processor (RCP instead). The later one works with ot-br-posix out of the box and we have no need for wpantund, as of now. Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
Stefan Schmidt authored
The patch is pending in the upstream PR queue for a while now. Include it here until its merged upstream and we can update. Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
Stefan Schmidt authored
The CVE issue CVE-2020-8916 has been fixed in the upstream repo for a long time and our recipe has this commit already included. https://cve.mitre.org/cgi-bin/cvename.cgi?name=2020-8916 Mark the CVE as such. Signed-off-by:
Stefan Schmidt <stefan.schmidt@huawei.com>
-
- Sep 07, 2021
-
-
Esben Haabendal authored
Using current meta-java in a project configured for a riscv32 machine gives the following error: ERROR: ExpansionError during parsing /home/esben/ostc/openharmony/poky/meta-java/recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb Traceback (most recent call last): File "Var <LLVM_CONFIGURE_ARCH>", line 1, in <module> File "/home/esben/ostc/openharmony/poky/meta-java/classes/openjdk-build-helper.bbclass", line 86, in openjdk_build_helper_get_llvm_configure_arch(d=<bb.data_smart.DataSmart object at 0x7fc729388940>): else: > if 'shark' in d.getVar('PACKAGECONFIG').split(): bb.warn("%s does not support %s in Shark builds yet" % (d.getVar('PN'), arch) ); bb.data_smart.ExpansionError: Failure expanding variable LLVM_CONFIGURE_ARCH, expression was ${@openjdk_build_helper_get_llvm_configure_arch(d)} which triggered exception AttributeError: 'NoneType' object has no attribute 'split' Which is caused by the attempt to expand PACKAGECONFIG variable, which is only set for selected architectures. Defaulting it to empty is a sane fix to that. A patch for meta-java doing the same have been submitted. Signed-off-by:
Esben Haabendal <esben.haabendal@huawei.com>
-
Esben Haabendal authored
We don't use meta-java in OHOS, and are re-using meta-ohos-staging in meta-openharmony, which does use meta-java. So in order to allow staging changes to meta-java recipes, we need this dynamic layer to avoid breaking OHOS. Signed-off-by:
Esben Haabendal <esben.haabendal@huawei.com>
-
Bernhard Rosenkränzer authored
util-linux uses autogenerated non-literal format strings in its hexdump code. Those strings have been verified to be safe in 2.35.1. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping util-linux building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
shadow uses non-literal format strings to integrate system information into the login prompt. This is harmless because harmful format strings are checked for (and in the worst case, the strings come from a file that is writable by root only). Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping shadow building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
diffutils uses non-literal format strings in a few places. This has been verified to be harmless in 3.7 Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping diffutils building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
make uses non-literal format strings in a few places. This has been verified to be harmless in 4.3 Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping make building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
bison uses non-literal format strings in a few places. This has been verified to be harmless in 3.5.4. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping bison building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
sed uses non-literal format strings in a few places. This has been verified to be harmless in 4.8. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping sed building. TARGET_CFLAGS_remove = "-Werror=format-nonliteral" Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
flex uses non-literal format strings in a few places. This has been verified to be harmless in 2.6.4. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping flex building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
gmp uses non-literal format strings to implement its own printing functions. This has been verified to be harmless in 6.2.0. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping gmp building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
db converter uses non-literal format strings in a few places. This has been verified to be harmless in 5.3.28. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping db building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
ncurses' termcap to terminfo converter uses a non-literal format string. This has been verified to be harmless in 6.2 (the "unsafe" use of sscanf happens only with hardcoded, safe strings). Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping ncurses building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
openssl's opt tool uses a non-literal format string for help texts. This has been verified to be harmless in 1.1.1k (the "unsafe" use of a printf style function happens only with hardcoded, safe strings). Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping openssl building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
hdparm's sysfs I/O functions trigger warnings with -Wformat-nonliteral, but the format strings are checked by other means. This has been verified to be harmless in 9.58. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping hdparm building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
busybox implements some of its own string handling that triggers warnings with -Wformat-nonliteral. This has been verified to be harmless in 1.31.1. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping busybox building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
unzip uses some #define trickery that triggers warnings with -Wformat-nonliteral. This has been verified to be harmless in 6.0. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping unzip building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
zip uses some #define trickery that triggers warnings with -Wformat-nonliteral. This has been verified to be harmless in 3.0. Removing -Werror=format-nonliteral here allows us to use -Werror=format-nonliteral globally in OPTIMIZE_FOR=security mode while keeping zip building. Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-
Bernhard Rosenkränzer authored
This is a workaround for a legitimate xtc-acts bug modern compilers complain about when extra warnings for potential security problems are enabled. While this is not the proper fix and this should be fixed properly at some point (reading 16 bytes from a 12-character string is not a good idea...), this is enough to keep the build working until someone has time to fix it properly, and it doesn't make things worse (before, this just went unnoticed because the warning wasn't enabled). Signed-off-by:
Bernhard Rosenkränzer <bernhard.rosenkraenzer.ext@huawei.com>
-