Browse Source

build: fix uImage fake header command

Use a syntax compatible with mkimage from u-boot 2018.03 to fix the
build errors spotted by the build bot.

The images are binary identical to the ones generated with mkimage from
u-boot 2014.10.

Signed-off-by: Mathias Kresin <[email protected]>
Mathias Kresin 7 years ago
parent
commit
38bd4e4eb5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      include/image-commands.mk

+ 2 - 1
include/image-commands.mk

@@ -80,10 +80,11 @@ endef
 # append a fake/empty rootfs uImage header, to fool the bootloaders
 # rootfs integrity check
 define Build/append-uImage-fakeroot-hdr
-	rm -f [email protected]
+	touch [email protected]
 	$(STAGING_DIR_HOST)/bin/mkimage \
 		-A $(LINUX_KARCH) -O linux -T filesystem -C none \
 		-n '$(call toupper,$(LINUX_KARCH)) $(VERSION_DIST) fakeroot' \
+		-d [email protected] \
 		-s \
 		[email protected]
 	cat [email protected] >> $@