Inital bootable defconfig and build script for AM6264SIP
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user