Rasmus Villemoes
b4f73886c4
linux/kconfig.h: simplify logic for choosing CONFIG_{SPL_, TPL_, }*
...
Instead of using the arg1_or_junk trick to pick between two choices,
with a bit of duplication between the branches (and most of the
CONFIG_TPL_BUILD case being redundant, as _IS_TPL is known to be
defined to 1 in that case), simply define a prefix that we inject
between CONFIG_ and the given config symbol.
This only requires one level of indirection (to get the
_CONFIG_PREFIX macro expanded before the token concatenation takes
place), and makes it easy to, say, introduce a CONFIG_HOSTTOOL_
prefix. [I would expect most HOSTTOOL_ symbols to just be def_bool y,
but it would allow us to clean up some of the ifdef HOSTCC mess in the
sources shared between U-Boot and host tools.]
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk >
Reviewed-by: Simon Glass <sjg@chromium.org >
Signed-off-by: Simon Glass <sjg@chromium.org >
2020-07-09 12:33:24 +08:00
..
2020-05-18 21:19:23 -04:00
2020-06-25 13:24:12 -04:00
2020-05-18 18:36:55 -04:00
2020-07-07 23:05:57 -04:00
2020-05-04 12:26:11 +02:00
2020-07-09 12:33:24 +08:00
2020-07-01 15:01:22 +08:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-07-01 15:01:21 +08:00
2020-07-09 12:33:24 +08:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-07-01 15:01:21 +08:00
2020-07-08 17:21:46 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 17:33:33 -04:00
2020-05-11 10:16:49 +05:30
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 17:33:33 -04:00
2020-05-27 14:40:09 +08:00
2020-05-09 09:30:28 +02:00
2020-05-11 01:30:49 +05:30
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:23 -04:00
2020-07-08 17:21:46 -04:00
2020-05-18 21:19:23 -04:00
2020-07-09 12:33:24 +08:00
2020-05-18 18:36:55 -04:00
2020-07-08 17:21:46 -04:00
2020-05-25 11:54:53 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-29 18:13:19 +08:00
2020-05-18 21:19:23 -04:00
2020-05-07 09:01:42 -04:00
2020-05-21 10:00:17 +02:00
2020-07-03 18:03:56 +02:00
2020-05-09 09:30:28 +02:00
2020-05-21 10:00:17 +02:00
2020-05-18 21:19:23 -04:00
2020-06-26 10:29:26 -04:00
2020-05-10 13:24:48 +02:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 17:33:33 -04:00
2020-05-20 13:20:19 +02:00
2020-05-18 14:53:28 -04:00
2020-05-18 17:33:33 -04:00
2020-07-07 15:36:59 -04:00
2020-05-18 18:36:55 -04:00
2020-06-24 14:05:30 +08:00
2020-06-15 09:45:22 +08:00
2020-05-18 17:33:33 -04:00
2020-05-04 09:12:37 +05:30
2020-05-18 18:36:55 -04:00
2020-05-14 09:02:12 +02:00
2020-05-11 01:30:49 +05:30
2020-05-18 17:33:33 -04:00
2020-06-12 13:14:07 -04:00
2020-05-18 21:19:18 -04:00
2020-07-07 15:37:13 -04:00
2020-06-25 13:24:12 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-07 09:01:42 -04:00
2020-06-28 01:24:35 +02:00
2020-05-17 21:59:53 +02:00
2020-05-18 21:19:23 -04:00
2020-05-19 14:01:47 -04:00
2020-05-10 20:55:20 +02:00
2020-07-08 17:21:46 -04:00
2020-06-12 13:17:23 -04:00
2020-05-18 17:33:33 -04:00
2020-05-18 21:19:23 -04:00
2020-05-15 13:53:50 -04:00
2020-06-12 13:17:23 -04:00
2020-06-14 21:07:20 +02:00
2020-05-18 21:19:23 -04:00
2020-05-18 17:33:33 -04:00
2020-06-14 21:07:20 +02:00
2020-05-18 17:33:33 -04:00
2020-05-18 17:33:31 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 18:36:55 -04:00
2020-05-15 14:47:35 -04:00
2020-06-29 13:34:43 -04:00
2020-06-29 13:34:43 -04:00
2020-07-08 17:21:46 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:23 -04:00
2020-07-08 15:38:32 -04:00
2020-05-18 17:33:33 -04:00
2020-05-15 13:53:50 -04:00
2020-07-09 12:33:24 +08:00
2020-07-09 12:33:24 +08:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:23 -04:00
2020-06-23 14:43:23 -04:00
2020-05-18 21:19:23 -04:00
2020-06-24 13:07:57 +02:00