All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: qemu-devel@nongnu.org
Subject: [PULL v8 144/152] rules.mak: drop unneeded macros
Date: Fri, 21 Aug 2020 06:23:21 -0400	[thread overview]
Message-ID: <20200821102329.29777-145-pbonzini@redhat.com> (raw)
In-Reply-To: <20200821102329.29777-1-pbonzini@redhat.com>

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 .gitignore                  |   1 -
 Makefile                    |   7 +-
 configure                   |  55 ++-------
 docs/devel/build-system.txt |   5 +-
 rules.mak                   | 231 +-----------------------------------
 scripts/create_config       |   6 +-
 6 files changed, 23 insertions(+), 282 deletions(-)

diff --git a/.gitignore b/.gitignore
index d1e5e06242..4ccb9ed975 100644
--- a/.gitignore
+++ b/.gitignore
@@ -80,7 +80,6 @@
 *.msi
 *.dll
 *.so
-*.mo
 *.fn
 *.ky
 *.log
diff --git a/Makefile b/Makefile
index f442895309..f33ec16a81 100644
--- a/Makefile
+++ b/Makefile
@@ -142,7 +142,7 @@ endif
 
 include $(SRC_PATH)/tests/Makefile.include
 
-all: recurse-all modules
+all: recurse-all
 
 # LIBFDT_lib="": avoid breaking existing trees with objects requiring -fPIC
 DTC_MAKE_ARGS=-I$(SRC_PATH)/dtc VPATH=$(SRC_PATH)/dtc -C dtc V="$(V)" LIBFDT_lib=""
@@ -197,7 +197,7 @@ clean: recurse-clean ninja-clean clean-ctlist
 	-test -f ninjatool && ./ninjatool $(if $(V),-v,) -t clean
 # avoid old build problems by removing potentially incorrect old files
 	rm -f config.mak op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h
-	find . \( -name '*.so' -o -name '*.dll' -o -name '*.mo' -o -name '*.[oda]' \) -type f \
+	find . \( -name '*.so' -o -name '*.dll' -o -name '*.[oda]' \) -type f \
 		! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-aarch64.a \
 		! -path ./roms/edk2/ArmPkg/Library/GccLto/liblto-arm.a \
 		! -path ./roms/edk2/BaseTools/Source/Python/UPT/Dll/sqlite3.dll \
@@ -382,9 +382,6 @@ print-help = $(quiet-@)$(call print-help-run,$1,$2)
 help:
 	@echo  'Generic targets:'
 	$(call print-help,all,Build all)
-ifdef CONFIG_MODULES
-	$(call print-help,modules,Build all modules)
-endif
 	$(call print-help,dir/file.o,Build specified target only)
 	$(call print-help,install,Install QEMU, documentation and tools)
 	$(call print-help,ctags/TAGS,Generate tags file for editors)
diff --git a/configure b/configure
index b7cf35c09f..3b0c33450b 100755
--- a/configure
+++ b/configure
@@ -74,7 +74,6 @@ TMPC="${TMPDIR1}/${TMPB}.c"
 TMPO="${TMPDIR1}/${TMPB}.o"
 TMPCXX="${TMPDIR1}/${TMPB}.cxx"
 TMPE="${TMPDIR1}/${TMPB}.exe"
-TMPMO="${TMPDIR1}/${TMPB}.mo"
 TMPTXT="${TMPDIR1}/${TMPB}.txt"
 
 rm -f config.log
@@ -465,7 +464,7 @@ bigendian="no"
 mingw32="no"
 gcov="no"
 EXESUF=""
-DSOSUF=".so"
+HOST_DSOSUF=".so"
 LDFLAGS_SHARED="-shared"
 modules="no"
 module_upgrades="no"
@@ -997,7 +996,7 @@ fi
 
 if test "$mingw32" = "yes" ; then
   EXESUF=".exe"
-  DSOSUF=".dll"
+  HOST_DSOSUF=".dll"
   # MinGW needs -mthreads for TLS and macro _MT.
   CFLAGS="-mthreads $CFLAGS"
   LIBS="-lwinmm -lws2_32 $LIBS"
@@ -6251,31 +6250,6 @@ EOF
   fi
 fi
 
-#################################################
-# Sparc implicitly links with --relax, which is
-# incompatible with -r, so --no-relax should be
-# given. It does no harm to give it on other
-# platforms too.
-
-# Note: the prototype is needed since QEMU_CFLAGS
-#       contains -Wmissing-prototypes
-cat > $TMPC << EOF
-extern int foo(void);
-int foo(void) { return 0; }
-EOF
-if ! compile_object ""; then
-  error_exit "Failed to compile object file for LD_REL_FLAGS test"
-fi
-for i in '-Wl,-r -Wl,--no-relax' -Wl,-r -r; do
-  if do_cc -nostdlib $i -o $TMPMO $TMPO; then
-    LD_REL_FLAGS=$i
-    break
-  fi
-done
-if test "$modules" = "yes" && test "$LD_REL_FLAGS" = ""; then
-  feature_not_found "modules" "Cannot find how to build relocatable objects"
-fi
-
 ##########################################
 # check for sysmacros.h
 
@@ -7007,12 +6981,7 @@ fi
 echo "CONFIG_AUDIO_DRIVERS=$audio_drv_list" >> $config_host_mak
 for drv in $audio_drv_list; do
     def=CONFIG_AUDIO_$(echo $drv | LC_ALL=C tr '[a-z]' '[A-Z]')
-    case "$drv" in
-	alsa | oss | pa | sdl)
-	    echo "$def=m" >> $config_host_mak ;;
-	*)
-	    echo "$def=y" >> $config_host_mak ;;
-    esac
+    echo "$def=y" >> $config_host_mak
 done
 if test "$alsa" = "yes" ; then
     echo "CONFIG_ALSA=y" >> $config_host_mak
@@ -7101,7 +7070,7 @@ if test "$iconv" = "yes" ; then
   echo "ICONV_LIBS=$iconv_lib" >> $config_host_mak
 fi
 if test "$curses" = "yes" ; then
-  echo "CONFIG_CURSES=m" >> $config_host_mak
+  echo "CONFIG_CURSES=y" >> $config_host_mak
   echo "CURSES_CFLAGS=$curses_inc" >> $config_host_mak
   echo "CURSES_LIBS=$curses_lib" >> $config_host_mak
 fi
@@ -7196,7 +7165,7 @@ if test "$bswap_h" = "yes" ; then
   echo "CONFIG_MACHINE_BSWAP_H=y" >> $config_host_mak
 fi
 if test "$curl" = "yes" ; then
-  echo "CONFIG_CURL=m" >> $config_host_mak
+  echo "CONFIG_CURL=y" >> $config_host_mak
   echo "CURL_CFLAGS=$curl_cflags" >> $config_host_mak
   echo "CURL_LIBS=$curl_libs" >> $config_host_mak
 fi
@@ -7205,7 +7174,7 @@ if test "$brlapi" = "yes" ; then
   echo "BRLAPI_LIBS=$brlapi_libs" >> $config_host_mak
 fi
 if test "$gtk" = "yes" ; then
-  echo "CONFIG_GTK=m" >> $config_host_mak
+  echo "CONFIG_GTK=y" >> $config_host_mak
   echo "GTK_CFLAGS=$gtk_cflags" >> $config_host_mak
   echo "GTK_LIBS=$gtk_libs" >> $config_host_mak
   if test "$gtk_gl" = "yes" ; then
@@ -7468,13 +7437,13 @@ if test "$zstd" = "yes" ; then
 fi
 
 if test "$libiscsi" = "yes" ; then
-  echo "CONFIG_LIBISCSI=m" >> $config_host_mak
+  echo "CONFIG_LIBISCSI=y" >> $config_host_mak
   echo "LIBISCSI_CFLAGS=$libiscsi_cflags" >> $config_host_mak
   echo "LIBISCSI_LIBS=$libiscsi_libs" >> $config_host_mak
 fi
 
 if test "$libnfs" = "yes" ; then
-  echo "CONFIG_LIBNFS=m" >> $config_host_mak
+  echo "CONFIG_LIBNFS=y" >> $config_host_mak
   echo "LIBNFS_LIBS=$libnfs_libs" >> $config_host_mak
 fi
 
@@ -7496,7 +7465,7 @@ if test "$qom_cast_debug" = "yes" ; then
   echo "CONFIG_QOM_CAST_DEBUG=y" >> $config_host_mak
 fi
 if test "$rbd" = "yes" ; then
-  echo "CONFIG_RBD=m" >> $config_host_mak
+  echo "CONFIG_RBD=y" >> $config_host_mak
   echo "RBD_LIBS=$rbd_libs" >> $config_host_mak
 fi
 
@@ -7568,7 +7537,7 @@ if test "$getauxval" = "yes" ; then
 fi
 
 if test "$glusterfs" = "yes" ; then
-  echo "CONFIG_GLUSTERFS=m" >> $config_host_mak
+  echo "CONFIG_GLUSTERFS=y" >> $config_host_mak
   echo "GLUSTERFS_CFLAGS=$glusterfs_cflags" >> $config_host_mak
   echo "GLUSTERFS_LIBS=$glusterfs_libs" >> $config_host_mak
 fi
@@ -7598,7 +7567,7 @@ if test "$glusterfs_iocb_has_stat" = "yes" ; then
 fi
 
 if test "$libssh" = "yes" ; then
-  echo "CONFIG_LIBSSH=m" >> $config_host_mak
+  echo "CONFIG_LIBSSH=y" >> $config_host_mak
   echo "LIBSSH_CFLAGS=$libssh_cflags" >> $config_host_mak
   echo "LIBSSH_LIBS=$libssh_libs" >> $config_host_mak
 fi
@@ -7858,7 +7827,7 @@ echo "LIBS+=$LIBS" >> $config_host_mak
 echo "LIBS_TOOLS+=$libs_tools" >> $config_host_mak
 echo "PTHREAD_LIB=$PTHREAD_LIB" >> $config_host_mak
 echo "EXESUF=$EXESUF" >> $config_host_mak
-echo "DSOSUF=$DSOSUF" >> $config_host_mak
+echo "HOST_DSOSUF=$HOST_DSOSUF" >> $config_host_mak
 echo "LDFLAGS_SHARED=$LDFLAGS_SHARED" >> $config_host_mak
 echo "LIBS_QGA=$libs_qga" >> $config_host_mak
 echo "TASN1_LIBS=$tasn1_libs" >> $config_host_mak
diff --git a/docs/devel/build-system.txt b/docs/devel/build-system.txt
index 41bd08ea3a..fea67b207c 100644
--- a/docs/devel/build-system.txt
+++ b/docs/devel/build-system.txt
@@ -404,10 +404,7 @@ using Makefile.target for the build rules.
 - rules.mak
 
 This file provides the generic helper rules for invoking build tools, in
-particular the compiler and linker. This also contains the magic (hairy)
-'unnest-vars' function which is used to merge the variable definitions
-from all Makefile.objs in the source tree down into the main Makefile
-context.
+particular the compiler and linker.
 
 
 - default-configs/*.mak
diff --git a/rules.mak b/rules.mak
index 6cab0b9cbd..c66c8218f0 100644
--- a/rules.mak
+++ b/rules.mak
@@ -33,11 +33,6 @@ QEMU_DGFLAGS += -MMD -MP -MT $@ -MF $(@D)/$(*F).d
 # different for target-dependent ones.
 QEMU_LOCAL_INCLUDES = -iquote $(BUILD_DIR) -iquote $(BUILD_DIR)/$(@D) -iquote $(@D)
 
-WL_U := -Wl,-u,
-find-symbols = $(if $1, $(sort $(shell $(NM) -P -g $1 | $2)))
-defined-symbols = $(call find-symbols,$1,awk '$$2!="U"{print $$1}')
-undefined-symbols = $(call find-symbols,$1,awk '$$2=="U"{print $$1}')
-
 WL := -Wl,
 ifdef CONFIG_DARWIN
 whole-archive = $(WL)-force_load,$1
@@ -45,32 +40,7 @@ else
 whole-archive = $(WL)--whole-archive $1 $(WL)--no-whole-archive
 endif
 
-# All the .mo objects in -m variables are also added into corresponding -y
-# variable in unnest-vars, but filtered out here, when LINK is called.
-#
-# The .mo objects are supposed to be linked as a DSO, for module build. So here
-# they are only used as a placeholders to generate those "archive undefined"
-# symbol options (-Wl,-u,$symbol_name), which are the archive functions
-# referenced by the code in the DSO.
-#
-# Also the presence in -y variables will also guarantee they are built before
-# linking executables that will load them. So we can look up symbol reference
-# in LINK.
-#
-# This is necessary because the exectuable itself may not use the function, in
-# which case the function would not be linked in. Then the DSO loading will
-# fail because of the missing symbol.
-process-archive-undefs = $(filter-out %.a %.fa %.mo %$(DSOSUF),$1) \
-                $(addprefix $(WL_U), \
-                     $(filter $(call defined-symbols,$(filter %.a %.fa, $1)), \
-		$(call undefined-symbols,$(filter %.mo %$(DSOSUF),$1)))) \
-		$(foreach l,$(filter %.fa,$1),$(call whole-archive,$l)) \
-		$(filter %.a,$1)
-
-extract-libs = $(strip $(foreach o,$(filter-out %.mo %$(DSOSUF),$1),$($o-libs)))
-expand-objs = $(strip $(sort $(filter %.o,$1)) \
-		$(foreach o,$(filter %.mo %$(DSOSUF),$1),$($o-objs)) \
-		$(filter-out %.o %.mo %$(DSOSUF),$1))
+extract-libs = $(strip $(foreach o,$1,$($o-libs)))
 
 %.o: %.c
 	@mkdir -p $(dir $@)
@@ -83,7 +53,9 @@ expand-objs = $(strip $(sort $(filter %.o,$1)) \
 LINKPROG = $(or $(CXX),$(CC))
 
 LINK = $(call quiet-command, $(LINKPROG) $(CFLAGS) $(QEMU_LDFLAGS) -o $@ \
-       $(call process-archive-undefs, $1) \
+       $(filter-out %.a %.fa,$1) \
+       $(foreach l,$(filter %.fa,$1),$(call whole-archive,$l)) \
+       $(filter %.a,$1) \
        $(call extract-libs,$1) $(LIBS),"LINK","$(TARGET_DIR)$@")
 
 %.o: %.S
@@ -109,25 +81,11 @@ LINK = $(call quiet-command, $(LINKPROG) $(CFLAGS) $(QEMU_LDFLAGS) -o $@ \
 %.o: %.dtrace
 	$(call quiet-command,dtrace -o $@ -G -s $<,"GEN","$(TARGET_DIR)$@")
 
-DSO_OBJ_CFLAGS := -fPIC -DBUILD_DSO
-module-common.o: CFLAGS += $(DSO_OBJ_CFLAGS)
-%$(DSOSUF): QEMU_LDFLAGS += $(LDFLAGS_SHARED)
-%$(DSOSUF): %.mo
-	$(call LINK,$^)
-	@# Copy to build root so modules can be loaded when program started without install
-	$(if $(findstring /,$@),$(call quiet-command,cp $@ $(subst /,-,$@),"CP","$(subst /,-,$@)"))
-
-
-LD_REL := $(CC) -nostdlib $(LD_REL_FLAGS)
-
-%.mo:
-	$(call quiet-command,$(LD_REL) -o $@ $^,"LD","$(TARGET_DIR)$@")
-
 .PHONY: modules
 modules:
 
 %$(EXESUF): %.o
-	$(call LINK,$(filter %.o %.a %.mo %.fa, $^))
+	$(call LINK,$(filter %.o %.a %.fa, $^))
 
 %.a:
 	$(call quiet-command,rm -f $@ && $(AR) rcs $@ $^,"AR","$(TARGET_DIR)$@")
@@ -160,15 +118,6 @@ define install-prog
 	$(if $(STRIP),$(STRIP) $(foreach T,$1,"$2/$(notdir $T)"),)
 endef
 
-# find-in-path
-# Usage: $(call find-in-path, prog)
-# Looks in the PATH if the argument contains no slash, else only considers one
-# specific directory.  Returns an # empty string if the program doesn't exist
-# there.
-find-in-path = $(if $(findstring /, $1), \
-        $(wildcard $1), \
-        $(wildcard $(patsubst %, %/$1, $(subst :, ,$(PATH)))))
-
 # Logical functions (for operating on y/n values like CONFIG_FOO vars)
 # Inputs to these must be either "y" (true) or "n" or "" (both false)
 # Output is always either "y" or "n".
@@ -205,175 +154,5 @@ clean: clean-timestamp
 # will delete the target of a rule if commands exit with a nonzero exit status
 .DELETE_ON_ERROR:
 
-# save-vars
-# Usage: $(call save-vars, vars)
-# Save each variable $v in $vars as save-vars-$v, save their object's
-# variables, then clear $v.  saved-vars-$v contains the variables that
-# where saved for the objects, in order to speedup load-vars.
-define save-vars
-    $(foreach v,$1,
-        $(eval save-vars-$v := $(value $v))
-        $(eval saved-vars-$v := $(foreach o,$($v), \
-            $(if $($o-cflags), $o-cflags $(eval save-vars-$o-cflags := $($o-cflags))$(eval $o-cflags := )) \
-            $(if $($o-libs), $o-libs $(eval save-vars-$o-libs := $($o-libs))$(eval $o-libs := )) \
-            $(if $($o-objs), $o-objs $(eval save-vars-$o-objs := $($o-objs))$(eval $o-objs := ))))
-        $(eval $v := ))
-endef
-
-# load-vars
-# Usage: $(call load-vars, vars, add_var)
-# Load the saved value for each variable in @vars, and the per object
-# variables.
-# Append @add_var's current value to the loaded value.
-define load-vars
-    $(eval $2-new-value := $(value $2))
-    $(foreach v,$1,
-        $(eval $v := $(value save-vars-$v))
-        $(foreach o,$(saved-vars-$v),
-            $(eval $o := $(save-vars-$o)) $(eval save-vars-$o := ))
-        $(eval save-vars-$v := )
-        $(eval saved-vars-$v := ))
-    $(eval $2 := $(value $2) $($2-new-value))
-endef
-
-# fix-paths
-# Usage: $(call fix-paths, obj_path, src_path, vars)
-# Add prefix @obj_path to all objects in @vars, and add prefix @src_path to all
-# directories in @vars.
-define fix-paths
-    $(foreach v,$3,
-        $(foreach o,$($v),
-            $(if $($o-libs),
-                $(eval $1$o-libs := $($o-libs)))
-            $(if $($o-cflags),
-                $(eval $1$o-cflags := $($o-cflags)))
-            $(if $($o-objs),
-                $(eval $1$o-objs := $(addprefix $1,$($o-objs)))))
-        $(eval $v := $(addprefix $1,$(filter-out %/,$($v))) \
-                     $(addprefix $2,$(filter %/,$($v)))))
-endef
-
-# unnest-var-recursive
-# Usage: $(call unnest-var-recursive, obj_prefix, vars, var)
-#
-# Unnest @var by including subdir Makefile.objs, while protect others in @vars
-# unchanged.
-#
-# @obj_prefix is the starting point of object path prefix.
-#
-define unnest-var-recursive
-    $(eval dirs := $(sort $(filter %/,$($3))))
-    $(eval $3 := $(filter-out %/,$($3)))
-    $(foreach d,$(dirs:%/=%),
-            $(call save-vars,$2)
-            $(eval obj := $(if $1,$1/)$d)
-            $(eval -include $(SRC_PATH)/$d/Makefile.objs)
-            $(call fix-paths,$(if $1,$1/)$d/,$d/,$2)
-            $(call load-vars,$2,$3)
-            $(call unnest-var-recursive,$1,$2,$3))
-endef
-
-# unnest-vars
-# Usage: $(call unnest-vars, obj_prefix, vars)
-#
-# @obj_prefix: object path prefix, can be empty, or '..', etc. Don't include
-# ending '/'.
-#
-# @vars: the list of variable names to unnest.
-#
-# This macro will scan subdirectories's Makefile.objs, include them, to build
-# up each variable listed in @vars.
-#
-# Per object and per module cflags and libs are saved with relative path fixed
-# as well, those variables include -libs, -cflags and -objs. Items in -objs are
-# also fixed to relative path against SRC_PATH plus the prefix @obj_prefix.
-#
-# All nested variables postfixed by -m in names are treated as DSO variables,
-# and will be built as modules, if enabled.
-#
-# A simple example of the unnest:
-#
-#     obj_prefix = ..
-#     vars = hot cold
-#     hot  = fire.o sun.o season/
-#     cold = snow.o water/ season/
-#
-# Unnest through a faked source directory structure:
-#
-#     SRC_PATH
-#        ├── water
-#        │   └── Makefile.objs──────────────────┐
-#        │       │ hot += steam.o               │
-#        │       │ cold += ice.mo               │
-#        │       │ ice.mo-libs := -licemaker    │
-#        │       │ ice.mo-objs := ice1.o ice2.o │
-#        │       └──────────────────────────────┘
-#        │
-#        └── season
-#            └── Makefile.objs──────┐
-#                │ hot += summer.o  │
-#                │ cold += winter.o │
-#                └──────────────────┘
-#
-# In the end, the result will be:
-#
-#     hot  = ../fire.o ../sun.o ../season/summer.o
-#     cold = ../snow.o ../water/ice.mo ../season/winter.o
-#     ../water/ice.mo-libs = -licemaker
-#     ../water/ice.mo-objs = ../water/ice1.o ../water/ice2.o
-#
-# Note that 'hot' didn't include 'water/' in the input, so 'steam.o' is not
-# included.
-#
-define unnest-vars
-    # In the case of target build (i.e. $1 == ..), fix path for top level
-    # Makefile.objs objects
-    $(if $1,$(call fix-paths,$1/,,$2))
-
-    # Descend and include every subdir Makefile.objs
-    $(foreach v, $2,
-        $(call unnest-var-recursive,$1,$2,$v)
-        # Pass the .mo-cflags and .mo-libs along to its member objects
-        $(foreach o, $(filter %.mo,$($v)),
-            $(foreach p,$($o-objs),
-                $(if $($o-cflags), $(eval $p-cflags += $($o-cflags)))
-                $(if $($o-libs), $(eval $p-libs += $($o-libs))))))
-
-    # For all %.mo objects that are directly added into -y, just expand them
-    $(foreach v,$(filter %-y,$2),
-        $(eval $v := $(foreach o,$($v),$(if $($o-objs),$($o-objs),$o))))
-
-    $(foreach v,$(filter %-m,$2),
-        # All .o found in *-m variables are single object modules, create .mo
-        # for them
-        $(foreach o,$(filter %.o,$($v)),
-            $(eval $(o:%.o=%.mo)-objs := $o))
-        # Now unify .o in -m variable to .mo
-        $(eval $v := $($v:%.o=%.mo))
-        $(eval modules-m += $($v))
-
-        # For module build, build shared libraries during "make modules"
-        # For non-module build, add -m to -y
-        $(if $(CONFIG_MODULES),
-             $(foreach o,$($v),
-                   $(eval $($o-objs): CFLAGS += $(DSO_OBJ_CFLAGS))
-                   $(eval $o: $($o-objs)))
-             $(eval $(patsubst %-m,%-y,$v) += $($v))
-             $(eval modules: $($v:%.mo=%$(DSOSUF))),
-             $(eval $(patsubst %-m,%-y,$v) += $(call expand-objs, $($v)))))
-
-    # Post-process all the unnested vars
-    $(foreach v,$2,
-        $(foreach o, $(filter %.mo,$($v)),
-            # Find all the .mo objects in variables and add dependency rules
-            # according to .mo-objs. Report error if not set
-            $(if $($o-objs),
-                $(eval $(o:%.mo=%$(DSOSUF)): module-common.o $($o-objs))))
-        $(shell mkdir -p ./ $(sort $(dir $($v))))
-        # Include all the .d files
-        $(eval -include $(patsubst %.o,%.d,$(patsubst %.mo,%.d,$(filter %.o,$($v)))))
-        $(eval $v := $(filter-out %/,$($v))))
-endef
-
 print-%:
 	@echo '$*=$($*)'
diff --git a/scripts/create_config b/scripts/create_config
index bc82661041..ec5c0b4124 100755
--- a/scripts/create_config
+++ b/scripts/create_config
@@ -91,6 +91,9 @@ case $line in
     name=${line%=*}
     echo "#define $name 1"
     ;;
+ HOST_DSOSUF=*)
+    echo "#define HOST_DSOSUF \"${line#*=}\""
+    ;;
  HOST_*=*) # configuration
     name=${line%=*}
     value=${line#*=}
@@ -123,9 +126,6 @@ case $line in
     value=${line#*=}
     echo "#define $name $value"
     ;;
- DSOSUF=*)
-    echo "#define HOST_DSOSUF \"${line#*=}\""
-    ;;
 esac
 
 done # read
-- 
2.26.2




  parent reply	other threads:[~2020-08-21 11:32 UTC|newest]

Thread overview: 157+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-21 10:20 [PULL v8 000/152] Meson-based build system Paolo Bonzini
2020-08-21 10:20 ` [PULL v8 001/152] oss-fuzz/build: remove LIB_FUZZING_ENGINE Paolo Bonzini
2020-08-21 10:20 ` [PULL v8 002/152] optionrom: simplify Makefile Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 003/152] pc-bios/s390-ccw: do not use rules.mak Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 004/152] trace: switch position of headers to what Meson requires Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 005/152] meson: rename included C source files to .c.inc Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 006/152] meson: rename .inc.h files to .h.inc Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 007/152] build-sys hack: ensure target directory is there Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 008/152] tests/vm: do not pollute configure with --efi-aarch64 Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 009/152] tests/vm: check for Python YAML parser in the Makefile Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 010/152] tests/docker: add test script for static linux-user builds Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 011/152] nsis: use "make DESTDIR=" instead of "make prefix=" Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 012/152] configure: do not include $(...) variables in config-host.mak Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 013/152] configure: expand path variables for meson configure Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 014/152] configure: prepare CFLAGS/CXXFLAGS/LDFLAGS for Meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 015/152] tests/vm: include setuptools Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 016/152] configure: add support for pseudo-"in source tree" builds Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 017/152] configure: integrate Meson in the build system Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 018/152] configure: generate Meson cross file Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 019/152] build-sys hack: link with whole .fa archives Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 020/152] build-sys: add meson submodule Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 021/152] meson: move summary to meson.build Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 022/152] meson: enable pie Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 023/152] meson: use coverage option Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 024/152] meson: add sparse support Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 025/152] meson: add testsuite Makefile generator Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 026/152] libqemuutil, qapi, trace: convert to meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 027/152] meson: add remaining generated tcg trace helpers Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 028/152] meson: add version.o Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 029/152] contrib/libvhost-user: convert to Meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 030/152] tools/virtiofsd: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 031/152] contrib/vhost-user-blk: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 032/152] vhost-user-scsi: add compatibility for libiscsi 1.9.0 Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 033/152] contrib/vhost-user-scsi: convert to Meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 034/152] contrib/rdmacm-mux: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 035/152] contrib/vhost-user-input: convert to meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 036/152] contrib/vhost-user-gpu: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 037/152] contrib/ivshmem: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 038/152] contrib/elf2dmp: " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 039/152] meson: add macos dependencies Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 040/152] meson: add solaris and Haiku libraries Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 041/152] meson: convert qemu-ga Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 042/152] meson: convert vss-win32 Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 043/152] meson: add msi generation Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 044/152] meson: convert dummy Windows qga/qemu-ga target Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 045/152] meson: add qemu-bridge-helper Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 046/152] meson: add qemu-keymap Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 047/152] meson: add qemu-edid Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 048/152] meson: add virtfs-proxy-helper Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 049/152] meson: keymap-gen Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 050/152] meson: generate qemu-version.h Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 051/152] meson: generate shader headers Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 052/152] meson: generate hxtool files Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 053/152] meson: handle edk2 bios and descriptors Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 054/152] meson: convert check-decodetree Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 055/152] meson: convert tests/fp and check-softfloat Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 056/152] meson: convert check-qapi-schema Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 057/152] meson: convert qom directory to Meson (tools part) Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 058/152] meson: convert authz directory to Meson Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 059/152] meson: convert crypto " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 060/152] meson: convert io " Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 061/152] meson: convert target/s390x/gen-features.h Paolo Bonzini
2020-08-21 10:21 ` [PULL v8 062/152] meson: infrastructure for building emulators Paolo Bonzini
2020-11-03 13:39   ` Philippe Mathieu-Daudé
2020-11-03 14:19     ` 罗勇刚(Yonggang Luo)
2020-11-03 14:25       ` Paolo Bonzini
2020-11-03 14:27         ` 罗勇刚(Yonggang Luo)
2020-08-21 10:22 ` [PULL v8 063/152] meson: add modules infrastructure Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 064/152] meson: convert chardev directory to Meson (tools part) Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 065/152] meson: convert block Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 066/152] meson: qemu-{img,io,nbd} Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 067/152] meson: qemu-pr-helper Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 068/152] configure, Makefile; remove TOOLS and HELPERS-y variable Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 069/152] meson: convert chardev directory to Meson (emulator part) Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 070/152] meson: convert tests/qtest to meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 071/152] meson: convert audio directory to Meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 072/152] meson: convert ui " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 073/152] meson: convert root " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 074/152] meson: convert most of softmmu/ Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 075/152] meson: convert trace/ Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 076/152] meson: convert dump/ Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 077/152] meson: convert common QMP bits for qemu and qemu-storage-daemon Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 078/152] meson: convert qemu-storage-daemon Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 079/152] meson: convert replay directory to Meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 080/152] meson: convert migration " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 081/152] meson: convert net " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 082/152] meson: convert backends " Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 083/152] meson: convert fsdev/ Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 084/152] meson: convert disas directory to Meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 085/152] meson: convert qapi-specific to meson Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 086/152] meson: convert hw/xen Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 087/152] meson: convert hw/core Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 088/152] meson: convert hw/semihosting Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 089/152] meson: convert hw/nubus Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 090/152] meson: convert hw/smbios Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 091/152] meson: convert hw/mem Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 092/152] meson: convert hw/watchdog Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 093/152] meson: convert hw/virtio Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 094/152] meson: convert hw/vfio Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 095/152] meson: convert hw/usb Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 096/152] meson: convert hw/tpm Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 097/152] meson: convert hw/timer Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 098/152] meson: convert hw/rtc Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 099/152] meson: convert hw/ssi Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 100/152] meson: convert hw/sd Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 101/152] meson: convert hw/scsi Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 102/152] meson: convert hw/pcmcia Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 103/152] meson: convert hw/pci-host Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 104/152] meson: convert hw/pci-bridge Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 105/152] meson: convert hw/pci Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 106/152] meson: convert hw/nvram Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 107/152] meson: convert hw/rdma Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 108/152] meson: convert hw/net Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 109/152] meson: convert hw/misc Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 110/152] meson: convert hw/isa Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 111/152] meson: convert hw/ipmi Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 112/152] meson: convert hw/ipack Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 113/152] meson: convert hw/intc Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 114/152] meson: convert hw/input Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 115/152] meson: convert hw/ide Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 116/152] meson: convert hw/i2c Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 117/152] meson: convert hw/hyperv Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 118/152] meson: convert hw/gpio Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 119/152] meson: convert hw/dma Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 120/152] meson: convert hw/display Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 121/152] meson: convert hw/cpu Paolo Bonzini
2020-08-21 10:22 ` [PULL v8 122/152] meson: convert hw/char Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 123/152] meson: convert hw/block Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 124/152] meson: convert hw/audio Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 125/152] meson: convert hw/adc Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 126/152] meson: convert hw/acpi Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 127/152] meson: convert hw/9pfs, cleanup Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 128/152] meson: convert hw/arch* Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 129/152] meson: target Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 130/152] meson: accel Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 131/152] meson: linux-user Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 132/152] meson: bsd-user Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 133/152] meson: cpu-emu Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 134/152] meson: plugins Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 135/152] meson: link emulators without Makefile.target Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 136/152] configure: place compatibility symlinks in target directories Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 137/152] meson: convert systemtap files Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 138/152] rules.mak: remove version.o Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 139/152] remove Makefile.target Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 140/152] meson: sphinx-build Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 141/152] docs: automatically track manual dependencies Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 142/152] meson: build texi doc Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 143/152] meson: convert check-block Paolo Bonzini
2020-08-21 10:23 ` Paolo Bonzini [this message]
2020-08-21 10:23 ` [PULL v8 145/152] meson: replace create-config with meson configure_file Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 146/152] meson: convert sample plugins Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 147/152] meson: move SDL and SDL-image detection to meson Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 148/152] meson: convert VNC and dependent libraries " Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 149/152] meson: convert po/ Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 150/152] meson: avoid unstable module warning with Meson 0.56.0 or newer Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 151/152] meson: update build-system documentation Paolo Bonzini
2020-08-21 10:23 ` [PULL v8 152/152] docs: convert build system documentation to rST Paolo Bonzini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200821102329.29777-145-pbonzini@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.