add fix for funkey_gpio_management in Recovery

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK
2021-03-01 23:23:34 +01:00
parent 7678fcab13
commit 1862c4d21e
3 changed files with 16 additions and 5 deletions

View File

@@ -121,12 +121,13 @@ update: fun
@mkdir -p tmp
@cp FunKey/board/funkey/sw-description tmp/
@cp FunKey/board/funkey/update_partition tmp/
@cp -a Recovery/output/target/usr/local/sbin/funkey_gpio_management tmp/
@cd FunKey/output/images && \
rm -f rootfs.ext2.gz && \
gzip -k rootfs.ext2 &&\
mv rootfs.ext2.gz ../../../tmp/
@cd tmp && \
echo sw-description rootfs.ext2.gz update_partition | \
echo sw-description rootfs.ext2.gz update_partition funkey_gpio_management | \
tr " " "\n" | \
cpio -o -H crc --quiet > ../images/FunKey-rootfs-$(shell cat FunKey/board/funkey/rootfs-overlay/etc/sw-versions | cut -f 2).fwu
@rm -rf tmp