Inital bootable defconfig and build script for AM6264SIP

This commit is contained in:
so4neet
2026-07-27 22:09:14 -05:00
commit da9afd2d42
4 changed files with 93 additions and 0 deletions
Executable
+29
View File
@@ -0,0 +1,29 @@
#!/usr/bin/env bash
if ! [ "$(ls -A buildroot)" ]; then
echo "Cloning Buildroot..."
git clone https://gitlab.com/buildroot.org/buildroot -b 2026.05.x buildroot
fi
cd buildroot
make defconfig BR2_DEFCONFIG=../configs/lira_flip_defconfig
make
if [ $? == 0 ]; then
echo "Building Image..."
cd output/images
mkdir ../../../img_tmp
cp tiboot3.bin ../../../img_tmp/tiboot3.bin
cp tispl.bin ../../../img_tmp/tispl.bin
cp u-boot.bin ../../../img_tmp/u-boot.bin
cp rootfs.btrfs ../../../img_tmp/rootfs.btrfs
cd ../../../img_tmp
genimage --rootpath "../buildroot/output/target" --tmppath "genimage.tmp" --inputpath "." --outputpath "../img" --config ../configs/genimage.cfg
if ! [ $? == 0 ]; then
echo "Failed Building Image."
fi;
cd ..
rm -rf img_tmp
else
echo "Failed Building OS."
fi
echo "Done"