1# $MirOS: src/distrib/common/Makefile.i386-big,v 1.28 2013/03/29 16:49:53 tg Exp $ 2 3IMAGESIZE= 8192 4IMAGETYPE= ipldisc 5 6LISTADDS= boot bridge cd9660 dhclient disktools ext2fs i386 isdn msdos \ 7 nettools nfs nfsd pager-less ppp-user pppoe-kernel \ 8 pppoe-user upgrade 9LGRUBCFG= extra 10 11KERNEL_BUILD= no 12# (17,0) = rd0a 13RAMDISK_PREP= print 'rootdev 17 0\nquit' | config -ef $@~ 14 15FLOPPY= no 16CDROM_OPTS+= bootimage=i386\;eltorito.loo 17CDROM_OPTS+= no-emul-boot 18 19.if defined(SERIALSPEED) 20CDROM?= cdrom${SERIALSPEED}.iso 21.endif 22 23bsd: ${BSDOBJDIR}/distrib/generic/bsd 24 cp -f $> $@ 25 26cdrom-mdcopy: 27.if defined(SERIALSPEED) 28 sed \ 29 -e 's!^boot .*$$!boot /v${OSrev}/i386/bsd.rd!' \ 30 -e 's/@SPEED@/${SERIALSPEED}/g' \ 31 ${TOPDIR}/tools/boot.cfg.serial >${WRKDIR}/boot.cfg 32.endif 33 dd if=/dev/arandom bs=2048 count=1 of=eltorito.loo 34 35cdrom-mdboot: 36 getextent_cd9660 -f ${CDROM} b_${MACHINE}.ldr | \ 37 ${MKSH} ${BOOTSH} \ 38 -g $$((#$$(stat -f %z ${CDROM}) / (512 * 32 * 16))):16:32 \ 39 -A -M 4:0x96 -S 2 | \ 40 dd of=${CDROM} conv=notrunc 2>/dev/null 41 getextent_cd9660 -f ${CDROM} b_${MACHINE}.ldr | \ 42 ${MKSH} ${BOOTSH} -B 11 | \ 43 dd of=${CDROM} conv=notrunc bs=2048 seek=$$(getextent_cd9660 \ 44 -f ${CDROM} -b '$$BootImage$$') 2>/dev/null 45