New sw folders
This commit is contained in:
19
sw/Makefile
Normal file
19
sw/Makefile
Normal 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)
|
||||
Reference in New Issue
Block a user