xen: fix cross build
This commit is contained in:
parent
07a776fad9
commit
c8ed49da60
2 changed files with 12 additions and 10 deletions
|
@ -93,17 +93,17 @@ SDEV=`{echo devsd.c sd*.c | sed 's/\.c/.'$O'/g'}
|
||||||
PAE=`{echo $PAE | sed 's/yes/yes[extended-cr3]/'}
|
PAE=`{echo $PAE | sed 's/yes/yes[extended-cr3]/'}
|
||||||
XENELF='LOADER=generic,XEN_VER=xen-3.0,ELF_PADDR_OFFSET=0,VIRT_BASE='$KZERO',VIRT_ENTRY='$KTZERO',PAE='$PAE
|
XENELF='LOADER=generic,XEN_VER=xen-3.0,ELF_PADDR_OFFSET=0,VIRT_BASE='$KZERO',VIRT_ENTRY='$KTZERO',PAE='$PAE
|
||||||
|
|
||||||
#$p$CONF: $CONF.c $OBJ $LIB xenbin
|
#$p$CONF: $CONF.c $OBJ $LIB xenbin.$cputype
|
||||||
# $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
|
# $CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
|
||||||
# $LD -o $target.tmp -T$KTZERO -l $OBJ $CONF.$O $LIB
|
# $LD -o $target.tmp -T$KTZERO -l $OBJ $CONF.$O $LIB
|
||||||
# ./xenbin <$target.tmp >$target
|
# ./xenbin.$cputype <$target.tmp >$target
|
||||||
# rm $target.tmp
|
# rm $target.tmp
|
||||||
# size $target
|
# size $target
|
||||||
|
|
||||||
$p$CONF: $CONF.c $OBJ $LIB xenelf
|
$p$CONF: $CONF.c $OBJ $LIB xenelf.$cputype
|
||||||
$CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
|
$CC $CFLAGS '-DKERNDATE='`{date -n} $CONF.c
|
||||||
$LD -o $target.elf -H5 -T$KTZERO -P$KPZERO -l $OBJ $CONF.$O $LIB
|
$LD -o $target.elf -H5 -T$KTZERO -P$KPZERO -l $OBJ $CONF.$O $LIB
|
||||||
./xenelf $target.elf $target __xen_guest ''$XENELF''
|
./xenelf.$cputype $target.elf $target __xen_guest ''$XENELF''
|
||||||
size $target
|
size $target
|
||||||
|
|
||||||
$p$CONF.gz: $p$CONF
|
$p$CONF.gz: $p$CONF
|
||||||
|
@ -176,13 +176,10 @@ dpart: dpart.$O
|
||||||
xenstore: xenstore.$O
|
xenstore: xenstore.$O
|
||||||
$LD -o xenstore xenstore.$O
|
$LD -o xenstore xenstore.$O
|
||||||
|
|
||||||
# XXX this is wrong if we're cross-compiling
|
xenbin.$cputype xenelf.$cputype: utilmkfile
|
||||||
xenbin: xenbin.$O
|
mk -f utilmkfile $target
|
||||||
$LD -o xenbin xenbin.$O
|
|
||||||
xenelf: xenelf.$O
|
|
||||||
$LD -o xenelf xenelf.$O
|
|
||||||
|
|
||||||
%.clean:V:
|
%.clean:V:
|
||||||
rm -f $stem.c [9bz]$stem [9bz]$stem.gz 9$stem.elf boot$stem.* reboot.h init.h xendat.h xendefs.h $PCHEADERS dpart xenbin xenelf xenstore
|
rm -f $stem.c [9bz]$stem [9bz]$stem.gz 9$stem.elf boot$stem.* reboot.h init.h xendat.h xendefs.h $PCHEADERS dpart xenbin.$cputype xenelf.$cputype xenstore
|
||||||
|
|
||||||
|
|
||||||
|
|
5
sys/src/9/xen/utilmkfile
Normal file
5
sys/src/9/xen/utilmkfile
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
</$cputype/mkfile
|
||||||
|
</sys/src/cmd/mkone
|
||||||
|
|
||||||
|
%.$cputype: %.$O
|
||||||
|
$LD -o $target $prereq
|
Loading…
Add table
Add a link
Reference in a new issue