[CRIU] [PATCH] x86: syscalls -- Rework building procedure
Cyrill Gorcunov
gorcunov at gmail.com
Fri Apr 10 04:17:07 PDT 2015
On Fri, Apr 10, 2015 at 02:13:28PM +0300, Pavel Emelyanov wrote:
> > -$(obj)/$(SYS-EXEC-TBL): $(obj)/$(SYS-GEN) $(obj)/$(SYS-DEF)
> > + $(Q) echo "/* Autogenerated, don't edit */" > $@
> > + $(Q) echo "#ifndef __ASM_CR_SYSCALL_CODES_H__" >> $@
> > + $(Q) echo "#define __ASM_CR_SYSCALL_CODES_H__" >> $@
> > + $(Q) cat $< | egrep -v '^#' | sed -e 's/\t\{1,\}/|/g' | awk -F '|' '{print "#define " $$1 " " $$2 }' >> $@
>
> The grep and sed are excessive, just cat | awk '/^__NR/{print "#define", $1, $2}' will work
Thank you!
More information about the CRIU
mailing list