Michael Ellerman
e41b93a6be
powerpc/boot: Fix build failures with -j 1
...
In commit 5e9dcb6188
("powerpc/boot: Expose Kconfig symbols to
wrapper") we added a dependency to serial.c on autoconf.h:
$(obj)/serial.c: $(obj)/autoconf.h
This works when building in-tree (ie. with KBUILD_OUTPUT unset)
because the obj tree is the src tree.
But when building with eg. O=build and -j 1 the build fails:
gcc ... -I../arch/powerpc/boot -c -o arch/powerpc/boot/serial.o arch/powerpc/boot/serial.c
gcc: error: arch/powerpc/boot/serial.c: No such file or directory
Why this is only happening with -j 1 is not clear, when building with
-j greater than 1 somehow we decide to look for serial.c in the src
tree (../), eg:
gcc -I../arch/powerpc/boot -c -o arch/powerpc/boot/serial.o ../arch/powerpc/boot/serial.c
Regardless we shouldn't be specifying a dependency on serial.c in the
build tree, we want to add a dependency to the version in $(srctree)
so fix the rule to say that.
Fixes: 5e9dcb6188
("powerpc/boot: Expose Kconfig symbols to wrapper")
Tested-by: Daniel Axtens <dja@axtens.net >
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au >
2018-12-06 16:10:15 +11:00
..
2018-11-02 09:19:35 -07:00
2018-10-13 22:21:25 +11:00
2017-08-31 14:26:06 +10:00
2009-08-31 09:20:55 -04:00
2007-09-19 21:13:16 -05:00
2014-04-28 17:36:00 +10:00
2008-03-26 07:19:16 -05:00
2017-11-02 11:10:55 +01:00
2018-11-27 10:55:11 +11:00
2017-05-30 14:59:51 +10:00
2007-12-11 13:46:14 +11:00
2008-10-15 11:09:59 -06:00
2008-01-23 19:32:47 -06:00
2008-01-27 14:10:36 -06:00
2009-06-15 21:45:32 -05:00
2008-01-23 19:54:36 -06:00
2008-10-17 10:31:19 -04:00
2009-02-11 16:00:09 +11:00
2008-02-28 08:16:27 -06:00
2008-02-28 08:16:27 -06:00
2009-08-31 09:15:51 -04:00
2008-02-28 08:16:27 -06:00
2009-08-31 09:23:22 -04:00
2008-02-07 11:40:19 +11:00
2008-04-17 01:01:40 -05:00
2008-03-26 07:19:16 -05:00
2008-06-11 08:32:49 -04:00
2008-03-26 07:19:16 -05:00
2008-03-26 07:19:16 -05:00
2009-01-20 08:17:21 -05:00
2008-03-26 07:19:17 -05:00
2007-08-22 15:27:28 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-09-28 14:35:14 +10:00
2008-12-21 14:21:17 +11:00
2011-12-09 07:49:27 -05:00
2006-01-15 13:00:08 +11:00
2008-03-26 07:19:16 -05:00
2014-04-28 17:36:04 +10:00
2017-11-02 11:10:55 +01:00
2007-12-11 13:46:14 +11:00
2007-12-23 13:13:14 -06:00
2008-01-23 19:34:43 -06:00
2017-11-02 11:10:55 +01:00
2013-09-25 14:18:44 +10:00
2017-11-02 11:10:55 +01:00
2016-09-28 14:20:44 +10:00
2007-10-03 20:36:35 -05:00
2017-11-02 11:10:55 +01:00
2009-12-12 22:24:26 -07:00
2009-12-12 22:24:26 -07:00
2006-01-14 15:04:06 +11:00
2007-12-11 13:46:14 +11:00
2009-09-20 12:18:14 +02:00
2017-11-02 11:10:55 +01:00
2018-09-19 15:10:06 -07:00
2015-03-16 18:58:30 +11:00
2016-11-24 17:34:01 +11:00
2018-12-06 16:10:15 +11:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-04 00:39:17 +10:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-01-09 17:52:20 -06:00
2016-07-08 20:01:27 -05:00
2017-11-02 11:10:55 +01:00
2014-04-28 17:35:43 +10:00
2017-11-02 11:10:55 +01:00
2014-04-28 17:35:35 +10:00
2014-04-28 17:36:08 +10:00
2016-11-24 17:34:01 +11:00
2018-10-13 22:21:25 +11:00
2018-06-04 00:39:22 +10:00
2015-10-09 08:02:25 +11:00
2015-03-16 18:50:17 +11:00
2017-11-02 11:10:55 +01:00
2017-08-10 23:32:09 +10:00
2009-08-31 09:15:51 -04:00
2016-07-08 20:01:27 -05:00
2007-10-03 20:36:35 -05:00
2017-11-02 11:10:55 +01:00
2016-11-30 23:19:59 +11:00
2008-02-14 22:11:01 +11:00
2016-11-30 23:19:59 +11:00
2017-11-02 11:10:55 +01:00
2005-11-16 13:52:21 +11:00
2008-01-23 19:34:40 -06:00
2008-06-02 14:44:25 -05:00
2017-11-02 11:10:55 +01:00
2007-12-23 13:14:22 -06:00
2017-11-02 11:10:55 +01:00
2018-10-13 22:21:25 +11:00
2007-04-24 22:06:54 +10:00
2014-08-26 09:35:57 +02:00
2016-09-28 14:35:14 +10:00
2016-09-28 14:35:14 +10:00
2018-03-05 20:58:17 -06:00
2017-11-02 11:10:55 +01:00
2007-09-14 01:33:23 +10:00
2017-11-02 11:10:55 +01:00
2018-03-05 20:58:17 -06:00
2008-10-21 15:17:48 +11:00
2017-11-02 11:10:55 +01:00
2016-03-01 19:27:20 +11:00
2007-09-19 21:13:16 -05:00
2016-03-01 19:27:20 +11:00
2007-08-22 15:27:28 +10:00
2016-03-01 19:27:20 +11:00
2008-03-26 07:19:16 -05:00
2017-11-02 11:10:55 +01:00
2007-10-10 09:14:35 -06:00
2009-12-18 15:13:57 +11:00
2009-12-12 22:24:26 -07:00
2017-08-10 23:32:09 +10:00
2017-11-02 11:10:55 +01:00
2008-07-04 00:58:59 -06:00
2009-12-12 22:24:29 -07:00
2009-12-12 22:24:31 -07:00
2018-03-26 02:01:24 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00