Browse Source

Makefile: Adapt to open source spl_tool

Open source spl_tool provides the basic spl-hdr function to ensure
that bootrom can be correctly recognized and loaded.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
Samin Guo 1 year ago
parent
commit
ada3e8bd6f
2 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile
  2. BIN
      genimage_generic

+ 1 - 1
Makefile

@@ -486,7 +486,7 @@ sdimg: $(buildroot_rootfs_ext)
 	@./genimage.sh
 	@./genimage.sh
 
 
 img: sdimg
 img: sdimg
-	@./genimage_generic
+	$(wrkdir)/$(spl_tool) -i -f $(wrkdir)/sdcard.img
 
 
 #usb config
 #usb config
 format-usb-disk: $(sbi_bin) $(uboot) $(fit) $(vfat_image)
 format-usb-disk: $(sbi_bin) $(uboot) $(fit) $(vfat_image)

BIN
genimage_generic