Revision 91880d96 configure
b/configure | ||
---|---|---|
2074 | 2074 |
for target in $target_list; do |
2075 | 2075 |
target_dir="$target" |
2076 | 2076 |
config_target_mak=$target_dir/config-target.mak |
2077 |
config_target_h=$target_dir/config-target.h |
|
2078 | 2077 |
target_arch2=`echo $target | cut -d '-' -f 1` |
2079 | 2078 |
target_bigendian="no" |
2080 | 2079 |
case "$target_arch2" in |
... | ... | |
2109 | 2108 |
;; |
2110 | 2109 |
esac |
2111 | 2110 |
|
2112 |
#echo "Creating $config_target_mak, $config_target_h and $target_dir/Makefile" |
|
2113 |
|
|
2114 |
test -f $config_target_h && mv $config_target_h ${config_target_h}~ |
|
2115 |
|
|
2116 | 2111 |
mkdir -p $target_dir |
2117 | 2112 |
mkdir -p $target_dir/fpu |
2118 | 2113 |
mkdir -p $target_dir/tcg |
... | ... | |
2457 | 2452 |
echo "LDFLAGS+=$ldflags" >> $config_target_mak |
2458 | 2453 |
echo "QEMU_CFLAGS+=$cflags" >> $config_target_mak |
2459 | 2454 |
|
2460 |
echo "#include \"../config-host.h\"" > $config_target_h |
|
2461 |
|
|
2462 |
/bin/sh $source_path/create_config < $config_target_mak >> $config_target_h |
|
2463 |
|
|
2464 |
if test -f ${config_target_h}~ ; then |
|
2465 |
if cmp -s $config_target_h ${config_target_h}~ ; then |
|
2466 |
mv ${config_target_h}~ $config_target_h |
|
2467 |
else |
|
2468 |
rm ${config_target_h}~ |
|
2469 |
fi |
|
2470 |
fi |
|
2471 |
|
|
2472 | 2455 |
done # for target in $targets |
2473 | 2456 |
|
2474 | 2457 |
# build tree in object directory if source path is different from current one |
Also available in: Unified diff