-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathgitinitsubmodules.sh
More file actions
executable file
·40 lines (36 loc) · 1.21 KB
/
gitinitsubmodules.sh
File metadata and controls
executable file
·40 lines (36 loc) · 1.21 KB
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
#!/bin/bash
echo "Preparing checkout of u-boot v2020.10 without history..."
cd u-boot
git init
git remote add origin https://github.com/u-boot/u-boot.git
git fetch --depth 1 origin tag v2020.10
git checkout v2020.10
cd ..
echo "Preparing checkout of linux v6.18 LTS without history..."
rm -rf linux
mkdir -p linux
cd linux
git init
git remote add origin https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
git fetch --depth 1 origin tag v6.18.22
git checkout v6.18.22
patch -p1 < ../files/kernel_patches/901-debloat_sock_diag.patch
patch -p1 < ../files/kernel_patches/902-debloat_proc.patch
patch -p1 < ../files/kernel_patches/904-debloat_dma_buf.patch
cd ..
echo "Preparing checkout of LVGL-Linux-Port and LVGL without history..."
cd software/x32ctrl/lv_port_linux
git init
git remote add origin https://github.com/lvgl/lv_port_linux.git
git fetch --depth 1 origin master
git checkout master
cd lvgl
git init
git remote add origin https://github.com/lvgl/lvgl.git
git fetch --depth 1 origin master
git checkout master
cd ../../../..
echo "pyATK, busybox, dropbear and other submodules will be cloned with full history..."
echo "Checking out all remaining submodules..."
git submodule update --init --recursive
echo "Done."