qemu with hax to log dma reads & writes jcs.org/2018/11/12/vfio

linux-user: introduce parameters to generate syscall_nr.h

This will be used when we'll import syscall.tbl from the kernel

Add a script to remove all the dependencies to syscall_nr.h
that point to source directory and not to the build directory.
The list of arch will be update while the generated files are added.

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Taylor Simpson <tsimpson@quicinc.com>
Message-Id: <20200310103403.3284090-2-laurent@vivier.eu>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>

+16 -1
+2 -1
Makefile.target
··· 128 128 129 129 QEMU_CFLAGS+=-I$(SRC_PATH)/linux-user/$(TARGET_ABI_DIR) \ 130 130 -I$(SRC_PATH)/linux-user/host/$(ARCH) \ 131 - -I$(SRC_PATH)/linux-user 131 + -I$(SRC_PATH)/linux-user \ 132 + -Ilinux-user/$(TARGET_ABI_DIR) 132 133 133 134 obj-y += linux-user/ 134 135 obj-y += gdbstub.o thunk.o
+14
configure
··· 1887 1887 # Remove old dependency files to make sure that they get properly regenerated 1888 1888 rm -f */config-devices.mak.d 1889 1889 1890 + # Remove syscall_nr.h to be sure they will be regenerated in the build 1891 + # directory, not in the source directory 1892 + for arch in ; do 1893 + # remove the file if it has been generated in the source directory 1894 + rm -f "${source_path}/linux-user/${arch}/syscall_nr.h" 1895 + # remove the dependency files 1896 + find . -name "*.d" \ 1897 + -exec grep -q "${source_path}/linux-user/${arch}/syscall_nr.h" {} \; \ 1898 + -exec rm {} \; 1899 + done 1900 + 1890 1901 if test -z "$python" 1891 1902 then 1892 1903 error_exit "Python not found. Use --python=/path/to/python" ··· 7930 7941 echo "TARGET_ABI_DIR=$TARGET_ABI_DIR" >> $config_target_mak 7931 7942 if [ "$HOST_VARIANT_DIR" != "" ]; then 7932 7943 echo "HOST_VARIANT_DIR=$HOST_VARIANT_DIR" >> $config_target_mak 7944 + fi 7945 + if [ "$TARGET_SYSTBL_ABI" != "" ]; then 7946 + echo "TARGET_SYSTBL_ABI=$TARGET_SYSTBL_ABI" >> $config_target_mak 7933 7947 fi 7934 7948 7935 7949 if supported_xen_target $target; then