mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-08-07 17:25:44 +08:00
initial agnos-builder release
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# Config
|
||||
OUTPUT_DIR="output"
|
||||
KERNEL_IMAGE="boot.img"
|
||||
|
||||
# Log colors
|
||||
GREEN="\033[0;32m"
|
||||
NO_COLOR='\033[0m'
|
||||
|
||||
# Make sure we're in the correct spot
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
||||
cd $DIR
|
||||
|
||||
# Flash bootloader
|
||||
fastboot --set-active=a
|
||||
fastboot flash boot_a $OUTPUT_DIR/$KERNEL_IMAGE
|
||||
|
||||
echo -e "${GREEN}Done!"
|
||||
Reference in New Issue
Block a user