Add scripts to manage the patches

master
Howard Su 2021-06-17 18:06:51 +08:00
parent 67ddd7498e
commit e273e41e17
3 changed files with 33 additions and 0 deletions

11
scripts/apply.sh Executable file
View File

@ -0,0 +1,11 @@
cd plutosdr-fw
git apply ../patches/fw.diff
cd hdl
git apply ../../patches/hdl.diff
cd ../linux
git apply ../../patches/linux.diff
cd ../u-boot-xlnx
git apply ../../patches/u-boot-xlnx.diff
cd ../buildroot
git apply ../../patches/buildroot.diff
cd ../..

11
scripts/collect.sh Executable file
View File

@ -0,0 +1,11 @@
cd plutosdr-fw
git diff > ../patches/fw.diff
cd hdl
git diff > ../../patches/hdl.diff
cd ../linux
git diff > ../../patches/linux.diff
cd ../u-boot-xlnx
git diff > ../../patches/u-boot-xlnx.diff
cd ../buildroot
git diff > ../../patches/buildroot.diff
cd ../..

11
scripts/revert.sh Executable file
View File

@ -0,0 +1,11 @@
cd plutosdr-fw
git checkout .
cd hdl
git checkout .
cd ../linux
git checkout .
cd ../buildroot
git checkout .
cd ../u-boot-xlnx
git checkout .
cd ../..