From a53864ed4a7814a95fee02f4fde8fc12a4df145a Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Wed, 24 Mar 2021 07:29:11 -0400 Subject: 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 --- tools/configure | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/configure b/tools/configure index c057f90006..4ddd044b71 100755 --- a/tools/configure +++ b/tools/configure @@ -4616,7 +4616,7 @@ if [ "$ARG_RBDIR" != "" ]; then echo "Using alternate rockbox dir: ${rbdir}" fi -cat > autoconf.h < autoconf.h.new < /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" -- cgit v1.2.3