Skip to content

Commit

Permalink
Create boot only images
Browse files Browse the repository at this point in the history
  • Loading branch information
ayufan committed Jan 27, 2018
1 parent 03aa461 commit d7e891c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ image-bootloaders: \
bootloaders/sopine_baseboard-uboot.bin \
u-boot-sopine-flash-spi.img.xz \
u-boot-sopine-erase-spi.img.xz \
u-boot-pine64_plus-boot.img.xz \
u-boot-sopine_baseboard-boot.img.xz

.PHONY: versions
versions:
Expand Down
5 changes: 5 additions & 0 deletions Makefile.blobs.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@ u-boot-sopine-%.img: tmp/u-boot-sopine_baseboard/u-boot-with-spl.bin tmp/u-boot/
parted -s $@.tmp set 1 boot on
dd if=$(word 1,$^) of=$@.tmp seek=16 conv=notrunc status=none
mv "$@.tmp" $@

u-boot-%-boot.img: tmp/u-boot-%/u-boot-with-spl.bin
rm -f $@.tmp
dd if=$(word 1,$^) of=$@.tmp seek=16 conv=notrunc status=none
mv "$@.tmp" $@

0 comments on commit d7e891c

Please sign in to comment.