@@ -11,6 +11,9 @@ CARGO_MAKE_RUST_TARGET_ARCH = { value = "x86_64", condition = { env_not_set = ["
1111PACKAGE_NAME = { value = " services_benchmark_test" , condition = { env_not_set = [" PACKAGE_NAME" ] } }
1212BUILD_MODE = { value = " release" , condition = { env_not_set = [" BUILD_MODE" ] } }
1313
14+ # no_std build flags for UEFI
15+ NO_STD_FLAGS = " -Zbuild-std=core,compiler_builtins,alloc -Zbuild-std-features=compiler-builtins-mem -Zunstable-options"
16+
1417# Target configuration based on architecture
1518UEFI_TARGET_X64 = " x86_64-unknown-uefi"
1619UEFI_TARGET_ARM64 = " aarch64-unknown-uefi"
@@ -42,28 +45,28 @@ script = [
4245[tasks .build-lib ]
4346description = " Build the library for UEFI target"
4447command = " cargo"
45- args = [" build" , " --lib" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" ]
48+ args = [" build" , " --lib" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " @@split(NO_STD_FLAGS, ) " ]
4649dependencies = [" setup" ]
4750
4851# Build library in release mode
4952[tasks .build-lib-release ]
5053description = " Build the library for UEFI target in release mode"
5154command = " cargo"
52- args = [" build" , " --lib" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " --release" ]
55+ args = [" build" , " --lib" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " --release" , " @@split(NO_STD_FLAGS, ) " ]
5356dependencies = [" setup" ]
5457
5558# Build binary
5659[tasks .build-bin ]
5760description = " Build the binary for UEFI target"
5861command = " cargo"
59- args = [" build" , " --bin" , " ${PACKAGE_NAME}" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" ]
62+ args = [" build" , " --bin" , " ${PACKAGE_NAME}" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " @@split(NO_STD_FLAGS, ) " ]
6063dependencies = [" setup" ]
6164
6265# Build binary in release mode
6366[tasks .build-bin-release ]
6467description = " Build the binary for UEFI target in release mode"
6568command = " cargo"
66- args = [" build" , " --bin" , " ${PACKAGE_NAME}" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " --release" ]
69+ args = [" build" , " --bin" , " ${PACKAGE_NAME}" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " --release" , " @@split(NO_STD_FLAGS, ) " ]
6770dependencies = [" setup" ]
6871
6972# Build EFI application
@@ -149,7 +152,7 @@ args = ["llvm-cov", "--no-report"]
149152[tasks .clippy ]
150153description = " Run clippy for the package"
151154command = " cargo"
152- args = [" clippy" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " --" , " -D" , " warnings" ]
155+ args = [" clippy" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " @@split(NO_STD_FLAGS, ) " , " --" , " -D" , " warnings" ]
153156dependencies = [" setup" ]
154157
155158# Format code
@@ -162,7 +165,7 @@ args = ["fmt", "-p", "${PACKAGE_NAME}"]
162165[tasks .check ]
163166description = " Check code for the package"
164167command = " cargo"
165- args = [" check" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" ]
168+ args = [" check" , " -p" , " ${PACKAGE_NAME}" , " --target" , " ${UEFI_TARGET}" , " @@split(NO_STD_FLAGS, ) " ]
166169dependencies = [" setup" ]
167170
168171# Full CI pipeline
@@ -197,4 +200,4 @@ script = "cspell --quiet --no-progress --no-summary --dot --gitignore -e \"{.g
197200
198201[tasks .all ]
199202description = " Run all tasks for PR readiness."
200- dependencies = [" deny" , " clippy" , " cspell" , " build" , " test" , " coverage" , " fmt" , " doc" ]
203+ dependencies = [" deny" , " clippy" , " cspell" , " build" , " test" , " coverage" , " fmt" , " doc" ]
0 commit comments