fix library mkfiles for objtype=spim
This commit is contained in:
parent
23215e14d0
commit
ebe88f34cb
7 changed files with 88 additions and 7 deletions
|
@ -1,11 +1,11 @@
|
||||||
syntax: regexp
|
syntax: regexp
|
||||||
^(386|68000|68020|alpha|amd64|arm|mips|power|power64|sparc|sparc64)/(bin|lib)(/|$)
|
^(386|68000|68020|alpha|amd64|arm|mips|power|power64|sparc|sparc64|spim)/(bin|lib)(/|$)
|
||||||
^(acme|sys/src)/(.*/)?[125678vqki]\..*$
|
^(acme|sys/src)/(.*/)?[0125678vqki]\..*$
|
||||||
^(acme|sys/src)/.*\.[ao]?[125678vqki]?$
|
^(acme|sys/src)/.*\.[ao]?[0125678vqki]?$
|
||||||
^(dev|fd|net.*|srv|shr|env|root|proc|boot|mnt|n|bin|usr|cfg|cron|mail|tmp)(/|$)
|
^(dev|fd|net.*|srv|shr|env|root|proc|boot|mnt|n|bin|usr|cfg|cron|mail|tmp)(/|$)
|
||||||
^386/(9(pc|boot).*|pbs|mbr|init)
|
^386/(9(pc|boot).*|pbs|mbr|init)
|
||||||
^amd64/(9pc64|init)
|
^amd64/(9pc64|init)
|
||||||
^acme/bin/(386|68000|68020|alpha|amd64|arm|power|power64|sparc|sparc64)(/|$)
|
^acme/bin/(386|68000|68020|alpha|amd64|arm|mips|power|power64|sparc|sparc64|spim)(/|$)
|
||||||
^adm/(cache|keys|netkeys|secstore|users|whois|timezone/local)(/|$)
|
^adm/(cache|keys|netkeys|secstore|users|whois|timezone/local)(/|$)
|
||||||
^lib/(ndb|audio|firmware)(/|$)
|
^lib/(ndb|audio|firmware)(/|$)
|
||||||
^lib/rfc/(drafts|index|rfc.*)(/|$)
|
^lib/rfc/(drafts|index|rfc.*)(/|$)
|
||||||
|
|
41
sys/src/libc/spim/mkfile
Normal file
41
sys/src/libc/spim/mkfile
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
objtype=spim
|
||||||
|
</$objtype/mkfile
|
||||||
|
|
||||||
|
LIB=/$objtype/lib/libc.a
|
||||||
|
SFILES=\
|
||||||
|
argv0.s\
|
||||||
|
atom.s\
|
||||||
|
getcallerpc.s\
|
||||||
|
getfcr.s\
|
||||||
|
main9.s\
|
||||||
|
main9p.s\
|
||||||
|
memccpy.s\
|
||||||
|
memchr.s\
|
||||||
|
memcmp.s\
|
||||||
|
memmove.s\
|
||||||
|
memset.s\
|
||||||
|
setjmp.s\
|
||||||
|
strchr.s\
|
||||||
|
strcmp.s\
|
||||||
|
strcpy.s\
|
||||||
|
tas.s\
|
||||||
|
vlop.s\
|
||||||
|
|
||||||
|
CFILES=\
|
||||||
|
cycles.c\
|
||||||
|
lock.c\
|
||||||
|
notejmp.c\
|
||||||
|
sqrt.c\
|
||||||
|
vlrt.c\
|
||||||
|
|
||||||
|
HFILES=/sys/include/libc.h
|
||||||
|
|
||||||
|
OFILES=${CFILES:%.c=%.$O} ${SFILES:%.s=%.$O}
|
||||||
|
|
||||||
|
%.$O: ../mips/%.c
|
||||||
|
$CC -I../mips $CFLAGS ../mips/$stem.c
|
||||||
|
|
||||||
|
%.$O: ../mips/%.s
|
||||||
|
$AS -I../mips $AFLAGS ../mips/$stem.s
|
||||||
|
|
||||||
|
</sys/src/cmd/mksyslib
|
19
sys/src/libmp/spim/mkfile
Normal file
19
sys/src/libmp/spim/mkfile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
objtype=spim
|
||||||
|
</mips/mkfile
|
||||||
|
|
||||||
|
LIB=/$objtype/lib/libmp.a
|
||||||
|
SFILES=\
|
||||||
|
mpvecadd.s\
|
||||||
|
mpvecsub.s\
|
||||||
|
mpvecdigmuladd.s\
|
||||||
|
mpvecdigmulsub.s\
|
||||||
|
# mpdigdiv.s\
|
||||||
|
|
||||||
|
HFILES=/$objtype/include/u.h /sys/include/mp.h ../port/dat.h
|
||||||
|
|
||||||
|
OFILES=${SFILES:%.s=%.$O}
|
||||||
|
|
||||||
|
%.$O: ../mips/%.s
|
||||||
|
$AS -I../mips $AFLAGS ../mips/$stem.s
|
||||||
|
|
||||||
|
</sys/src/cmd/mksyslib
|
|
@ -34,7 +34,7 @@ installall:V:
|
||||||
|
|
||||||
everything:V:
|
everything:V:
|
||||||
rm -f */*.[012456789kqv]
|
rm -f */*.[012456789kqv]
|
||||||
for(objtype in 386)@{
|
for(objtype in $CPUS)@{
|
||||||
echo $objtype
|
echo $objtype
|
||||||
mk $MKFLAGS install
|
mk $MKFLAGS install
|
||||||
}
|
}
|
||||||
|
|
18
sys/src/libsec/spim/mkfile
Normal file
18
sys/src/libsec/spim/mkfile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
objtype=spim
|
||||||
|
</$objtype/mkfile
|
||||||
|
|
||||||
|
LIB=/$objtype/lib/libsec.a
|
||||||
|
FILES=\
|
||||||
|
md5block\
|
||||||
|
sha1block\
|
||||||
|
|
||||||
|
HFILES=/sys/include/libsec.h
|
||||||
|
|
||||||
|
SFILES=${FILES:%=%.s}
|
||||||
|
|
||||||
|
OFILES=${FILES:%=%.$O}
|
||||||
|
|
||||||
|
%.$O: ../mips/%.s
|
||||||
|
$AS -I../mips $AFLAGS ../mips/$stem.s
|
||||||
|
|
||||||
|
</sys/src/cmd/mksyslib
|
|
@ -72,6 +72,9 @@ UPDATE=mkfile\
|
||||||
$CFILES\
|
$CFILES\
|
||||||
$SFILES\
|
$SFILES\
|
||||||
|
|
||||||
|
spim.$O: mips.c
|
||||||
|
$CC $CFLAGS -o $target mips.c
|
||||||
|
|
||||||
all:V: $LIB sched.acid channel.acid
|
all:V: $LIB sched.acid channel.acid
|
||||||
|
|
||||||
</sys/src/cmd/mksyslib
|
</sys/src/cmd/mksyslib
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
# common mkfile parameters shared by all architectures
|
# common mkfile parameters shared by all architectures
|
||||||
#
|
#
|
||||||
|
|
||||||
OS=5678qv
|
OS=05678qv
|
||||||
CPUS=arm alpha 386 power mips
|
CPUS=spim arm amd64 alpha 386 power mips
|
||||||
CFLAGS=-FTVw
|
CFLAGS=-FTVw
|
||||||
LEX=lex
|
LEX=lex
|
||||||
YACC=yacc
|
YACC=yacc
|
||||||
|
|
Loading…
Reference in a new issue