mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-09-30 11:23:52 +08:00
cleanup ABL building (#270)
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#!/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/
|
||||
+1
-1
Submodule edk2_tici updated: 67600416ee...aa3737ce9b
+1
-2
@@ -4,11 +4,10 @@ set -e
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
||||
cd $DIR
|
||||
|
||||
for part in aop xbl xbl_config devcfg; do
|
||||
for part in aop abl xbl xbl_config devcfg; do
|
||||
tools/edl w ${part}_a $DIR/agnos-firmware/$part.bin
|
||||
tools/edl w ${part}_b $DIR/agnos-firmware/$part.bin
|
||||
done
|
||||
|
||||
./flash_bootloader.sh
|
||||
./flash_kernel.sh
|
||||
./flash_system.sh
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
GREEN="\033[0;32m"
|
||||
NO_COLOR='\033[0m'
|
||||
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
||||
cd $DIR
|
||||
|
||||
echo "Flashing bootloader..."
|
||||
tools/edl w abl_a output/abl.elf
|
||||
tools/edl w abl_b output/abl.elf
|
||||
|
||||
echo -e "${GREEN}Flashed abl_a and abl_b!${NO_COLOR}"
|
||||
Reference in New Issue
Block a user