build: prevent spurious package rebuilds under CONFIG_AUTOREMOVE
authorJo-Philipp Wich <jo@mein.io>
Tue, 22 May 2018 07:18:33 +0000 (09:18 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 22 May 2018 07:27:38 +0000 (09:27 +0200)
When CONFIG_AUTOREMOVE is enabled, the build system touches an additional
".autoremove" stamp file in the cleaned build directory.

Since the autoremove stamp file is touched after the compile process
completed, it ends up being the most recent file of the package build
directory, causing the timestamp.pl check of depends.mk to erroneously
declare the ".built" and ".prepared" stamp files as stale, triggering
a forced clean-build submake process.

Fix the problem by using the ".built" stamp file as modification time
reference when touching the ".autoremove" stamp file.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>

No differences found