From f97633cd7c1992e5e1facdbf58a35d8c312300dc Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Tue, 28 May 2024 11:04:25 +0200 Subject: [PATCH] Build using production keys --- firmware/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/default.nix b/firmware/default.nix index f658356..3e5c77e 100644 --- a/firmware/default.nix +++ b/firmware/default.nix @@ -45,7 +45,7 @@ let ''; # strictDeps = true; - cargoExtraArgs = "-Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target thumbv7em-none-eabihf --no-default-features --features=${variant} -v"; + cargoExtraArgs = "-Z build-std=std,panic_abort -Z build-std-features=panic_immediate_abort --target thumbv7em-none-eabihf --no-default-features --features=${variant},production -v"; CC_thumbv7em_none_eabihf = "clang-17"; CFLAGS_thumbv7em_none_eabihf = "-flto -fno-data-sections -fno-function-sections -fno-PIC -fno-stack-protector --target=thumbv7em-none-eabihf -mcpu=cortex-m4 -mthumb -I${pkgs.clang_17}/resource-root/include/ -I${pkgs.gcc-arm-embedded}/arm-none-eabi/include"; };