mk for only supported archs
http://fqa.9front.org/fqa1.html#1.2 states the supported archs. However, clean and nuke also remove build files for 0 (spim) and q (power). 'mk all' using those archs fails; 'mk kernels' also tries to build all the kernels, even those which are not supported. For example, I tried to build the power arch (qc, qa, ql) and without surprise it failed (when building dtracy): ... mk dtracy qc -FTVw dtracy.c yacc -v -d -D1 parse.y qc -FTVw cgen.c qc -FTVw act.c qc -FTVw type.c == regfree == REGISTER R0 <11> STRUCT DTAct cgen.c:302 == regfree == REGISTER R0 <11> STRUCT DTAct act.c:266 == regfree == qc -FTVw agg.c cgen.c:299 unknown type in regalloc: STRUCT DTAct cgen.c:299 bad opcode in gmove INT -> STRUCT DTAct cgen.c:302 unknown type in regalloc: STRUCT DTAct cgen.c:302 bad opcode in gmove INT -> STRUCT DTAct cgen.c:302 error in regfree: 0 [0] REGISTERmk: qc -FTVw cgen.c : exit status=rc 387386: qc 387392: error R0 <11> STRUCT DTAct act.c:269 act.c:250 unknown type in regalloc: STRUCT DTAct act.c:250 bad opcode in gmove INT -> STRUCT DTAct act.c:266 unknown type in regalloc: STRUCT DTAct act.c:266 bad opcode in gmove INT -> STRUCT DTAct act.c:266 error in regfree: 0 [0] act.c:269 unknown type in regalloc: STRUCT DTAct act.c:269 bad opcode in gmove INT -> STRUCT DTAct act.c:269 error in regfree: 0 [0] act.c:274 unknown type in regalloc: STRUCT DTAct act.c:274 bad opcode in gmove INT -> STRUCT DTAct act.c:274 error in regfree: 0 [0] too many errors mk: for(i in cc ... : exit status=rc 382748: rc 387379: mk 387381: error mk: date for (i ... : exit status=rc 373781: rc 382226: mk 382227: error cpu% The patch below skips over non-supported architectures. Is that something we want? This way, 'mk kernels' should work without a problem (tested on amd64). Then if someone works on getting those architectures supported again in the future, they can be added back in.
This commit is contained in:
parent
2eadf1fa17
commit
8c228a123f
|
@ -3,11 +3,13 @@ ARCH=\
|
||||||
bcm64\
|
bcm64\
|
||||||
cycv\
|
cycv\
|
||||||
kw\
|
kw\
|
||||||
mtx\
|
# power arch:\
|
||||||
|
# mtx\
|
||||||
omap\
|
omap\
|
||||||
pc\
|
pc\
|
||||||
pc64\
|
pc64\
|
||||||
ppc\
|
# power arch:\
|
||||||
|
# ppc\
|
||||||
sgi\
|
sgi\
|
||||||
teg2\
|
teg2\
|
||||||
xen\
|
xen\
|
||||||
|
|
|
@ -7,6 +7,9 @@ TEXTBASE=0xfffc0000
|
||||||
|
|
||||||
all:V: $TARG
|
all:V: $TARG
|
||||||
|
|
||||||
|
install:V:
|
||||||
|
echo install not supported >[1=2]
|
||||||
|
|
||||||
clean:V:
|
clean:V:
|
||||||
rm -rf $TARG *.$O
|
rm -rf $TARG *.$O
|
||||||
@{objtype=$cputype mk -f mkfile.port clean}
|
@{objtype=$cputype mk -f mkfile.port clean}
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
</$objtype/mkfile
|
</$objtype/mkfile
|
||||||
|
|
||||||
|
SUPPORTED_OBJS=\
|
||||||
|
386\
|
||||||
|
amd64\
|
||||||
|
arm\
|
||||||
|
arm64\
|
||||||
|
mips\
|
||||||
|
|
||||||
LIBS=\
|
LIBS=\
|
||||||
lib9p\
|
lib9p\
|
||||||
libString\
|
libString\
|
||||||
|
@ -52,21 +59,29 @@ none:VQ:
|
||||||
|
|
||||||
all install clean nuke:VQ:
|
all install clean nuke:VQ:
|
||||||
date
|
date
|
||||||
for (i in $LIBS $SUBSYS $CMDS) @{
|
if (~ $objtype $SUPPORTED_OBJS) {
|
||||||
cd $i
|
for (i in $LIBS $SUBSYS $CMDS) @{
|
||||||
mk $target
|
cd $i
|
||||||
|
mk $target
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
if not
|
||||||
|
echo $objtype arch not supported by 9front >[1=2]
|
||||||
date
|
date
|
||||||
|
|
||||||
installall:V:
|
installall:V:
|
||||||
echo "installall not supported"
|
echo "installall not supported"
|
||||||
|
|
||||||
release:V:
|
release:V:
|
||||||
mk nuke
|
if (~ $objtype $SUPPORTED_OBJS) {
|
||||||
rm -f /$objtype/lib/ape/*.a
|
mk nuke
|
||||||
rm -f /$objtype/lib/*.a
|
rm -f /$objtype/lib/ape/*.a
|
||||||
mk install
|
rm -f /$objtype/lib/*.a
|
||||||
mk clean
|
mk install
|
||||||
|
mk clean
|
||||||
|
}
|
||||||
|
if not
|
||||||
|
echo $objtype architecture not supported >[1=2]
|
||||||
|
|
||||||
kernels:V:
|
kernels:V:
|
||||||
for (i in 9 boot) @{
|
for (i in 9 boot) @{
|
||||||
|
|
Loading…
Reference in a new issue