Skip to content

Commit

Permalink
Update build kernel script
Browse files Browse the repository at this point in the history
  • Loading branch information
ezio84 committed Apr 28, 2019
1 parent bf37f19 commit 98e6aa2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.mkdn
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ Parameter 5: The apk package name you want to build, for example SystemUI

** build_kernel.sh **

Command example: build_kernel.sh taimen log
Command example: build_kernel.sh taimen user

Parameter 1: The device tree: angler | taimen | others

Parameter 2: The build type: userdebug | user
8 changes: 7 additions & 1 deletion build_kernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ bldblu=${txtbld}$(tput setaf 4) # blue
txtrst=$(tput sgr0) # Reset

DEVICE="$1"
USERDEBUG="$2"

# Time of build startup
res1=$(date +%s.%N)
Expand All @@ -23,7 +24,12 @@ export CCACHE_DIR="/home/ezio/Android/ccache"

# Set the device
echo -e "Setting the device... ${txtrst}"
breakfast "$DEVICE-userdebug"
if [ "$USERDEBUG" == "debug" ]
then
breakfast "$DEVICE-userdebug"
else
breakfast "$DEVICE-user"
fi

# Start compilation and save a log
echo -e "${bldblu}Starting build kernel for $DEVICE and saving a build log file ${txtrst}"
Expand Down
2 changes: 1 addition & 1 deletion command-list.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
. scripts/build_apk.sh taimen user nosync noclean Launcher3QuickStep
. scripts/build_apk.sh taimen user nosync noclean CustomDoze

. scripts/build_kernel.sh angler
. scripts/build_kernel.sh taimen user
linux kernel new tags: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/

git push abc p
Expand Down

0 comments on commit 98e6aa2

Please sign in to comment.