Closed JiiZR closed 1 year ago
You have not escaped the command, try: west build -p always -b b_u585i_iot02a boot\zephyr '-DCONFIG_BOOT_SIGNATURE_KEY_FILE="own-root-rsa-2048.pem"'
Closing as user error, not a bug.
Hmm, Did you try to build ? I'am getting:
C:\Data\ZEP\zephyr_latest\bootloader\mcuboot>west build -p always -b b_u585i_iot02a boot\zephyr '-DCONFIG_BOOT_SIGNATURE_KEY_FILE="own-root-rsa-2048.pem"' -- west build: making build dir C:\Data\ZEP\zephyr_latest\bootloader\mcuboot\build pristine -- west build: generating a build system CMake Warning: Ignoring extra path from command line:
"'-DCONFIG_BOOT_SIGNATURE_KEY_FILE=own-root-rsa-2048.pem'"
west build -p always -b nrf52840dk_nrf52840 boot/zephyr '-DCONFIG_BOOT_SIGNATURE_KEY_FILE="own-root-rsa-2048.pem"'
-- west build: making build dir /tmp/aa/bootloader/mcuboot/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /tmp/aa/bootloader/mcuboot/boot/zephyr
-- CMake version: 3.26.3
-- Found Python3: /usr/bin/python3.10 (found suitable exact version "3.10.10") found components: Interpreter
-- Cache files will be written to: /home/jamie/.cache/zephyr
-- Zephyr version: 3.3.99 (/tmp/aa/zephyr)
...
MCUBoot bootloader key file: /tmp/aa/bootloader/mcuboot/own-root-rsa-2048.pem
-- Configuring done (4.6s)
-- Generating done (0.1s)
-- Build files have been written to: /tmp/aa/bootloader/mcuboot/build
-- west build: building application
ninja: error: '/tmp/aa/bootloader/mcuboot/own-root-rsa-2048.pem', needed by 'zephyr/autogen-pubkey.c', missing and no known rule to make it
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /tmp/aa/bootloader/mcuboot/build
You might need to escape the quotes as \" on windows
So, Windows syntax is:
west build -p auto -b b_u585i_iot02a boot\zephyr -DCONFIG_BOOT_SIGNATURE_KEY_FILE=\"own-root-rsa-2048.pem\"
Thanks for the support and I'am sorry about the hassle.
Thanks for the support and I'am sorry about the hassle.
No hassle, just not a bug, glad it's resolved :)
Describe the bug I have generated own signature file and I tried to build MCUboot but kconfig fails. I have tried also default file (root-rsa-2048.pem) but build still fails.
To Reproduce Steps to reproduce the behavior:
Expected behavior build should be OK
Impact build fails
Logs and console output
C:\Data\ZEP\zephyr_latest\bootloader\mcuboot>west build -p always -b b_u585i_iot02a boot\zephyr -DCONFIG_BOOT_SIGNATURE_KEY_FILE="own-root-rsa-2048.pem" -- west build: making build dir C:\Data\ZEP\zephyr_latest\bootloader\mcuboot\build pristine -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: C:/Data/ZEP/zephyr_latest/bootloader/mcuboot/boot/zephyr -- CMake version: 3.26.2 -- Found Python3: C:/Python311/python.exe (found suitable exact version "3.11.2") found components: Interpreter -- Cache files will be written to: C:/Data/ZEP/zephyr_latest/zephyr/.cache -- Zephyr version: 3.3.99 (C:/Data/ZEP/zephyr_latest/zephyr) -- Found west (found suitable version "1.0.0", minimum required is "0.7.1") -- Board: b_u585i_iot02a -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK -- Found host-tools: zephyr 0.16.0 (C:/Build/zephyr-sdk-0.16.0) -- Found toolchain: zephyr 0.16.0 (C:/Build/zephyr-sdk-0.16.0) -- Found Dtc: C:/ProgramData/chocolatey/bin/dtc.exe (found suitable version "1.5.0", minimum required is "1.4.6") -- Found BOARD.dts: C:/Data/ZEP/zephyr_latest/zephyr/boards/arm/b_u585i_iot02a/b_u585i_iot02a.dts -- Found devicetree overlay: C:/Data/ZEP/zephyr_latest/bootloader/mcuboot/boot/zephyr/app.overlay -- Generated zephyr.dts: C:/Data/ZEP/zephyr_latest/bootloader/mcuboot/build/zephyr/zephyr.dts -- Generated devicetree_generated.h: C:/Data/ZEP/zephyr_latest/bootloader/mcuboot/build/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: C:/Data/ZEP/zephyr_latest/bootloader/mcuboot/build/zephyr/dts.cmake C:/Data/ZEP/zephyr_latest/bootloader/mcuboot/build/zephyr/zephyr.dts:709.7-732.5: Warning (simple_bus_reg): /soc/can: missing or empty reg/ranges property C:/Data/ZEP/zephyr_latest/bootloader/mcuboot/build/zephyr/zephyr.dts:627.30-656.5: Warning (spi_bus_bridge): /soc/octospi@420d2400: node name for SPI buses should be 'spi'