New sw folders

This commit is contained in:
Byron Lathi
2024-10-14 23:48:16 -07:00
parent bc9b04853c
commit 21efb8ace8
11 changed files with 198 additions and 3 deletions

19
sw/Makefile Normal file
View File

@@ -0,0 +1,19 @@
SD_IMAGE = sd_image.bin
BOOTLOADER = bootloader/bootloader.bin
all: $(SD_IMAGE) $(BOOTLOADER)
$(BOOTLOADER):
$(MAKE) -C bootloader bootloader.bin
$(SD_IMAGE):
dd if=/dev/zero of=$@ bs=1M count=256
/sbin/mkfs.vfat $@
udisksctl loop-setup --file $@
udisksctl mount -b /dev/loop1
udisksctl unmount -b /dev/loop1
udisksctl loop-delete -b /dev/loop1
clean:
rm -rf $(SD_IMAGE)
rm -rf $(BOOTLOADER)