Masahiro Yamada
bd55f96fa9
kbuild: refactor cc-cross-prefix implementation
...
- $(word 1, <text>) is equivalent to $(firstword <text>)
- hardcode "gcc" instead of $(CC)
- minimize the shell script part
A little more notes in case $(filter-out -%, ...) is not clear.
arch/mips/Makefile passes prefixes depending on the configuration.
CROSS_COMPILE := $(call cc-cross-prefix, $(tool-archpref)-linux- \
$(tool-archpref)-linux-gnu- $(tool-archpref)-unknown-linux-gnu-)
In the Kconfig stage (e.g. when you run 'make defconfig'), neither
CONFIG_32BIT nor CONFIG_64BIT is defined. So, $(tool-archpref) is
empty. As a result, "-linux -linux-gnu- -unknown-linux-gnu" is passed
into cc-cross-prefix. The command 'which' assumes arguments starting
with a hyphen as command options, then emits the following messages:
Illegal option -l
Illegal option -l
Illegal option -u
I think it is strange to define CROSS_COMPILE depending on the CONFIG
options since you need to feed $(CC) to Kconfig, but it is how MIPS
Makefile currently works. Anyway, it would not hurt to filter-out
invalid strings beforehand.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
2019-02-27 21:41:27 +09:00
..
2018-12-01 23:13:14 +09:00
2019-01-08 07:58:49 -05:00
2018-12-13 11:20:36 -06:00
2019-01-20 14:06:40 -08:00
2019-02-27 21:41:04 +09:00
2018-05-17 22:43:35 +09:00
2019-01-14 10:37:09 +09:00
2017-03-28 16:16:52 +02:00
2019-01-09 10:35:56 +01:00
2019-02-20 09:42:46 +09:00
2018-12-10 03:40:11 -05:00
2018-07-29 11:08:38 +09:00
2018-12-22 00:37:52 +09:00
2018-05-17 22:44:57 +09:00
2018-10-29 00:19:41 +09:00
2018-07-18 01:18:05 +09:00
2018-12-28 12:11:44 -08:00
2017-05-14 11:20:44 +09:00
2018-05-17 17:34:43 +02:00
2018-06-28 13:36:39 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-03 11:49:06 +01:00
2019-01-04 13:13:48 -08:00
2018-12-28 12:11:44 -08:00
2018-12-10 08:26:04 +01:00
2017-11-02 11:10:55 +01:00
2018-08-22 23:21:40 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-14 08:58:56 +09:00
2017-11-02 11:10:55 +01:00
2014-04-30 17:34:32 +02:00
2016-10-11 15:06:30 -07:00
2018-12-28 12:11:44 -08:00
2018-12-28 12:11:44 -08:00
2018-09-09 09:14:07 +09:00
2017-11-02 11:10:55 +01:00
2018-07-02 11:25:00 -06:00
2017-05-14 11:20:44 +09:00
2018-05-04 06:21:06 -04:00
2015-09-25 16:31:45 +01:00
2015-04-15 14:01:12 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-10-17 08:18:01 +02:00
2018-11-18 10:15:09 -08:00
2018-03-26 02:01:24 +09:00
2017-10-23 08:01:37 -06:00
2019-01-06 09:46:51 +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
2018-06-08 18:56:00 +09:00
2018-06-25 23:21:13 +09:00
2018-12-19 23:41:36 +09:00
2018-12-01 23:13:14 +09:00
2017-05-14 11:20:44 +09:00
2018-08-22 10:52:48 -07:00
2012-06-27 12:44:29 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-11-02 11:10:55 +01:00
2016-02-26 15:30:20 +00:00
2019-02-19 22:50:34 +09:00
2019-02-27 21:41:27 +09:00
2018-06-11 09:16:22 +09:00
2018-11-25 12:35:45 -07:00
2017-11-02 11:10:55 +01:00
2018-04-07 08:50:34 +10:00
2017-11-02 11:10:55 +01:00
2019-01-28 09:11:17 +09:00
2019-02-27 21:40:09 +09:00
2019-01-06 09:46:51 +09:00
2019-02-27 21:41:26 +09:00
2018-08-09 21:51:17 +09:00
2017-11-14 18:25:40 -08:00
2018-11-03 10:47:33 -07:00
2018-12-29 12:03:17 -08:00
2019-01-06 09:46:51 +09:00
2019-01-28 09:11:17 +09:00
2018-12-28 12:11:43 -08:00
2018-06-11 09:14:08 +09:00
2019-01-28 09:11:17 +09:00
2018-08-03 00:47:00 +09:00
2018-07-06 22:04:03 +09:00
2019-01-28 09:11:17 +09:00
2018-07-06 22:04:03 +09:00
2018-08-10 20:19:58 -07:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2019-01-28 09:11:17 +09:00
2018-10-04 22:56:02 +09:00
2015-06-23 13:35:47 +09:00
2017-11-02 11:10:55 +01:00
2017-03-13 09:40:28 -07:00
2018-03-26 02:01:19 +09:00
2017-03-11 11:13:38 +09:00
2017-11-17 16:10:01 -08:00
2017-11-02 11:10:55 +01:00
2014-06-10 00:04:06 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-12-08 20:54:08 -05:00
2018-05-29 22:04:12 +09:00
2018-12-08 20:54:08 -05:00
2018-11-21 23:57:33 +09:00
2014-06-10 00:04:06 +02:00
2017-02-10 12:43:47 +11:00
2016-11-14 11:11:51 +11:00
2014-10-14 02:18:23 +02:00
2018-12-28 12:11:44 -08:00
2018-12-14 15:05:45 -08:00
2018-08-23 18:48:43 -07:00
2017-09-08 10:02:55 -06:00
2018-05-04 06:21:06 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-05 08:12:09 -06:00
2018-12-28 12:11:44 -08:00
2018-11-30 14:45:01 -08:00
2018-07-07 17:44:52 +02:00
2017-11-02 11:10:55 +01:00
2014-08-20 16:03:45 +02:00