linux/arch/riscv
Geert Uytterhoeven 57a4542cb7
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: 505b02957e ("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>
2023-11-06 09:39:26 -08:00
..
boot riscv: boot: Fix creation of loader.bin 2023-11-06 09:39:26 -08:00
configs riscv: defconfig : add CONFIG_MMC_DW for starfive 2023-11-05 09:04:54 -08:00
errata Merge patch series "Add non-coherent DMA support for AX45MP" 2023-09-08 11:24:34 -07:00
include Merge patch series "riscv: tlb flush improvements" 2023-11-06 07:20:54 -08:00
kernel Merge patch series "riscv: tlb flush improvements" 2023-11-06 07:20:54 -08:00
kvm KVM/riscv changes for 6.6 2023-08-31 13:25:55 -04:00
lib RISC-V: capitalise CMO op macros 2023-11-05 09:11:23 -08:00
mm Merge patch series "riscv: tlb flush improvements" 2023-11-06 07:20:54 -08:00
net bpf, riscv: use prog pack allocator in the BPF JIT 2023-09-06 06:26:07 -07:00
purgatory Merge patch series "riscv: SCS support" 2023-11-02 14:05:23 -07:00
tools riscv: Check relocations at compile time 2023-04-19 07:46:32 -07:00
Kbuild kexec: rename ARCH_HAS_KEXEC_PURGATORY 2023-08-18 10:18:54 -07:00
Kconfig Merge patch series "Add support to handle misaligned accesses in S-mode" 2023-11-05 06:42:51 -08:00
Kconfig.debug RISC-V: Remove EARLY_PRINTK support 2018-12-17 10:23:46 -08:00
Kconfig.errata riscv: Kconfig.errata: Add dependency for RISCV_SBI in ERRATA_ANDES config 2023-09-08 11:25:28 -07:00
Kconfig.socs RISC-V: make ARCH_THEAD preclude XIP_KERNEL 2023-07-05 22:21:23 +02:00
Makefile riscv: Implement Shadow Call Stack 2023-10-27 14:43:08 -07:00
Makefile.postlink riscv: Use --emit-relocs in order to move .rela.dyn in init 2023-04-19 07:46:33 -07:00