cleanup ABL building (#270)

This commit is contained in:
Adeeb Shihadeh
2024-07-28 13:29:13 -07:00
committed by GitHub
parent 54d68a5df9
commit fd385808dc
4 changed files with 2 additions and 37 deletions
-21
View File
@@ -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 -2
View File
@@ -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
-13
View File
@@ -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}"