MEDIA_TYPE = CD-ROM
 
TYPE = netboot

TARGET = $(TEMP_BOOT) $(MINIISO)

MANIFEST-MINIISO = "tiny bootable CD image for pure network install"
 
.PHONY: arch_miniiso arch_boot_screens arch_boot
arch_miniiso:
	-rm -rf $(TEMP_CD_TREE)/*
	install -m 644 -D $(TEMP)/initrd.gz $(TEMP_CD_TREE)/boot/initrd.gz
	install -m 644 -D $(TEMP)/vmlinuz*64 $(TEMP_CD_TREE)/boot/vmlinuz-sparc64
	install -m 644 /boot/second.b $(TEMP_CD_TREE)/boot
	install -m 644 $(TEMP_BOOT_SCREENS)/debian.txt $(TEMP_CD_TREE)/boot
	install -m 644 $(TEMP_BOOT_SCREENS)/notsupported.txt $(TEMP_CD_TREE)/boot
	install -m 644 boot/sparc/silo.conf $(TEMP_CD_TREE)/boot
 
	genisoimage -r -J -o $(TEMP_MINIISO) -G /boot/isofs.b -B ... $(TEMP_CD_TREE)

arch_boot_screens:
	-rm -f $(TEMP_BOOT_SCREENS)/*
	mkdir -p $(TEMP_BOOT_SCREENS)
	bootvars-subst MEDIA_TYPE "$(MEDIA_TYPE)" \
		DEBIAN_VERSION "$(DEBIAN_VERSION)" \
		BUILD_DATE "$(BUILD_DATE)" \
		< boot/sparc/debian.txt > $(TEMP_BOOT_SCREENS)/debian.txt
	cp boot/sparc/notsupported.txt $(TEMP_BOOT_SCREENS)/notsupported.txt

arch_boot:
