-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathpatch.sh
62 lines (49 loc) · 1.07 KB
/
patch.sh
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
target=$1
cp ./patch/*v0.39-v1.patch ./plutosdr-fw/hdl
cp ./patch/${target}/*linux.patch ./plutosdr-fw/linux
cp ./patch/${target}/*buildroot.patch ./plutosdr-fw/buildroot
cp ./patch/${target}/*scripts.patch ./plutosdr-fw/
cp ./patch/${target}/*uboot.patch ./plutosdr-fw/u-boot-xlnx
echo "Patch check..."
cd ./plutosdr-fw/hdl
git apply --stat *.patch
git apply --check *.patch
cd ../..
cd ./plutosdr-fw/u-boot-xlnx
git apply --stat *.patch
git apply --check *.patch
cd ../..
cd ./plutosdr-fw/linux
git apply --stat *.patch
git apply --check *.patch
cd ../..
cd ./plutosdr-fw/buildroot
git apply --stat *.patch
git apply --check *.patch
cd ../..
cd ./plutosdr-fw/
git apply --stat *.patch
git apply --check *.patch
cd ../
echo "Patch..."
cd ./plutosdr-fw/hdl
git apply *.patch
rm -rf *.patch
cd ../..
cd ./plutosdr-fw/u-boot-xlnx
git apply *.patch
rm -rf *.patch
cd ../..
cd ./plutosdr-fw/linux
git apply *.patch
rm -rf *.patch
cd ../..
cd ./plutosdr-fw/buildroot
git apply *.patch
rm -rf *.patch
cd ../..
cd ./plutosdr-fw/
git apply *.patch
rm -rf *.patch
cd ../
echo "patch finish"