summaryrefslogtreecommitdiff
path: root/build_everything.sh
blob: 479048a6d7308ea0a324d07b7bfaf15c358ee8e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh

cd optee_os
../build_optee.sh
cd ..

cd u-boot
../build_uboot.sh
cd ..

cd trusted-firmware-a
../build_atf.sh
cd ..

cd u-boot
../build_flashbin.sh
cd ..

FLASHBIN=`find /tmp/uboot-imx8mp -name flash.bin`
UBOOTITB=`find /tmp/uboot-imx8mp -name u-boot.itb`

echo "flash.bin:" "$FLASHBIN"
echo "u-boot.itb:" "$UBOOTITB"

if [ $USER = paulliu ]; then
    atftp -p -l "$FLASHBIN" -r flash.bin 192.168.66.10
    atftp -p -l "$UBOOTITB" -r u-boot.itb 192.168.66.10
fi

if [ $USER = paulliu ]; then
    atftp -p -l /tmp/uboot-imx8mp/capsule1.bin -r capsule1.bin 192.168.66.10
fi

echo "capsule: " "/tmp/uboot-imx8/capsule1.bin"