Thomas De Schampheleire
dd8a410eaf
core: introduce NORMALIZED_ARCH as non-kernel replacement for KERNEL_ARCH
...
The variable 'KERNEL_ARCH' is actually a normalized version of
'ARCH'/'BR2_ARCH'. For example, 'arcle' and 'arceb' both become 'arc', just
as all powerpc variants become 'powerpc'.
It is presumably called 'KERNEL_ARCH' because the Linux kernel is typically
the first place where support for a new architecture is added, and thus is
the entity that defines the normalized name.
However, the term 'KERNEL_ARCH' can also be interpreted as 'the architecture
used by the kernel', which need not be exactly the same as 'the normalized
name for a certain arch'. In particular, for cases where a 64-bit
architecture is running a 64-bit kernel but 32-bit userspace. Examples
include:
* aarch64 architecture, with aarch64 kernel and 32-bit (ARM) userspace
* x86_64 architecture, with x86_64 kernel and 32-bit (i386) userspace
In such cases, the 'architecture used by the kernel' needs to refer to the
64-bit name (aarch64, x86_64), whereas all userspace applications need to
refer the, potentially normalized, 32-bit name.
This means that there need to be two different variables:
KERNEL_ARCH: the architecture used by the kernel
NORMALIZED_ARCH: the normalized name for the current userspace architecture
At this moment, both will actually have the same content. But a subsequent
patch will add basic support for situations described above, in which
KERNEL_ARCH may become overwritten to the 64-bit architecture, while
NORMALIZED_ARCH needs to remain the same (32-bit) case.
This commit replaces use of KERNEL_ARCH where actually the userspace arch is
needed. Places that use KERNEL_ARCH in combination with building of kernel
modules are not touched.
There may be cases where a package builds both a kernel module as userspace,
in which case it may need to know about both KERNEL_ARCH and
NORMALIZED_ARCH, for the case where they differ. But this is to be fixed on
a per-need basis.
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com >
Reviewed-by: Romain Naour <romain.naour@gmail.com >
[Arnout: Also rename BR2_KERNEL_ARCH to BR2_NORMALIZED_ARCH]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be >
2022-02-08 21:20:23 +01:00
..
2022-02-07 19:23:50 +01:00
2022-01-11 23:39:37 +01:00
2022-01-30 22:55:46 +01:00
2022-01-11 21:33:03 +01:00
2022-02-06 14:44:33 +01:00
2022-01-09 16:01:18 +01:00
2022-02-07 19:21:33 +01:00
2022-01-09 23:45:11 +01:00
2022-01-20 21:35:28 +01:00
2022-02-04 23:05:04 +01:00
2022-01-26 22:21:34 +01:00
2022-01-15 15:20:17 +01:00
2022-02-01 22:58:55 +01:00
2022-02-06 15:10:51 +01:00
2022-02-05 23:41:47 +01:00
2022-01-19 22:24:11 +01:00
2022-01-13 20:37:07 +01:00
2022-02-05 16:09:08 +01:00
2022-02-08 21:20:23 +01:00
2022-01-23 10:11:06 +01:00
2022-02-06 11:40:17 +01:00
2022-01-26 23:06:29 +01:00
2022-02-06 20:29:53 +01:00
2022-01-23 20:49:25 +01:00
2022-01-30 23:43:56 +01:00
2022-01-26 22:22:55 +01:00
2022-02-05 18:26:59 +01:00
2022-01-13 20:40:40 +01:00
2022-02-04 22:55:01 +01:00
2022-01-26 22:24:37 +01:00
2022-01-11 21:06:54 +01:00
2022-01-26 22:28:43 +01:00
2022-01-26 22:28:40 +01:00
2022-02-05 16:32:56 +01:00
2022-02-05 14:59:52 +01:00
2022-01-30 14:53:46 +01:00
2022-01-11 21:51:38 +01:00
2022-01-30 14:53:51 +01:00
2022-02-08 21:20:23 +01:00
2022-02-01 23:14:05 +01:00
2022-02-05 13:55:04 +01:00
2022-01-24 22:06:36 +01:00
2022-02-05 23:30:20 +01:00
2022-01-30 18:06:54 +01:00
2022-01-12 20:43:05 +01:00
2022-01-25 22:10:26 +01:00
2022-01-13 18:47:42 +01:00
2022-02-03 21:56:17 +01:00
2022-02-03 21:44:42 +01:00
2022-02-03 21:44:43 +01:00
2022-01-11 22:22:17 +01:00
2022-02-05 18:21:35 +01:00
2022-02-06 11:55:31 +01:00
2022-01-13 20:41:49 +01:00
2022-01-19 22:46:49 +01:00
2022-02-07 19:18:58 +01:00
2022-01-12 11:36:02 +01:00
2022-01-26 22:29:49 +01:00
2022-02-06 20:29:53 +01:00
2022-02-05 15:55:44 +01:00
2022-01-09 21:53:40 +01:00
2022-01-26 23:32:32 +01:00
2022-01-09 15:59:26 +01:00
2022-01-26 22:18:31 +01:00
2022-01-20 21:35:31 +01:00
2022-02-01 22:23:45 +01:00
2022-01-30 16:00:27 +01:00
2022-01-20 21:54:25 +01:00
2022-01-20 21:54:28 +01:00
2022-01-11 22:15:03 +01:00
2022-02-05 15:01:46 +01:00
2022-01-22 20:57:52 +01:00
2022-01-26 21:32:11 +01:00
2022-01-15 11:19:08 +01:00
2022-02-01 22:58:55 +01:00
2022-01-12 21:18:03 +01:00
2022-02-07 08:31:18 +01:00
2022-01-15 11:13:19 +01:00
2022-02-02 11:21:22 +01:00
2022-02-05 16:14:35 +01:00
2022-02-03 21:44:43 +01:00
2022-01-12 20:43:08 +01:00
2022-01-12 20:43:10 +01:00
2022-02-04 22:54:09 +01:00
2022-02-04 22:54:19 +01:00
2022-02-05 13:55:44 +01:00
2022-02-06 14:37:55 +01:00
2022-01-22 20:58:02 +01:00
2022-01-22 23:35:13 +01:00
2022-02-08 21:20:23 +01:00
2022-02-05 16:31:51 +01:00
2022-01-23 20:49:31 +01:00
2022-02-04 23:04:49 +01:00
2022-01-09 15:59:45 +01:00
2022-02-06 11:26:04 +01:00
2022-01-24 22:03:09 +01:00
2022-01-12 00:27:39 +01:00
2022-02-05 16:13:34 +01:00
2022-02-05 18:23:22 +01:00
2022-01-30 15:50:42 +01:00
2022-02-03 21:44:43 +01:00
2022-02-05 16:30:02 +01:00
2022-01-13 20:40:40 +01:00
2022-01-22 14:35:37 +01:00
2022-02-06 14:53:59 +01:00
2022-01-22 15:33:13 +01:00
2022-02-05 23:34:40 +01:00
2022-01-09 15:57:58 +01:00
2022-02-06 14:53:49 +01:00
2022-02-05 16:13:49 +01:00
2022-01-13 20:40:40 +01:00
2022-01-26 22:06:04 +01:00
2022-02-07 19:19:32 +01:00
2022-02-08 21:20:23 +01:00
2022-01-12 00:29:54 +01:00
2022-01-09 23:45:11 +01:00
2022-02-06 11:27:27 +01:00
2022-01-22 13:18:50 +01:00
2022-02-01 22:23:53 +01:00
2022-02-05 12:42:00 +01:00
2022-01-09 23:34:56 +01:00
2022-01-22 14:38:51 +01:00
2022-01-22 13:20:07 +01:00
2022-02-07 19:22:34 +01:00
2022-01-11 21:36:16 +01:00
2022-01-11 19:28:47 +01:00
2022-02-08 21:20:23 +01:00
2022-02-07 08:30:28 +01:00
2022-02-05 13:51:09 +01:00
2022-01-30 23:40:48 +01:00
2022-02-05 23:59:47 +01:00
2022-02-05 23:45:19 +01:00
2022-02-07 08:35:09 +01:00
2022-01-22 23:34:45 +01:00
2022-01-24 22:06:08 +01:00
2022-01-09 19:31:07 +01:00
2022-01-11 22:01:40 +01:00
2022-02-04 23:24:26 +01:00
2022-02-04 23:24:26 +01:00
2022-02-05 16:11:42 +01:00
2022-01-30 18:19:10 +01:00
2022-01-09 23:45:11 +01:00
2022-01-26 23:33:15 +01:00
2022-02-03 21:44:43 +01:00
2022-02-01 22:23:50 +01:00
2022-02-05 14:58:38 +01:00
2022-01-15 17:09:08 +01:00
2022-01-11 22:03:14 +01:00
2022-01-23 20:49:23 +01:00
2022-02-06 11:24:05 +01:00
2022-02-01 22:53:35 +01:00
2022-02-05 23:34:40 +01:00
2022-01-12 21:16:23 +01:00
2022-02-06 15:55:43 +01:00
2022-01-23 20:49:27 +01:00
2022-01-17 22:34:41 +01:00
2022-02-07 08:32:18 +01:00
2022-02-08 21:20:23 +01:00
2022-01-13 20:42:40 +01:00
2022-01-15 10:21:43 +01:00
2022-02-05 16:28:44 +01:00
2022-02-05 16:14:03 +01:00
2022-01-30 15:56:57 +01:00
2022-01-13 22:12:03 +01:00
2022-02-08 21:20:23 +01:00
2022-01-21 22:23:40 +01:00
2022-01-21 22:23:42 +01:00
2022-01-21 22:23:44 +01:00
2022-01-21 22:23:47 +01:00
2022-01-21 22:23:49 +01:00
2022-01-21 22:23:51 +01:00
2022-01-21 22:23:54 +01:00
2022-01-21 22:23:56 +01:00
2022-02-04 23:24:33 +01:00
2022-02-01 22:23:48 +01:00
2022-02-06 14:33:58 +01:00
2022-01-30 22:58:44 +01:00
2022-01-30 15:56:25 +01:00
2022-01-30 15:18:12 +01:00
2022-01-28 22:19:59 +01:00
2022-02-03 21:44:43 +01:00
2022-02-01 23:12:52 +01:00
2022-02-01 23:17:36 +01:00
2022-02-02 11:18:45 +01:00
2022-01-25 19:23:29 +01:00
2022-01-25 19:30:39 +01:00
2022-02-05 12:44:03 +01:00
2022-02-02 11:10:56 +01:00
2022-01-25 19:20:53 +01:00
2022-01-09 23:45:11 +01:00
2022-01-25 19:23:19 +01:00
2022-02-02 11:17:12 +01:00
2022-02-02 11:17:29 +01:00
2022-01-25 19:23:21 +01:00
2022-02-02 11:17:40 +01:00
2022-01-15 11:22:59 +01:00
2022-01-30 15:28:38 +01:00
2022-02-02 11:17:57 +01:00
2022-02-02 11:18:45 +01:00
2022-02-05 23:34:40 +01:00
2022-01-10 08:17:15 +01:00
2022-02-05 14:59:11 +01:00
2022-02-02 11:19:04 +01:00
2022-01-25 19:23:10 +01:00
2022-01-13 21:41:48 +01:00
2022-01-10 16:40:30 +01:00
2022-01-13 20:43:00 +01:00
2022-01-13 20:43:23 +01:00
2022-01-11 21:48:23 +01:00
2022-01-13 20:43:32 +01:00
2022-01-25 19:23:15 +01:00
2022-01-09 23:45:11 +01:00
2022-01-25 19:20:51 +01:00
2022-02-02 11:19:42 +01:00
2022-01-25 19:23:13 +01:00
2022-02-07 08:31:46 +01:00
2022-01-25 19:17:28 +01:00
2022-01-25 19:23:03 +01:00
2022-01-25 19:30:39 +01:00
2022-01-10 08:17:15 +01:00
2022-01-25 19:29:29 +01:00
2022-01-25 19:20:48 +01:00
2022-01-09 23:45:11 +01:00
2022-01-25 19:23:06 +01:00
2022-01-25 19:23:29 +01:00
2022-01-25 19:30:39 +01:00
2022-01-25 19:20:46 +01:00
2022-01-25 19:29:29 +01:00
2022-02-05 23:46:12 +01:00
2022-01-09 23:45:11 +01:00
2022-02-02 11:20:01 +01:00
2022-01-15 12:08:41 +01:00
2022-01-25 19:20:43 +01:00
2022-02-07 08:32:56 +01:00
2022-01-26 22:56:26 +01:00
2022-01-25 19:26:36 +01:00
2022-01-15 11:23:01 +01:00
2022-02-05 12:44:03 +01:00
2022-02-02 11:20:15 +01:00
2022-02-05 23:34:41 +01:00
2022-01-25 19:26:37 +01:00
2022-02-07 08:32:36 +01:00
2022-01-25 19:26:37 +01:00
2022-01-11 21:44:33 +01:00
2022-02-03 20:27:27 +01:00
2022-02-07 08:37:21 +01:00
2022-01-22 13:15:21 +01:00
2022-01-18 18:27:46 +01:00
2022-01-19 22:12:00 +01:00
2022-01-19 22:12:04 +01:00
2022-02-03 21:44:43 +01:00
2022-01-22 14:21:06 +01:00
2022-02-05 23:30:23 +01:00
2022-01-30 15:17:25 +01:00
2022-01-30 15:17:25 +01:00
2022-02-05 16:31:20 +01:00
2022-02-04 23:15:19 +01:00
2022-01-22 21:00:05 +01:00
2022-02-05 23:34:26 +01:00
2022-02-06 14:30:38 +01:00
2022-01-13 20:40:40 +01:00
2022-01-12 20:38:09 +01:00
2022-01-12 11:36:00 +01:00
2022-01-13 18:58:15 +01:00
2022-02-06 11:21:10 +01:00
2022-01-24 22:16:14 +01:00
2022-01-10 08:17:15 +01:00
2022-01-26 23:05:55 +01:00
2022-01-19 22:45:22 +01:00
2022-01-28 22:22:40 +01:00
2022-01-15 11:23:03 +01:00
2022-02-01 22:58:55 +01:00
2022-02-05 18:24:14 +01:00
2022-01-11 21:06:59 +01:00
2022-01-13 20:37:38 +01:00
2022-01-12 20:43:02 +01:00
2022-01-24 22:05:00 +01:00
2022-02-05 13:52:03 +01:00
2022-01-19 21:28:02 +01:00
2022-02-06 11:20:15 +01:00
2022-01-11 21:06:48 +01:00
2022-02-08 21:20:23 +01:00
2022-02-01 22:53:35 +01:00
2022-01-12 00:25:05 +01:00
2022-02-01 22:58:55 +01:00
2022-02-02 13:53:50 +01:00
2022-02-05 18:28:20 +01:00
2022-01-13 20:40:40 +01:00
2022-01-24 22:03:33 +01:00
2022-01-09 21:29:31 +01:00
2022-01-26 23:09:50 +01:00
2022-01-15 10:19:58 +01:00
2022-01-26 22:44:44 +01:00
2022-02-06 10:25:37 +01:00
2022-01-23 20:49:21 +01:00
2022-01-24 21:58:58 +01:00
2022-01-30 14:43:35 +01:00
2022-01-22 13:16:14 +01:00
2022-02-01 22:58:55 +01:00
2022-01-11 21:06:39 +01:00
2022-01-26 22:17:17 +01:00
2022-02-06 20:22:12 +01:00
2022-01-26 22:24:37 +01:00
2022-01-09 16:03:23 +01:00
2022-01-30 15:55:13 +01:00
2022-01-25 21:47:17 +01:00
2022-01-31 23:36:11 +01:00
2022-02-03 21:37:46 +01:00
2022-02-03 20:27:27 +01:00