From 1f3d3c8fd7f76150b727aa5980097d524cbb1141 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Wed, 7 Oct 2009 02:41:02 +0200 Subject: Add new config-devices.mak for each target We generate config-devices.h from there automatically. We need to do it in main Makefile, because we are going to need a main Makefile for them. Patchworks-ID: 35196 Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- .gitignore | 2 ++ Makefile | 7 +++++++ Makefile.hw | 1 + Makefile.target | 1 + configure | 5 +++++ default-configs/alpha-linux-user.mak | 1 + default-configs/arm-linux-user.mak | 1 + default-configs/arm-softmmu.mak | 1 + default-configs/armeb-linux-user.mak | 1 + default-configs/cris-linux-user.mak | 1 + default-configs/cris-softmmu.mak | 1 + default-configs/i386-bsd-user.mak | 1 + default-configs/i386-darwin-user.mak | 1 + default-configs/i386-linux-user.mak | 1 + default-configs/i386-softmmu.mak | 1 + default-configs/m68k-linux-user.mak | 1 + default-configs/m68k-softmmu.mak | 1 + default-configs/microblaze-linux-user.mak | 1 + default-configs/microblaze-softmmu.mak | 1 + default-configs/mips-linux-user.mak | 1 + default-configs/mips-softmmu.mak | 1 + default-configs/mips64-softmmu.mak | 1 + default-configs/mips64el-softmmu.mak | 1 + default-configs/mipsel-linux-user.mak | 1 + default-configs/mipsel-softmmu.mak | 1 + default-configs/ppc-darwin-user.mak | 1 + default-configs/ppc-linux-user.mak | 1 + default-configs/ppc-softmmu.mak | 1 + default-configs/ppc64-linux-user.mak | 1 + default-configs/ppc64-softmmu.mak | 1 + default-configs/ppc64abi32-linux-user.mak | 1 + default-configs/ppcemb-softmmu.mak | 1 + default-configs/sh4-linux-user.mak | 1 + default-configs/sh4-softmmu.mak | 1 + default-configs/sh4eb-linux-user.mak | 1 + default-configs/sh4eb-softmmu.mak | 1 + default-configs/sparc-bsd-user.mak | 1 + default-configs/sparc-linux-user.mak | 1 + default-configs/sparc-softmmu.mak | 1 + default-configs/sparc32plus-linux-user.mak | 1 + default-configs/sparc64-bsd-user.mak | 1 + default-configs/sparc64-linux-user.mak | 1 + default-configs/sparc64-softmmu.mak | 1 + default-configs/x86_64-bsd-user.mak | 1 + default-configs/x86_64-linux-user.mak | 1 + default-configs/x86_64-softmmu.mak | 1 + 46 files changed, 57 insertions(+) create mode 100644 default-configs/alpha-linux-user.mak create mode 100644 default-configs/arm-linux-user.mak create mode 100644 default-configs/arm-softmmu.mak create mode 100644 default-configs/armeb-linux-user.mak create mode 100644 default-configs/cris-linux-user.mak create mode 100644 default-configs/cris-softmmu.mak create mode 100644 default-configs/i386-bsd-user.mak create mode 100644 default-configs/i386-darwin-user.mak create mode 100644 default-configs/i386-linux-user.mak create mode 100644 default-configs/i386-softmmu.mak create mode 100644 default-configs/m68k-linux-user.mak create mode 100644 default-configs/m68k-softmmu.mak create mode 100644 default-configs/microblaze-linux-user.mak create mode 100644 default-configs/microblaze-softmmu.mak create mode 100644 default-configs/mips-linux-user.mak create mode 100644 default-configs/mips-softmmu.mak create mode 100644 default-configs/mips64-softmmu.mak create mode 100644 default-configs/mips64el-softmmu.mak create mode 100644 default-configs/mipsel-linux-user.mak create mode 100644 default-configs/mipsel-softmmu.mak create mode 100644 default-configs/ppc-darwin-user.mak create mode 100644 default-configs/ppc-linux-user.mak create mode 100644 default-configs/ppc-softmmu.mak create mode 100644 default-configs/ppc64-linux-user.mak create mode 100644 default-configs/ppc64-softmmu.mak create mode 100644 default-configs/ppc64abi32-linux-user.mak create mode 100644 default-configs/ppcemb-softmmu.mak create mode 100644 default-configs/sh4-linux-user.mak create mode 100644 default-configs/sh4-softmmu.mak create mode 100644 default-configs/sh4eb-linux-user.mak create mode 100644 default-configs/sh4eb-softmmu.mak create mode 100644 default-configs/sparc-bsd-user.mak create mode 100644 default-configs/sparc-linux-user.mak create mode 100644 default-configs/sparc-softmmu.mak create mode 100644 default-configs/sparc32plus-linux-user.mak create mode 100644 default-configs/sparc64-bsd-user.mak create mode 100644 default-configs/sparc64-linux-user.mak create mode 100644 default-configs/sparc64-softmmu.mak create mode 100644 default-configs/x86_64-bsd-user.mak create mode 100644 default-configs/x86_64-linux-user.mak create mode 100644 default-configs/x86_64-softmmu.mak diff --git a/.gitignore b/.gitignore index 7e6d84415d..cdd6aad974 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +config-devices.* +config-all-devices.* config-host.* config-target.* i386 diff --git a/Makefile b/Makefile index 519b93611d..062c129cf8 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,12 @@ DOCS= endif SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory) +SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS)) + +config-all-devices.mak: $(SUBDIR_DEVICES_MAK) + $(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep "=y$$" | sort -u > $@," GEN $@") + +-include config-all-devices.mak build-all: config-host.h $(call quiet-command, $(MAKE) $(SUBDIR_MAKEFLAGS) $(TOOLS) $(DOCS) recurse-all,) @@ -203,6 +209,7 @@ clean: distclean: clean rm -f config-host.mak config-host.h* config-host.ld $(DOCS) qemu-options.texi qemu-img-cmds.texi + rm -f config-all-devices.mak config-all-devices.h* rm -f qemu-{doc,tech}.{info,aux,cp,dvi,fn,info,ky,log,pg,toc,tp,vr} for d in $(TARGET_DIRS) libhw32 libhw64 libuser; do \ rm -rf $$d || exit 1 ; \ diff --git a/Makefile.hw b/Makefile.hw index 830902bb68..2b4ef03e0a 100644 --- a/Makefile.hw +++ b/Makefile.hw @@ -1,6 +1,7 @@ # Makefile for qemu target independent devices. include ../config-host.mak +include ../config-all-devices.mak include config.mak include $(SRC_PATH)/rules.mak diff --git a/Makefile.target b/Makefile.target index 56567ee5c6..1f2f9bcf9b 100644 --- a/Makefile.target +++ b/Makefile.target @@ -1,6 +1,7 @@ # -*- Mode: makefile -*- include ../config-host.mak +include config-devices.mak include config-target.mak include $(SRC_PATH)/rules.mak diff --git a/configure b/configure index 70363be849..0cb4326559 100755 --- a/configure +++ b/configure @@ -2076,6 +2076,7 @@ target_dir="$target" config_target_mak=$target_dir/config-target.mak target_arch2=`echo $target | cut -d '-' -f 1` target_bigendian="no" + case "$target_arch2" in armeb|m68k|microblaze|mips|mipsn32|mips64|ppc|ppcemb|ppc64|ppc64abi32|sh4eb|sparc|sparc64|sparc32plus) target_bigendian=yes @@ -2116,6 +2117,10 @@ if test "$target" = "arm-linux-user" -o "$target" = "armeb-linux-user" -o "$targ mkdir -p $target_dir/nwfpe fi +if test ! -f $target_dir/config-devices.mak ; then + cp $source_path/default-configs/${target}.mak $target_dir/config-devices.mak +fi + # # don't use ln -sf as not all "ln -sf" over write the file/link # diff --git a/default-configs/alpha-linux-user.mak b/default-configs/alpha-linux-user.mak new file mode 100644 index 0000000000..7956e29898 --- /dev/null +++ b/default-configs/alpha-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for alpha-linux-user diff --git a/default-configs/arm-linux-user.mak b/default-configs/arm-linux-user.mak new file mode 100644 index 0000000000..413361a022 --- /dev/null +++ b/default-configs/arm-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for arm-linux-user diff --git a/default-configs/arm-softmmu.mak b/default-configs/arm-softmmu.mak new file mode 100644 index 0000000000..372a549722 --- /dev/null +++ b/default-configs/arm-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for arm-softmmu diff --git a/default-configs/armeb-linux-user.mak b/default-configs/armeb-linux-user.mak new file mode 100644 index 0000000000..bf2ffe7038 --- /dev/null +++ b/default-configs/armeb-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for armeb-linux-user diff --git a/default-configs/cris-linux-user.mak b/default-configs/cris-linux-user.mak new file mode 100644 index 0000000000..e3aec7b864 --- /dev/null +++ b/default-configs/cris-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for cris-linux-user diff --git a/default-configs/cris-softmmu.mak b/default-configs/cris-softmmu.mak new file mode 100644 index 0000000000..3726699370 --- /dev/null +++ b/default-configs/cris-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for cris-softmmu diff --git a/default-configs/i386-bsd-user.mak b/default-configs/i386-bsd-user.mak new file mode 100644 index 0000000000..af1b31a59a --- /dev/null +++ b/default-configs/i386-bsd-user.mak @@ -0,0 +1 @@ +# Default configuration for i386-bsd-user diff --git a/default-configs/i386-darwin-user.mak b/default-configs/i386-darwin-user.mak new file mode 100644 index 0000000000..19afd3dae5 --- /dev/null +++ b/default-configs/i386-darwin-user.mak @@ -0,0 +1 @@ +# Default configuration for i386-darwin-user diff --git a/default-configs/i386-linux-user.mak b/default-configs/i386-linux-user.mak new file mode 100644 index 0000000000..8657e68627 --- /dev/null +++ b/default-configs/i386-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for i386-linux-user diff --git a/default-configs/i386-softmmu.mak b/default-configs/i386-softmmu.mak new file mode 100644 index 0000000000..15586a0c93 --- /dev/null +++ b/default-configs/i386-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for i386-softmmu diff --git a/default-configs/m68k-linux-user.mak b/default-configs/m68k-linux-user.mak new file mode 100644 index 0000000000..06cd5ed7ed --- /dev/null +++ b/default-configs/m68k-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for m68k-linux-user diff --git a/default-configs/m68k-softmmu.mak b/default-configs/m68k-softmmu.mak new file mode 100644 index 0000000000..572b8684b0 --- /dev/null +++ b/default-configs/m68k-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for m68k-softmmu diff --git a/default-configs/microblaze-linux-user.mak b/default-configs/microblaze-linux-user.mak new file mode 100644 index 0000000000..566fdc01c4 --- /dev/null +++ b/default-configs/microblaze-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for microblaze-linux-user diff --git a/default-configs/microblaze-softmmu.mak b/default-configs/microblaze-softmmu.mak new file mode 100644 index 0000000000..c42009d003 --- /dev/null +++ b/default-configs/microblaze-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for microblaze-softmmu diff --git a/default-configs/mips-linux-user.mak b/default-configs/mips-linux-user.mak new file mode 100644 index 0000000000..31df57021e --- /dev/null +++ b/default-configs/mips-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for mips-linux-user diff --git a/default-configs/mips-softmmu.mak b/default-configs/mips-softmmu.mak new file mode 100644 index 0000000000..a9e89eca91 --- /dev/null +++ b/default-configs/mips-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for mips-softmmu diff --git a/default-configs/mips64-softmmu.mak b/default-configs/mips64-softmmu.mak new file mode 100644 index 0000000000..4211452738 --- /dev/null +++ b/default-configs/mips64-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for mips64-softmmu diff --git a/default-configs/mips64el-softmmu.mak b/default-configs/mips64el-softmmu.mak new file mode 100644 index 0000000000..8ca46a20d5 --- /dev/null +++ b/default-configs/mips64el-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for mips64el-softmmu diff --git a/default-configs/mipsel-linux-user.mak b/default-configs/mipsel-linux-user.mak new file mode 100644 index 0000000000..4d0e4afb69 --- /dev/null +++ b/default-configs/mipsel-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for mipsel-linux-user diff --git a/default-configs/mipsel-softmmu.mak b/default-configs/mipsel-softmmu.mak new file mode 100644 index 0000000000..fe8af41943 --- /dev/null +++ b/default-configs/mipsel-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for mipsel-softmmu diff --git a/default-configs/ppc-darwin-user.mak b/default-configs/ppc-darwin-user.mak new file mode 100644 index 0000000000..117f17638c --- /dev/null +++ b/default-configs/ppc-darwin-user.mak @@ -0,0 +1 @@ +# Default configuration for ppc-darwin-user diff --git a/default-configs/ppc-linux-user.mak b/default-configs/ppc-linux-user.mak new file mode 100644 index 0000000000..6273df2930 --- /dev/null +++ b/default-configs/ppc-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for ppc-linux-user diff --git a/default-configs/ppc-softmmu.mak b/default-configs/ppc-softmmu.mak new file mode 100644 index 0000000000..ba80ba24c1 --- /dev/null +++ b/default-configs/ppc-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for ppc-softmmu diff --git a/default-configs/ppc64-linux-user.mak b/default-configs/ppc64-linux-user.mak new file mode 100644 index 0000000000..422d3fbaeb --- /dev/null +++ b/default-configs/ppc64-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for ppc64-linux-user diff --git a/default-configs/ppc64-softmmu.mak b/default-configs/ppc64-softmmu.mak new file mode 100644 index 0000000000..0b72c70ae4 --- /dev/null +++ b/default-configs/ppc64-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for ppc64-softmmu diff --git a/default-configs/ppc64abi32-linux-user.mak b/default-configs/ppc64abi32-linux-user.mak new file mode 100644 index 0000000000..1c657ec9bb --- /dev/null +++ b/default-configs/ppc64abi32-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for ppc64abi32-linux-user diff --git a/default-configs/ppcemb-softmmu.mak b/default-configs/ppcemb-softmmu.mak new file mode 100644 index 0000000000..951bfa0403 --- /dev/null +++ b/default-configs/ppcemb-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for ppcemb-softmmu diff --git a/default-configs/sh4-linux-user.mak b/default-configs/sh4-linux-user.mak new file mode 100644 index 0000000000..a469e19ac6 --- /dev/null +++ b/default-configs/sh4-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for sh4-linux-user diff --git a/default-configs/sh4-softmmu.mak b/default-configs/sh4-softmmu.mak new file mode 100644 index 0000000000..44668357c7 --- /dev/null +++ b/default-configs/sh4-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for sh4-softmmu diff --git a/default-configs/sh4eb-linux-user.mak b/default-configs/sh4eb-linux-user.mak new file mode 100644 index 0000000000..be08ca1002 --- /dev/null +++ b/default-configs/sh4eb-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for sh4eb-linux-user diff --git a/default-configs/sh4eb-softmmu.mak b/default-configs/sh4eb-softmmu.mak new file mode 100644 index 0000000000..2f60e53adb --- /dev/null +++ b/default-configs/sh4eb-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for sh4eb-softmmu diff --git a/default-configs/sparc-bsd-user.mak b/default-configs/sparc-bsd-user.mak new file mode 100644 index 0000000000..21e09508d8 --- /dev/null +++ b/default-configs/sparc-bsd-user.mak @@ -0,0 +1 @@ +# Default configuration for sparc-bsd-user diff --git a/default-configs/sparc-linux-user.mak b/default-configs/sparc-linux-user.mak new file mode 100644 index 0000000000..9c716d1f92 --- /dev/null +++ b/default-configs/sparc-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for sparc-linux-user diff --git a/default-configs/sparc-softmmu.mak b/default-configs/sparc-softmmu.mak new file mode 100644 index 0000000000..2e0e621946 --- /dev/null +++ b/default-configs/sparc-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for sparc-softmmu diff --git a/default-configs/sparc32plus-linux-user.mak b/default-configs/sparc32plus-linux-user.mak new file mode 100644 index 0000000000..432e88011e --- /dev/null +++ b/default-configs/sparc32plus-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for sparc32plus-linux-user diff --git a/default-configs/sparc64-bsd-user.mak b/default-configs/sparc64-bsd-user.mak new file mode 100644 index 0000000000..b8b9eea7f6 --- /dev/null +++ b/default-configs/sparc64-bsd-user.mak @@ -0,0 +1 @@ +# Default configuration for sparc64-bsd-user diff --git a/default-configs/sparc64-linux-user.mak b/default-configs/sparc64-linux-user.mak new file mode 100644 index 0000000000..bf1bdd6aa4 --- /dev/null +++ b/default-configs/sparc64-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for sparc64-linux-user diff --git a/default-configs/sparc64-softmmu.mak b/default-configs/sparc64-softmmu.mak new file mode 100644 index 0000000000..fead2ea828 --- /dev/null +++ b/default-configs/sparc64-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for sparc64-softmmu diff --git a/default-configs/x86_64-bsd-user.mak b/default-configs/x86_64-bsd-user.mak new file mode 100644 index 0000000000..73e5d34ec5 --- /dev/null +++ b/default-configs/x86_64-bsd-user.mak @@ -0,0 +1 @@ +# Default configuration for x86_64-bsd-user diff --git a/default-configs/x86_64-linux-user.mak b/default-configs/x86_64-linux-user.mak new file mode 100644 index 0000000000..bec1d9e7c6 --- /dev/null +++ b/default-configs/x86_64-linux-user.mak @@ -0,0 +1 @@ +# Default configuration for x86_64-linux-user diff --git a/default-configs/x86_64-softmmu.mak b/default-configs/x86_64-softmmu.mak new file mode 100644 index 0000000000..ec98af20fb --- /dev/null +++ b/default-configs/x86_64-softmmu.mak @@ -0,0 +1 @@ +# Default configuration for x86_64-softmmu -- cgit v1.2.3