Skip to content

Commit

Permalink
Fri Jun 5 14:15:20 +09 2020
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphop committed Jun 5, 2020
1 parent 1c84ad8 commit cfbfc29
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ https://github.com/hyphop/khadas-linux-kernel
./make_kernel_mainline_vimsX
./make_kernel_mainline_vimsX_modules

## Deps

+ flex bc

apt-get install flex bc

## Configs

[configs](configs)
Expand Down
5 changes: 5 additions & 0 deletions scripts/auto_krescue_amlrock
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,14 @@ export LINUX_VER=linux-5.7

./$kernel_prepare

CHK=1 ./patch_ || {

./patch_ ../patches/$LINUX_VER/*.patch || exit 1
./patch_ ../patches/linux-krescue/*.patch || exit 1

LAST=1 ./patch_
}

./make_kernel_mainline_vimsX -n
./kernel_config ../files/configs/mmc_m
./kernel_config ../files/configs/eth2_y
Expand Down
8 changes: 8 additions & 0 deletions scripts/patch_
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,15 @@ done

echo "[i] patch dir $DIR">&2

[ "$CHK" ] && [ -s $DIR/.patched ] && {
echo "[i] patched already $(cat "$DIR/.patched")">&2
exit 0
}

for p in $@; do
echo "[i] patch $p">&2
patch -d $DIR -p1 < $p
done


[ "$LAST" ] && echo $(date) > $DIR/.patched

0 comments on commit cfbfc29

Please # to comment.