aboutsummaryrefslogtreecommitdiffhomepage
path: root/QC-dev-environment/update-builder.sh
diff options
context:
space:
mode:
authorThomas Van Iseghem <[email protected]>2023-03-09 20:22:56 +0100
committerThomas Van Iseghem <[email protected]>2023-03-09 20:22:56 +0100
commitd7814640a57323fc3fb410831e8d26083c7e0067 (patch)
treebfc493da2115890c0b78fa5ae9cff7fd30c27deb /QC-dev-environment/update-builder.sh
parent83728ae0b6584fcfec776abbb47afa1d12de6b24 (diff)
parent03c976530b91ab70510479bbc75c04cbe4c6d979 (diff)
downloadOpenCortex-develop.tar.gz
OpenCortex-develop.zip
Merge branch 'feature/docker-dev-environment' into developdevelop
Diffstat (limited to 'QC-dev-environment/update-builder.sh')
-rw-r--r--QC-dev-environment/update-builder.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/QC-dev-environment/update-builder.sh b/QC-dev-environment/update-builder.sh
new file mode 100644
index 0000000..ab4e8b9
--- /dev/null
+++ b/QC-dev-environment/update-builder.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+# This script can be used to apply OpenCortex patches to a mounted QC file system
+# And create a new update file from it
+
+# This script is intended to be run from the QC-dev-environment directory
+BLUE='\033[0;34m'
+NC='\033[0m' # No Color
+
+echo "${BLUE}========= OpenCortex Update Builder =========${NC}"
+
+cd /qc-fs-uncompressed
+
+echo ""
+echo "${BLUE}[+]${NC} Building update file..."
+echo ""
+tar cvf update-opencortex.bin rootfs.ext3 uImage zpu.dtb
+echo ""
+echo "This can take some seconds, please wait..."
+gzip -k update-opencortex.bin
+cp update-opencortex.bin.gz /qc-fs/update-opencortex.bin.gz
+echo ""
+echo "${BLUE}[+]${NC} Update file created: update-opencortex.bin.gz" \ No newline at end of file