Commit 1f3d3c8f authored by Juan Quintela's avatar Juan Quintela Committed by Anthony Liguori

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: default avatarJuan Quintela <quintela@redhat.com>
Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
parent 91880d96
config-devices.*
config-all-devices.*
config-host.*
config-target.*
i386
......
......@@ -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 ; \
......
# Makefile for qemu target independent devices.
include ../config-host.mak
include ../config-all-devices.mak
include config.mak
include $(SRC_PATH)/rules.mak
......
# -*- Mode: makefile -*-
include ../config-host.mak
include config-devices.mak
include config-target.mak
include $(SRC_PATH)/rules.mak
......
......@@ -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
#
......
# Default configuration for alpha-linux-user
# Default configuration for arm-linux-user
# Default configuration for arm-softmmu
# Default configuration for armeb-linux-user
# Default configuration for cris-linux-user
# Default configuration for cris-softmmu
# Default configuration for i386-bsd-user
# Default configuration for i386-darwin-user
# Default configuration for i386-linux-user
# Default configuration for i386-softmmu
# Default configuration for m68k-linux-user
# Default configuration for m68k-softmmu
# Default configuration for microblaze-linux-user
# Default configuration for microblaze-softmmu
# Default configuration for mips-linux-user
# Default configuration for mips-softmmu
# Default configuration for mips64-softmmu
# Default configuration for mips64el-softmmu
# Default configuration for mipsel-linux-user
# Default configuration for mipsel-softmmu
# Default configuration for ppc-darwin-user
# Default configuration for ppc-linux-user
# Default configuration for ppc-softmmu
# Default configuration for ppc64-linux-user
# Default configuration for ppc64-softmmu
# Default configuration for ppc64abi32-linux-user
# Default configuration for ppcemb-softmmu
# Default configuration for sh4-linux-user
# Default configuration for sh4-softmmu
# Default configuration for sh4eb-linux-user
# Default configuration for sh4eb-softmmu
# Default configuration for sparc-bsd-user
# Default configuration for sparc-linux-user
# Default configuration for sparc-softmmu
# Default configuration for sparc32plus-linux-user
# Default configuration for sparc64-bsd-user
# Default configuration for sparc64-linux-user
# Default configuration for sparc64-softmmu
# Default configuration for x86_64-bsd-user
# Default configuration for x86_64-linux-user
# Default configuration for x86_64-softmmu
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment