[Wisp-cvs] wisp/users/pisi/winix/beast Makefile,NONE,1.1
Status: Alpha
Brought to you by:
digg
From: <pi...@us...> - 2003-02-22 22:16:58
|
Update of /cvsroot/wisp/wisp/users/pisi/winix/beast In directory sc8-pr-cvs1:/tmp/cvs-serv18033 Added Files: Makefile Log Message: makefile for the beast --- NEW FILE: Makefile --- # main kernel version to use LKV=2.5 # the loop device to use LOOPDEV=/dev/loop/7 default: love # handle the kernel .kernel: cp kernel-$(LKV)/kernel ./beast-eltorito/boot/kernel rdev -R ./beast-eltorito/boot/kernel 1 rdev -r ./beast-eltorito/boot/kernel 0 rdev -v ./beast-eltorito/boot/kernel -1 rdev ./beast-eltorito/boot/kernel /dev/rd/0 touch .kernel beast.initrd: beast-initrd/linuxrc beast-initrd/busybox/busybox @printf "**********\nINITRD\n**********\n" chown -R root.root beast-initrd chmod 755 beast-initrd/linuxrc beast-initrd/busybox/busybox genromfs -d beast-initrd -f beast.initrdfs gzip -9 beast.initrdfs mv beast.initrdfs.gz beast.initrd beast.eltorito: beast.initrd .kernel ./beast-eltorito/boot/grub/menu.lst @printf "**********\nBOOT DISK\n**********\n" # dd if=/dev/zero of=beast.eltorito bs=1024 count=2880 cp beast.initrd ./beast-eltorito/initrd.gz mkdir bootdisk.tmp losetup $(LOOPDEV) beast.eltorito # mkfs.minix $(LOOPDEV) mount -t minix $(LOOPDEV) ./bootdisk.tmp # cp -a beast-eltorito/* ./bootdisk.tmp/ cp ./beast-eltorito/initrd.gz ./bootdisk.tmp/ # cp ./beast-eltorito/boot/kernel ./bootdisk.tmp/boot/kernel sync umount ./bootdisk.tmp # grub --batch < misc/grubify >/dev/null 2>&1 losetup -d $(LOOPDEV) rmdir bootdisk.tmp touch beast.eltorito flesh: @printf "**********\nFLESH\n**********\n" genromfs -d flesh-beast -f flesh beast.iso: beast.eltorito flesh @printf "**********\nISO IMAGE\n**********\n" cp beast.eltorito beast-cdrom/boot.bin cp beast.flesh beast-cdrom/flesh mkisofs -J -R -b boot.bin -o beast.iso -V "The Beast" beast-cdrom # do the grownups thing to beastmama love: beast.iso @echo @echo @echo "You have created a new beast - beast.iso!" # bochs install: beast.iso cp beast.iso /home/PisiTek/OpSys/boot/boot.iso # freak-mutant living on the hdd lilo: beast.initrd flesh .kernel cp beast.initrd /beast/initrd cp beast-eltorito/boot/kernel /beast/kernel mkdir -p /initrd mkdir -p /fleshroot cat beast.flesh > /flesh cat /etc/lilo.conf misc/lilo.conf > /tmp/lilo.conf.beast.$$ lilo -C /tmp/lilo.conf.beast.$$ rm -f /tmp/lilo.conf.beast.$$ clean: dataclean binclean rm -f beast.iso beast.initrd beast.flesh dataclean: rm -f .flesh .initrd .cdrom binclean: rm -f .kernel .eltorito |