13 DEVS=`{rc ../port/mkdevlist $CONF}
48 SCHED=`{ls -p xen-public/sched*.h >[2]/dev/null}
49 ARCH=`{test -d xen-public/arch-x86 && echo arch-x86/xen-x86_32.h arch-x86/xen.h || echo arch-x86_32.h }
84 /$objtype/lib/libmemlayer.a\
85 /$objtype/lib/libmemdraw.a\
86 /$objtype/lib/libdraw.a\
87 /$objtype/lib/libip.a\
88 /$objtype/lib/libsec.a\
89 /$objtype/lib/libmp.a\
92 ETHER=`{echo devether.c ether*.c | sed 's/\.c/.'$O'/g'}
93 VGA=`{echo devvga.c screen.c vga*.c | sed 's/\.c/.'$O'/g'}
94 SDEV=`{echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
96 PAE=`{echo $PAE | sed 's/yes/yes[extended-cr3]/'}
97 XENELF='LOADER=generic,XEN_VER=xen-3.0,ELF_PADDR_OFFSET=0,VIRT_BASE='$KZERO',VIRT_ENTRY='$KTZERO',PAE='$PAE
99 $p$CONF:D: $p$CONF.elf xenelf.$cputype
100 ./xenelf.$cputype $prereq(1) $target __xen_guest ''$XENELF''
103 $p$CONF.elf:D: $OBJ $CONF.$O $LIB
104 $LD -o $target -H5 -T$KTZERO -P$KPZERO -l $prereq
107 #strip -o /fd/1 $p$CONF | gzip -9 > $p$CONF.gz
108 gzip -9 $p$CONF > $p$CONF.gz
110 install:V: $p$CONF $p$CONF.gz
111 cp $p$CONF $p$CONF.gz /$objtype/
112 # import lookout / /n/lookout && cp $p$CONF $p$CONF.gz /n/lookout/$objtype/
114 # copies generated by the rule below
115 PCHEADERS=uncached.h ethermii.h mp.h io.h
117 REPCH=`{echo $PCHEADERS | sed 's/\.h//g; s/ /|/g'}
118 ^($REPCH)\.h:R: '../pc/\1.h'
121 REPCC=`{../port/mkfilelist ../pc}
122 ^($REPCC)\.$O:R: '../pc/\1.c'
123 $CC $CFLAGS -I. -. ../pc/$stem1.c
127 <|../port/mkbootrules $CONF
129 # we inherited these.. revisit.
130 $ETHER: ../port/etherif.h ../port/netif.h
132 main.$O: rebootcode.i
133 main.$O trap.$O: /sys/include/tos.h
135 %.$O: /$objtype/include/u.h ../port/lib.h mem.h dat.h fns.h io.h ../port/error.h ../port/portdat.h ../port/portfns.h xendat.h xendefs.h
138 grep '^#define[ ]+FLAT_' xendat.h >$target
141 { echo '#define __i386__ __i386__'; \
142 echo '#define __XEN_INTERFACE_VERSION__ 0x00030201'; \
143 echo '#define XEN_GUEST_HANDLE_00030205(type) type *'; \
144 cat xen-public/^($XENHEADERS) } | \
147 initcode.out: init9.$O initcode.$O /$objtype/lib/libc.a
148 $LD -l -R1 -s -o $target $prereq
150 rebootcode.$O: ../pc/rebootcode.s mem.h
151 $AS ../pc/rebootcode.s
153 rebootcode.out: rebootcode.$O
154 $LD -l -R4 -s -o $target -T0x1000 -H3 $prereq
157 $CC -a -w main.c>acid
160 $LD -o dpart dpart.$O
162 xenstore: xenstore.$O
163 $LD -o xenstore xenstore.$O
165 xenbin.$cputype xenelf.$cputype: utilmkfile
166 mk -f utilmkfile $target
169 rm -f $stem.c [9bz]$stem [9bz]$stem.gz 9$stem.elf boot$stem.* xendat.h xendefs.h $PCHEADERS dpart xenbin.$cputype xenelf.$cputype xenstore