Message ID | 20200212103432.660256-11-damien.lemoal@wdc.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Kendryte k210 SoC boards support | expand |
On Wed, Feb 12, 2020 at 4:05 PM Damien Le Moal <damien.lemoal@wdc.com> wrote: > > From: Christoph Hellwig <hch@lst.de> > > This can be loaded into the Kendryte KD210 based boards using: > > kflash.py/kflash.py -t arch/riscv/boot/loader.bin > > Signed-off-by: Christoph Hellwig <hch@lst.de> > Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> LGTM. Reviewed-by: Anup Patel <anup@brainfault.org> Regards, Anup > --- > arch/riscv/Makefile | 4 ++-- > arch/riscv/boot/Makefile | 3 +++ > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index b9009a2fbaf5..440969763e14 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -84,11 +84,11 @@ vdso_install: > $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@ > > ifeq ($(CONFIG_RISCV_M_MODE),y) > -KBUILD_IMAGE := $(boot)/loader > +KBUILD_IMAGE := $(boot)/loader.bin > else > KBUILD_IMAGE := $(boot)/Image.gz > endif > -BOOT_TARGETS := Image Image.gz loader > +BOOT_TARGETS := Image Image.gz loader loader.bin > > all: $(notdir $(KBUILD_IMAGE)) > > diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile > index 36db8145f9f4..3530c59b3ea7 100644 > --- a/arch/riscv/boot/Makefile > +++ b/arch/riscv/boot/Makefile > @@ -41,6 +41,9 @@ $(obj)/Image.lzma: $(obj)/Image FORCE > $(obj)/Image.lzo: $(obj)/Image FORCE > $(call if_changed,lzo) > > +$(obj)/loader.bin: $(obj)/loader FORCE > + $(call if_changed,objcopy) > + > install: > $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ > $(obj)/Image System.map "$(INSTALL_PATH)" > -- > 2.24.1 > >
On Wed, 12 Feb 2020 02:34:32 PST (-0800), Damien Le Moal wrote: > From: Christoph Hellwig <hch@lst.de> > > This can be loaded into the Kendryte KD210 based boards using: > > kflash.py/kflash.py -t arch/riscv/boot/loader.bin > > Signed-off-by: Christoph Hellwig <hch@lst.de> > Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> > --- > arch/riscv/Makefile | 4 ++-- > arch/riscv/boot/Makefile | 3 +++ > 2 files changed, 5 insertions(+), 2 deletions(-) > > diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile > index b9009a2fbaf5..440969763e14 100644 > --- a/arch/riscv/Makefile > +++ b/arch/riscv/Makefile > @@ -84,11 +84,11 @@ vdso_install: > $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@ > > ifeq ($(CONFIG_RISCV_M_MODE),y) > -KBUILD_IMAGE := $(boot)/loader > +KBUILD_IMAGE := $(boot)/loader.bin > else > KBUILD_IMAGE := $(boot)/Image.gz > endif > -BOOT_TARGETS := Image Image.gz loader > +BOOT_TARGETS := Image Image.gz loader loader.bin > > all: $(notdir $(KBUILD_IMAGE)) > > diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile > index 36db8145f9f4..3530c59b3ea7 100644 > --- a/arch/riscv/boot/Makefile > +++ b/arch/riscv/boot/Makefile > @@ -41,6 +41,9 @@ $(obj)/Image.lzma: $(obj)/Image FORCE > $(obj)/Image.lzo: $(obj)/Image FORCE > $(call if_changed,lzo) > > +$(obj)/loader.bin: $(obj)/loader FORCE > + $(call if_changed,objcopy) > + > install: > $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ > $(obj)/Image System.map "$(INSTALL_PATH)" I'm a bit worried about having a big pile of odd formats floating around in here, but given that there are very few RISC-V boards around I think it's OK to err on the side of just collecting everything in one place and organizing it later -- it's kind of hard to organize two things :) Reviewed-by: Palmer Dabbelt <palmerdabbelt@google.com>
diff --git a/arch/riscv/Makefile b/arch/riscv/Makefile index b9009a2fbaf5..440969763e14 100644 --- a/arch/riscv/Makefile +++ b/arch/riscv/Makefile @@ -84,11 +84,11 @@ vdso_install: $(Q)$(MAKE) $(build)=arch/riscv/kernel/vdso $@ ifeq ($(CONFIG_RISCV_M_MODE),y) -KBUILD_IMAGE := $(boot)/loader +KBUILD_IMAGE := $(boot)/loader.bin else KBUILD_IMAGE := $(boot)/Image.gz endif -BOOT_TARGETS := Image Image.gz loader +BOOT_TARGETS := Image Image.gz loader loader.bin all: $(notdir $(KBUILD_IMAGE)) diff --git a/arch/riscv/boot/Makefile b/arch/riscv/boot/Makefile index 36db8145f9f4..3530c59b3ea7 100644 --- a/arch/riscv/boot/Makefile +++ b/arch/riscv/boot/Makefile @@ -41,6 +41,9 @@ $(obj)/Image.lzma: $(obj)/Image FORCE $(obj)/Image.lzo: $(obj)/Image FORCE $(call if_changed,lzo) +$(obj)/loader.bin: $(obj)/loader FORCE + $(call if_changed,objcopy) + install: $(CONFIG_SHELL) $(srctree)/$(src)/install.sh $(KERNELRELEASE) \ $(obj)/Image System.map "$(INSTALL_PATH)"