kbuild: include config.mk when auto.conf is not older than .config
authorMasahiro Yamada <[email protected]>
Fri, 3 Apr 2015 03:30:25 +0000 (12:30 +0900)
committerTom Rini <[email protected]>
Tue, 7 Apr 2015 12:41:10 +0000 (08:41 -0400)
commitcffcd2861310855130db52c93f7bf4d9b511741d
treeaeae11f5cd65e6c3892de63d0404800a04946da8
parente049b772ae21e6698b65ebb3bc3afc61c8b13f39
kbuild: include config.mk when auto.conf is not older than .config

Since the Kconfig conversion, config.mk has been included only when
include/config/auto.conf is newer than the .config file.

It causes build error if both files have the same time-stamps.
It is actually possible because EXT* file systems have a 1s time-stamp
resolution.

The config.mk should be included when include/config/auto.conf is
*not older* than the .config file.

Signed-off-by: Masahiro Yamada <[email protected]>
Reported-by: Tom Rini <[email protected]>
Reported-by: York Sun <[email protected]>
Reported-by: Stephen Warren <[email protected]>
Reported-by: Matthew Gerlach <[email protected]>
Tested-by: Stephen Warren <[email protected]>
Makefile