]> git.wh0rd.org - home.git/blobdiff - .config/chromite/chrome_sdk.bashrc
chromite: move & update
[home.git] / .config / chromite / chrome_sdk.bashrc
diff --git a/.config/chromite/chrome_sdk.bashrc b/.config/chromite/chrome_sdk.bashrc
new file mode 100644 (file)
index 0000000..4f660f4
--- /dev/null
@@ -0,0 +1,20 @@
+IP=100.100.11.159
+
+n() {
+       [[ $# -eq 0 ]] && set -- chrome
+       ninja -C out_${SDK_BOARD}/Release -j500 "$@"
+}
+
+d() {
+       deploy_chrome --build-dir=out_${SDK_BOARD}/Release --to=${IP} "$@"
+}
+
+cat <<EOF
+
+Commands:
+ gclient: use runhooks for a new board
+ gn gen out_\${SDK_BOARD}/Release --args="\${GN_ARGS}"
+ n: run ninja to compile chrome
+ d: deploy the compiled code to ${IP}
+
+EOF