summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorDeepesh Varatharajan <Deepesh.Varatharajan@windriver.com>2025-10-15 02:59:01 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-10-16 14:48:54 +0100
commit45684db38660b6c1a177d41eee02f624d0fb19f9 (patch)
tree0667ad5c6314aafb0d6b0ffd50e90d4549a2de18 /meta/lib
parent5284c01374eb3957ab13ff3f271424e9ee7b9840 (diff)
downloadpoky-45684db38660b6c1a177d41eee02f624d0fb19f9.tar.gz
rust: Increase QEMU size to 1024 MB
Rightnow rust depends on llvm instead of rust-llvm Setup in rust-llvm CFLAGS:remove = "-g" CXXFLAGS:remove = "-g" Setup in llvm DEBUG_LEVELFLAG = "-g1" As a result, the stage1 compiler crate binaries include debug symbols, increasing their size. These binaries are used to run tests inside QEMU. To accommodate this, increase the QEMU RAM allocation to 1024 MB. (From OE-Core rev: 1c87bca91c61a272266a0f2763e0477b66f06c13) Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/rust.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/rust.py b/meta/lib/oeqa/selftest/cases/rust.py
index 95859a9eef..06acf53e9a 100644
--- a/meta/lib/oeqa/selftest/cases/rust.py
+++ b/meta/lib/oeqa/selftest/cases/rust.py
@@ -102,8 +102,9 @@ class RustSelfTestSystemEmulated(OESelftestTestCase, OEPTestResultTestCase):
102 testargs = exclude_fail_tests + " --no-doc --no-fail-fast --bless" 102 testargs = exclude_fail_tests + " --no-doc --no-fail-fast --bless"
103 103
104 # wrap the execution with a qemu instance. 104 # wrap the execution with a qemu instance.
105 # Tests are run with 512 tasks in parallel to execute all tests very quickly 105 # Set QEMU RAM to 1024MB to support running unit tests for the compiler crate, including larger
106 with runqemu("core-image-minimal", runqemuparams = "nographic", qemuparams = "-m 512") as qemu: 106 # test cases and parallel execution in the test environment.
107 with runqemu("core-image-minimal", runqemuparams = "nographic", qemuparams = "-m 1024") as qemu:
107 # Copy remote-test-server to image through scp 108 # Copy remote-test-server to image through scp
108 host_sys = get_bb_var("RUST_BUILD_SYS", "rust") 109 host_sys = get_bb_var("RUST_BUILD_SYS", "rust")
109 ssh = SSHControl(ip=qemu.ip, logfile=qemu.sshlog, user="root") 110 ssh = SSHControl(ip=qemu.ip, logfile=qemu.sshlog, user="root")