[PATCH 0/2] kbuild: Fix corner caches with .cache.mk

From: Douglas Anderson
Date: Thu Dec 21 2017 - 20:53:55 EST


This two-patches fixes two corner cases with .cache.mk that have been
reported recently. Neither problem was catastrophic, but certainly
several people ran into the problem solved by the first patch (can't
build after gcc upgrade) and wasted time debugging, so it's really a
good idea to fix.

For both patches, please make sure to give them an extra thorough
review. I _think_ I understand enough about $(MAKECMDGOALS), but I'd
never explored that feature of make before writing these patches so
the patches certainly need someone more experienced to give them a
careful look.

I've only got one more day of work before I'm on Christmas vacation
for 2 weeks, so if there are problems with these patches please give
me a bit of time to fix. ...or, if someone is in a hurry, I wouldn't
object to someone else hijacking them and posting fixes.


Douglas Anderson (2):
kbuild: Require a 'make clean' if we detect gcc changed underneath us
kbuild: Don't mess with the .cache.mk when installing

scripts/Kbuild.include | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

--
2.15.1.620.gb9897f4670-goog