Skip to content

Commit

Permalink
build-kernel: add raphael, phoenix support
Browse files Browse the repository at this point in the history
 * Untested

Signed-off-by: Akhil Narang <akhilnarang.1999@gmail.com>
  • Loading branch information
akhilnarang committed Mar 10, 2020
1 parent 83b322c commit 8e1ddc4
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build-kernel
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ if [[ -z ${KERNELDIR} ]]; then
exit 1
fi

[[ -z ${DEVICE} ]] && { [[ "$(pwd)" =~ "raphael" ]] || [[ "$*" =~ "raphael" ]]; } && DEVICE=raphael
[[ -z ${DEVICE} ]] && { [[ "$(pwd)" =~ "phoenix" ]] || [[ "$*" =~ "phoenix" ]]; } && DEVICE=phoenix
[[ -z ${DEVICE} ]] && { [[ "$(pwd)" =~ "beryllium" ]] || [[ "$*" =~ "beryllium" ]]; } && DEVICE=beryllium
[[ -z ${DEVICE} ]] && DEVICE=beryllium

Expand All @@ -21,6 +23,12 @@ function tg() {
"beryllium")
sendKernelBeryllium "${@:?}"
;;
"raphael")
sendTG "-1001317348741" "${@:?}"
;;
"*")
sendTG "92027269" "${@:?}"
;;
esac
}

Expand Down Expand Up @@ -69,7 +77,7 @@ function make_wrapper() {
}

if [[ ! -d ${ANYKERNEL} ]]; then
hub clone AnyKernel2 -b "${DEVICE}" "${ANYKERNEL}" || exit 1
hub clone AnyKernel3 -b "${DEVICE}" "${ANYKERNEL}" || exit 1
fi

if [[ -z ${NAME} ]]; then
Expand Down

0 comments on commit 8e1ddc4

Please sign in to comment.