Created
December 24, 2020 07:03
-
-
Save lattice0/e17e3d663143aac5ccf381ccc06131f3 to your computer and use it in GitHub Desktop.
kernel compare 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This script will create a folder kernel_compare and download the first kernel in `kernel`, commit it, then download the second kernel on `kernel` also, and commit | |
mkdir kernel_compare | |
cd kernel_compare | |
mkdir kernel | |
#commit = 848ff3b146631bba895c487cd9104d094b987a47 | |
git clone https://source.codeaurora.org/quic/la/kernel/msm-4.14 | |
cd msm-4.14 | |
git checkout 848ff3b146631bba895c487cd9104d094b987a47 | |
cd .. | |
mv msm-4.14 kernel | |
cd kernel | |
rm -rf .git | |
cd .. | |
#rm kernel | |
#wget -O android-mainline.tar.gz https://android.googlesource.com/kernel/common/+archive/refs/heads/android-4.14-stable.tar.gz | |
#tar xvzf android-mainline.tar.gz -C kernel | |
#rm android-mainline.tar.gz | |
git init | |
git add . | |
git commit -m "android mainline kernel 4.14" | |
rm -rf kernel | |
mkdir kernel | |
wget -O kernel.zip https://github.com/MiCode/Xiaomi_Kernel_OpenSource/archive/surya-q-oss.zip -d kernel | |
#-o for overwrite all, -j for not creating a folder with the original name of the .zip, and -d for specifying where to put the files | |
unzip -o kernel.zip -d kernel | |
mv kernel/* foo; rmdir kernel; mv foo kernel | |
rm kernel.zip | |
git add . | |
git commit -m "xiaomi poco m3 kernel 4.14" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment