mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
tools/configure.sh: Don't distclean if no config was already in place.
This commit is contained in:
+14
-14
@@ -40,7 +40,7 @@ USAGE="
|
|||||||
USAGE: ${0} [-E] [-e] [-l|m|c|u|g|n] [-a <app-dir>] <board-name>:<config-name> [make-opts]
|
USAGE: ${0} [-E] [-e] [-l|m|c|u|g|n] [-a <app-dir>] <board-name>:<config-name> [make-opts]
|
||||||
|
|
||||||
Where:
|
Where:
|
||||||
-E enforces distclean.
|
-E enforces distclean if already configured.
|
||||||
-e performs distclean if configuration changed.
|
-e performs distclean if configuration changed.
|
||||||
-l selects the Linux (l) host environment.
|
-l selects the Linux (l) host environment.
|
||||||
-m selects the macOS (m) host environment.
|
-m selects the macOS (m) host environment.
|
||||||
@@ -171,22 +171,22 @@ if [ ! -r ${src_config} ]; then
|
|||||||
exit 5
|
exit 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "X${enforce_distclean}" = "Xy" ]; then
|
|
||||||
make -C ${TOPDIR} distclean $*
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -r ${dest_config} ]; then
|
if [ -r ${dest_config} ]; then
|
||||||
if cmp -s ${src_config} ${backup_config}; then
|
if [ "X${enforce_distclean}" = "Xy" ]; then
|
||||||
echo "No configuration change."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "X${distclean}" = "Xy" ]; then
|
|
||||||
make -C ${TOPDIR} distclean $*
|
make -C ${TOPDIR} distclean $*
|
||||||
else
|
else
|
||||||
echo "Already configured!"
|
if cmp -s ${src_config} ${backup_config}; then
|
||||||
echo "Do 'make distclean' and try again."
|
echo "No configuration change."
|
||||||
exit 6
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "X${distclean}" = "Xy" ]; then
|
||||||
|
make -C ${TOPDIR} distclean $*
|
||||||
|
else
|
||||||
|
echo "Already configured!"
|
||||||
|
echo "Do 'make distclean' and try again."
|
||||||
|
exit 6
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user