diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2023-10-24 16:53:18 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2023-11-06 09:39:26 -0800 |
commit | 57a4542cb7c9baa1509c3366b57a08d75b212ead (patch) | |
tree | 6c8454b564bca5a3919b3294621168cb27d53f2e /arch/riscv/kernel/mcount.S | |
parent | 9ba91d1356db3ad4df7c79d5284bc1427d51c03b (diff) | |
download | lwn-57a4542cb7c9baa1509c3366b57a08d75b212ead.tar.gz lwn-57a4542cb7c9baa1509c3366b57a08d75b212ead.zip |
riscv: boot: Fix creation of loader.bin
When flashing loader.bin for K210 using kflash:
[ERROR] This is an ELF file and cannot be programmed to flash directly: arch/riscv/boot/loader.bin
Before, loader.bin relied on "OBJCOPYFLAGS := -O binary" in the main
RISC-V Makefile to create a boot image with the right format. With this
removed, the image is now created in the wrong (ELF) format.
Fix this by adding an explicit rule.
Fixes: 505b02957e74f0c5 ("riscv: Remove duplicate objcopy flag")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Link: https://lore.kernel.org/r/1086025809583809538dfecaa899892218f44e7e.1698159066.git.geert+renesas@glider.be
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'arch/riscv/kernel/mcount.S')
0 files changed, 0 insertions, 0 deletions