Skip to content
Snippets Groups Projects
Commit b66abe91 authored by Esben Haabendal's avatar Esben Haabendal
Browse files

openharmony: Fix path to musl loader on armhf targets


Signed-off-by: default avatarEsben Haabendal <esben.haabendal@huawei.com>
parent 45cb8048
No related branches found
No related tags found
1 merge request!26Various changes in preparation for integration with meta-oniro-core
Pipeline #5856 passed
...@@ -95,6 +95,12 @@ GN_ARGS += 'node_path="${RECIPE_SYSROOT_NATIVE}/usr/bin"' ...@@ -95,6 +95,12 @@ GN_ARGS += 'node_path="${RECIPE_SYSROOT_NATIVE}/usr/bin"'
GN_ARGS += 'host_toolchain="//oniro:host_toolchain"' GN_ARGS += 'host_toolchain="//oniro:host_toolchain"'
GN_ARGS += 'install_oniro_third_party=false' GN_ARGS += 'install_oniro_third_party=false'
# OpenHarmony build system needs a bit of help to be able to find the right
# ld-musl-*.so path
inherit linuxloader
MUSL_LDSO_ARCH = "${@get_musl_loader_arch(d)}"
GN_ARGS += 'musl_arch="${MUSL_LDSO_ARCH}"'
# OpenHarmony unit tests are statically linked and therefore not stripped # OpenHarmony unit tests are statically linked and therefore not stripped
# binaries sum up to almost 80GB which makes it difficult to build OpenHarmony # binaries sum up to almost 80GB which makes it difficult to build OpenHarmony
# with tests on a normal desktop, let alone the CI runner # with tests on a normal desktop, let alone the CI runner
......
...@@ -117,6 +117,12 @@ GN_ARGS += 'flex_path="${RECIPE_SYSROOT_NATIVE}/usr/bin/flex"' ...@@ -117,6 +117,12 @@ GN_ARGS += 'flex_path="${RECIPE_SYSROOT_NATIVE}/usr/bin/flex"'
GN_ARGS += 'bison_path="${RECIPE_SYSROOT_NATIVE}/usr/bin/bison"' GN_ARGS += 'bison_path="${RECIPE_SYSROOT_NATIVE}/usr/bin/bison"'
GN_ARGS += 'flex_includedir="${RECIPE_SYSROOT_NATIVE}/usr/include"' GN_ARGS += 'flex_includedir="${RECIPE_SYSROOT_NATIVE}/usr/include"'
# OpenHarmony build system needs a bit of help to be able to find the right
# ld-musl-*.so path
inherit linuxloader
MUSL_LDSO_ARCH = "${@get_musl_loader_arch(d)}"
GN_ARGS += 'musl_arch="${MUSL_LDSO_ARCH}"'
# OpenHarmony unit tests are statically linked and therefore not stripped # OpenHarmony unit tests are statically linked and therefore not stripped
# binaries sum up to almost 80GB which makes it difficult to build OpenHarmony # binaries sum up to almost 80GB which makes it difficult to build OpenHarmony
# with tests on a normal desktop, let alone the CI runner # with tests on a normal desktop, let alone the CI runner
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
group("musl_install") { group("musl_install") {
deps = [ deps = [
"//third_party/musl:ld-musl-arm.so", "//third_party/musl:ld-musl.so",
"//third_party/musl:libc.so", "//third_party/musl:libc.so",
] ]
} }
...@@ -4,9 +4,10 @@ ...@@ -4,9 +4,10 @@
import("//build/ohos.gni") import("//build/ohos.gni")
import("//oniro/third_party.gni") import("//oniro/third_party.gni")
import("musl_config.gni")
ohos_prebuilt_executable("ld-musl-arm.so") { ohos_prebuilt_executable("ld-musl.so") {
source = "//oniro/sysroots/target/lib/ld-musl-arm.so.1" source = "//oniro/sysroots/target/lib/ld-musl-${musl_arch}.so.1"
subsystem_name = "common" subsystem_name = "common"
part_name = "common" part_name = "common"
install_enable = install_oniro_third_party install_enable = install_oniro_third_party
......
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