Makefile: fix make <blah>_defconfig
authorPeter Korsgaard <jacmet@sunsite.dk>
Mon, 21 Jun 2010 20:13:20 +0000 (22:13 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 21 Jun 2010 20:16:34 +0000 (22:16 +0200)
commit2691d80803c96e32d923b0a20708b2dcb9aac20a
treef57c71c241667b04de52fd3cabf63d54f1b92439
parentb8cca06b5089821ee8fb7087d1f88e5e2c74edf8
Makefile: fix make <blah>_defconfig

Make sure we only pass O=<path> if we were originally called like that,
otherwise we might end up looking for the .config in the wrong place.

Likewise, when changing between using O= or not (or simply running
make <blah>_defconfig in a pristine source tree), we do end up having
a .config, but no .config.cmd. It isn't really critical so just continue
even if we couldn't read it.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Makefile