Differences From
Artifact [5f22a34160]:
187 187 mkdir -p $gen
188 188 $cc -D_emit_m4_include arch/typesize.c -o $gen/typesize
189 189 $gen/typesize > gen/typesize.m
190 190
191 191 # generate syscall tables
192 192 if test $posix = yes; then
193 193 # on posix, we simply abuse CPP to garner a list of syscalls;
194 - # the file arch/posix_syscalls contains a list of syscalls
194 + # the file arch/posix/syscalls contains a list of syscalls
195 195 # we wish to import; we use sed to transform this into a form
196 196 # that cpp will fill out for us, producing a table that the
197 197 # awk scripts can handle and turn into a list of constants.
198 198 echo '#include <sys/syscall.h>' > $gen/system_calls.t.1 # this is the magic part
199 - cat arch/posix_syscalls > $gen/system_calls.t.2
199 + cat arch/posix/syscalls > $gen/system_calls.t.2
200 200 sed -e 's;^\(.*\)$;\1 SYS_\1;' -i $gen/system_calls.t.2
201 201 cat $gen/system_calls.t.1 $gen/system_calls.t.2 | cpp -P >$gen/system_calls.tbl
202 202 else
203 203 case $os in
204 204 # lin) grep -h "#define __NR_" $p_headers_syscall | sed 's;^#define __NR_;;' > $gen/system_calls.tbl;;
205 205 # fbsd) grep -h "#define SYS_" $p_headers_syscall | sed 's;^#define SYS_;;' | sed 's;[\t ]\+; ;' > $gen/system_calls.tbl;;
206 206 *) noimpl 'system call table generation';;