aboutsummaryrefslogtreecommitdiffhomepage
path: root/CorOS-dev-environment/update-builder.sh
blob: ab4e8b9c717b458ced8fa3f201844d6ba7560c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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"