MEDIA_TYPE = tape
TYPE = s390-tape

KERNEL = $(DEST)/kernel.debian
TARGET = $(KERNEL) $(DEST)/initrd.debian $(DEST)/kernel.debian-nolabel $(DEST)/parmfile.debian
EXTRANAME = $(MEDIUM)/

KERNELVERSION := $(KERNELVERSION)-tape
KERNELNAME := $(KERNELNAME)-tape

MANIFEST-KERNEL = "kernel for tape ipl"

$(DEST)/initrd.debian:
	ln -fs ../generic/initrd.debian $@
	update-manifest $@ "initrd" $(UDEB_LISTS)

$(DEST)/kernel.debian-nolabel: $(DEST)/kernel.debian
	(dd bs=1 count=8 && dd bs=1 skip=1 count=0 && printf "\007" && dd) < $< > $@
	update-manifest $@ "kernel for tape ipl - nolabel"

$(TEMP)/kernel.debian: $(TEMP)/vmlinuz-tape
	ln $+ $@
