build: Don't overwrite autoconf.h unless it has actually changed
This way we only rebuild the world if something relevant changed. Change-Id: Ia7d104cadec185a3227acbf330bb3b359296f0fb
This commit is contained in:
parent
ed99b305a9
commit
a53864ed4a
1 changed files with 7 additions and 1 deletions
8
tools/configure
vendored
8
tools/configure
vendored
|
@ -4616,7 +4616,7 @@ if [ "$ARG_RBDIR" != "" ]; then
|
|||
echo "Using alternate rockbox dir: ${rbdir}"
|
||||
fi
|
||||
|
||||
cat > autoconf.h <<EOF
|
||||
cat > autoconf.h.new <<EOF
|
||||
/* This header was made by configure */
|
||||
#ifndef __BUILD_AUTOCONF_H
|
||||
#define __BUILD_AUTOCONF_H
|
||||
|
@ -4691,6 +4691,12 @@ ${app_lcd_height}
|
|||
#endif /* __BUILD_AUTOCONF_H */
|
||||
EOF
|
||||
|
||||
# Make sure the file is different.
|
||||
if ! diff -q autoconf.h.new autoconf.h > /dev/null 2>&1 ; then
|
||||
mv autoconf.h.new autoconf.h
|
||||
echo "Created autoconf.h"
|
||||
fi
|
||||
|
||||
if test -n "$t_cpu"; then
|
||||
TARGET_INC="-I\$(FIRMDIR)/target/$t_cpu/$t_manufacturer/$t_model"
|
||||
|
||||
|
|
Loading…
Reference in a new issue