mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-04-07 15:23:56 +08:00
22 lines
411 B
Bash
Executable File
22 lines
411 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
# Get directories and make sure we're in the correct spot to start the build
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
OUTPUT_DIR=$DIR/output
|
|
cd $DIR
|
|
|
|
# Clone bootloader if not done already
|
|
if [ ! -d edk2_tici ]; then
|
|
git submodule init edk2_tici
|
|
fi
|
|
cd edk2_tici
|
|
|
|
# Create output directory
|
|
mkdir -p $OUTPUT_DIR
|
|
|
|
# Run build
|
|
./build.sh
|
|
|
|
# Copy output
|
|
cp out/* $OUTPUT_DIR/
|