Differences From
Artifact [15fc50281c]:
215 215 # generate syscall tables
216 216 case $os in
217 217 lin) grep -h "#define __NR_" $p_headers_syscall | sed 's;^#define __NR_;;' > $gen/calls.tbl;;
218 218 fbsd) grep -h "#define SYS_" $p_headers_syscall | sed 's;^#define SYS_;;' | sed 's;[\t ]\+; ;' > $gen/calls.tbl;;
219 219 *) noimpl 'system call table generation';;
220 220 esac
221 221
222 -awk -f arch/syscall.awk -v out=s <$gen/calls.tbl >$gen/system_calls.s
223 -awk -f arch/syscall.awk -v out=h <$gen/calls.tbl >$gen/system_calls.h
222 +cat $p_headers_syscall $gen/calls.tbl | cpp -P |
223 + awk -f arch/syscall.awk -v out=s >$gen/system_calls.s
224 +cat $p_headers_syscall $gen/calls.tbl | cpp -P |
225 + awk -f arch/syscall.awk -v out=h >$gen/system_calls.h
224 226
225 227 # generate errno tables
226 228 grep -h "#[ ]*define[ ]\+E" $p_headers_errno | sed 's;^#[\t ]*define[\t ]\+\(E[A-Z0-9]\+\).*$;k_platform_error_\1 \1;' > $gen/error_names.tbl
227 229 cat $p_headers_errno $gen/error_names.tbl | cpp -P >$gen/error_numbers.tbl
228 230 awk -f arch/errtbl.awk <$gen/error_numbers.tbl >$gen/error_table.h
229 231
230 232 # generate symbol tables for error handling functions