From b3267625ca6e66dc8440be6d841e92388e5cdff6 Mon Sep 17 00:00:00 2001 From: matejcik Date: Thu, 21 Nov 2024 11:55:05 +0100 Subject: [PATCH] build(core): do not propagate PYOPT to kernel build to work around a build error the error: When built with PYOPT, Optiga will log its communication to the VCP. But now that VCP config lives in coreapp and Optiga lives in kernel, there's no way for Optiga to write to VCP, and the relevant calls simply don't build. We need a different method for logging inside the kernel. --- core/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Makefile b/core/Makefile index 5707ab72ea..644cce206a 100644 --- a/core/Makefile +++ b/core/Makefile @@ -300,7 +300,7 @@ build_reflash: ## build reflash firmware + reflash image dd if=build/bootloader/bootloader.bin of=$(REFLASH_BUILD_DIR)/sdimage.bin bs=1 seek=49152 build_kernel: ## build kernel image - $(SCONS) $(KERNEL_BUILD_DIR)/kernel.bin + $(SCONS) PYOPT=1 $(KERNEL_BUILD_DIR)/kernel.bin build_firmware: templates build_cross build_kernel ## build firmware with frozen modules $(SCONS) $(FIRMWARE_BUILD_DIR)/firmware.bin