-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathgitinitsubmodules.sh
More file actions
executable file
·35 lines (31 loc) · 995 Bytes
/
gitinitsubmodules.sh
File metadata and controls
executable file
·35 lines (31 loc) · 995 Bytes
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
#!/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..."
cd linux
git init
git remote add origin https://github.com/torvalds/linux.git
git fetch --depth 1 origin tag v6.18
git checkout v6.18
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."