@@ -19,7 +19,8 @@ obj-$(CONFIG_M48T59) += m48t59.o
obj-$(CONFIG_ESCC) += escc.o
# SCSI layer
-obj-y += lsi53c895a.o esp.o
+obj-y += lsi53c895a.o
+obj-$(CONFIG_ESP) += esp.o
obj-y += dma-helpers.o sysbus.o qdev-addr.o
@@ -1822,6 +1822,7 @@ sd_flash=no
ptimer=no
m48t59=no
escc=no
+esp=no
for target in $target_list; do
target_dir="$target"
@@ -2062,11 +2063,15 @@ if test "$target_softmmu" = "yes" ; then
sparc64)
ptimer=yes
m48t59=yes
+ esp=yes
;;
ppc*)
m48t59=yes
escc=yes
;;
+ mips*)
+ esp=yes
+ ;;
esac
fi
if test "$target_user_only" = "yes" ; then
@@ -2288,6 +2293,11 @@ fi
if test "$escc" = "yes" ; then
echo "CONFIG_ESCC=y" >> $config_host_mak
fi
+
+if test "$esp" = "yes" ; then
+ echo "CONFIG_ESP=y" >> $config_host_mak
+fi
+
echo "/* Automatically generated by configure - do not modify */" > $config_host_h
/bin/sh $source_path/create_config < $config_host_mak >> $config_host_h
Signed-off-by: Juan Quintela <quintela@redhat.com> --- Makefile.hw | 3 ++- configure | 10 ++++++++++ 2 files changed, 12 insertions(+), 1 deletions(-)