Fixed terrible directory structure and defconfigs

This commit is contained in:
so4neet
2026-07-28 01:41:49 -05:00
parent da9afd2d42
commit e62158d7cc
12 changed files with 308 additions and 6 deletions
+6 -3
View File
@@ -1,13 +1,15 @@
#!/usr/bin/env bash
CUR_DIR=$(pwd)
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
make BR2_EXTERNAL=$CUR_DIR/flip_os_br2_external BR2_DEFCONFIG=$CUR_DIR/flip_os_br2_external/configs/lira_flip_defconfig defconfig
make BR2_EXTERNAL=$CUR_DIR/flip_os_br2_external
if [ $? == 0 ]; then
echo "Building Image..."
cd output/images
@@ -17,7 +19,8 @@ if [ $? == 0 ]; then
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
genimage --rootpath "../buildroot/output/target" --tmppath "genimage.tmp" --inputpath "." --outputpath "../img" --config "../flip_os_br2_external/board/lira_flip_am6254sip/genimage.cfg"
rm -f ../img/boot.vfat
if ! [ $? == 0 ]; then
echo "Failed Building Image."
fi;