diff options
author | Sundeep KOKKONDA <sundeep.kokkonda@gmail.com> | 2022-04-04 21:58:42 +0530 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-05 10:49:36 +0100 |
commit | e4c16d11128f0e9cc2567fc9e3579e9a94988b2e (patch) | |
tree | 7130adcbb8acde47f036aba1f8183b71f1264ab7 | |
parent | fd22b5e48862adfa8f8a5df67a2fafe032f8cdd2 (diff) | |
download | poky-e4c16d11128f0e9cc2567fc9e3579e9a94988b2e.tar.gz |
meta: rust: Bug fix for target definitions returning 'NoneType'
The build shows below error while building for arm machines.
Exception: TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'
Detailed error info : https://lists.openembedded.org/g/openembedded-core/message/164004
All the target definitions within tspec dictionary are generted as
NoneType. The changes will fix this issue.
(From OE-Core rev: ef49f89c89889466ee3696ab680f8e10c961a677)
Signed-off-by: Sundeep KOKKONDA <sundeep.kokkonda@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-devtools/rust/rust-common.inc | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/meta/recipes-devtools/rust/rust-common.inc b/meta/recipes-devtools/rust/rust-common.inc index 310aecef22..130ab600db 100644 --- a/meta/recipes-devtools/rust/rust-common.inc +++ b/meta/recipes-devtools/rust/rust-common.inc | |||
@@ -119,22 +119,22 @@ def llvm_features(d): | |||
119 | 119 | ||
120 | 120 | ||
121 | ## arm-unknown-linux-gnueabihf | 121 | ## arm-unknown-linux-gnueabihf |
122 | DATA_LAYOUT[arm-eabi] = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" | 122 | DATA_LAYOUT[arm] = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" |
123 | LLVM_TARGET[arm-eabi] = "${RUST_TARGET_SYS}" | 123 | LLVM_TARGET[arm] = "${RUST_TARGET_SYS}" |
124 | TARGET_ENDIAN[arm-eabi] = "little" | 124 | TARGET_ENDIAN[arm] = "little" |
125 | TARGET_POINTER_WIDTH[arm-eabi] = "32" | 125 | TARGET_POINTER_WIDTH[arm] = "32" |
126 | TARGET_C_INT_WIDTH[arm-eabi] = "32" | 126 | TARGET_C_INT_WIDTH[arm] = "32" |
127 | MAX_ATOMIC_WIDTH[arm-eabi] = "64" | 127 | MAX_ATOMIC_WIDTH[arm] = "64" |
128 | FEATURES[arm-eabi] = "+v6,+vfp2" | 128 | FEATURES[arm] = "+v6,+vfp2" |
129 | 129 | ||
130 | ## armv7-unknown-linux-gnueabihf | 130 | ## armv7-unknown-linux-gnueabihf |
131 | DATA_LAYOUT[armv7-eabi] = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" | 131 | DATA_LAYOUT[armv7] = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" |
132 | LLVM_TARGET[armv7-eabi] = "${RUST_TARGET_SYS}" | 132 | LLVM_TARGET[armv7] = "${RUST_TARGET_SYS}" |
133 | TARGET_ENDIAN[armv7-eabi] = "little" | 133 | TARGET_ENDIAN[armv7] = "little" |
134 | TARGET_POINTER_WIDTH[armv7-eabi] = "32" | 134 | TARGET_POINTER_WIDTH[armv7] = "32" |
135 | TARGET_C_INT_WIDTH[armv7-eabi] = "32" | 135 | TARGET_C_INT_WIDTH[armv7] = "32" |
136 | MAX_ATOMIC_WIDTH[armv7-eabi] = "64" | 136 | MAX_ATOMIC_WIDTH[armv7] = "64" |
137 | FEATURES[armv7-eabi] = "+v7,+vfp2,+thumb2" | 137 | FEATURES[armv7] = "+v7,+vfp2,+thumb2" |
138 | 138 | ||
139 | ## aarch64-unknown-linux-{gnu, musl} | 139 | ## aarch64-unknown-linux-{gnu, musl} |
140 | DATA_LAYOUT[aarch64] = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" | 140 | DATA_LAYOUT[aarch64] = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" |