MEDIA_TYPE = netboot image

TARGET = $(KERNEL) $(SOME_DEST)/default.colo $(SOME_DEST)/vmlinux.gz $(SOME_DEST)/vmlinux_RAQ.gz $(SOME_DEST)/vmlinux_raq-2800.gz $(BASE_DEST)$(SUBARCH)/nfsroot.tar.gz
# this has to me empty so the kernel will be put in the right directory
EXTRANAME =

MANIFEST-KERNEL = "kernel image for Cobalt machines"

# Add a colo binary plus symlinks
$(SOME_DEST)/vmlinux.gz:
	cp /boot/vmlinux.gz $@
	update-manifest $@ "Cobalt boot loader CoLo"
	ln -s . $(SOME_DEST)/boot

$(SOME_DEST)/vmlinux_RAQ.gz:
	ln -s vmlinux.gz $@

$(SOME_DEST)/vmlinux_raq-2800.gz:
	ln -s vmlinux.gz $@

# CoLo configuration file for NFS
$(SOME_DEST)/default.colo:
	bootvars-subst KERNELVERSION "$(KERNELVERSION_2.6)" <boot/mipsel/colo.nfs-2.6 >$@
	update-manifest $@ "Cobalt NFS boot configuration script"

# Create a nfsroot tar file which can easily be extracted (containing all
# files including proper symlinks).
$(BASE_DEST)$(SUBARCH)/nfsroot.tar.gz:
	cp -r $(SOME_DEST) $(TEMP)/nfsroot
	(cd $(TEMP) && tar czf - nfsroot) > $@
	update-manifest $@ "tarball containing the Cobalt installer nfsroot"

