27 |
make="make" |
make="make" |
28 |
strip="strip" |
strip="strip" |
29 |
cpu=`uname -m` |
cpu=`uname -m` |
30 |
target_list="i386 i386-softmmu arm sparc" |
target_list="i386-user i386 i386-softmmu arm-user sparc-user" |
31 |
case "$cpu" in |
case "$cpu" in |
32 |
i386|i486|i586|i686|i86pc|BePC) |
i386|i486|i586|i686|i86pc|BePC) |
33 |
cpu="i386" |
cpu="i386" |
324 |
if expr $target : '.*-softmmu' > /dev/null ; then |
if expr $target : '.*-softmmu' > /dev/null ; then |
325 |
target_softmmu="yes" |
target_softmmu="yes" |
326 |
fi |
fi |
327 |
|
target_user_only="no" |
328 |
|
if expr $target : '.*-user' > /dev/null ; then |
329 |
|
target_user_only="yes" |
330 |
|
fi |
331 |
|
|
332 |
echo "Creating $config_mak, $config_h and $target_dir/Makefile" |
echo "Creating $config_mak, $config_h and $target_dir/Makefile" |
333 |
|
|
368 |
echo "CONFIG_SOFTMMU=yes" >> $config_mak |
echo "CONFIG_SOFTMMU=yes" >> $config_mak |
369 |
echo "#define CONFIG_SOFTMMU 1" >> $config_h |
echo "#define CONFIG_SOFTMMU 1" >> $config_h |
370 |
fi |
fi |
371 |
|
if test "$target_user_only" = "yes" ; then |
372 |
|
echo "CONFIG_USER_ONLY=yes" >> $config_mak |
373 |
|
echo "#define CONFIG_USER_ONLY 1" >> $config_h |
374 |
|
fi |
375 |
|
|
376 |
done # for target in $targets |
done # for target in $targets |
377 |
|
|