Skip to content

Commit

Permalink
Switch to 'update.zip' for updates
Browse files Browse the repository at this point in the history
This avoids some updates only needing an updated rootfs, while
others require a kernel and initramfs update as well. Now, the
user just needs to extract this update.zip file to the root of
their SD card.
  • Loading branch information
ALSchwalm committed Oct 10, 2018
1 parent 79043f9 commit 0483946
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ make-image:
name: "sdimage-$CI_COMMIT_SHA"
paths:
- sdcard.img.zip
- rootfs.squashfs
- update.zip
- build.log
when: always
cache:
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ else
endif
git submodule > buildroot/output/.cache-version
zip -j sdcard.img.zip buildroot/output/images/sdcard.img
cp buildroot/output/images/rootfs.squashfs .

zip -j update.zip buildroot/output/images/zImage \
buildroot/output/images/rootfs.squashfs \
buildroot/output/images/initramfs.cpio.lzo
.PHONY: update-config
update-config:
cd "$(CURDIR)/buildroot" && cp "configs/piso_defconfig" ".config"
Expand Down

0 comments on commit 0483946

Please sign in to comment.