Message ID | 20231202000942.3162961-1-raj.khem@gmail.com |
---|---|
State | Accepted, archived |
Commit | 02d6c89ca2e72e95d093282f5626e607060da588 |
Headers | show |
Series | [v2] rust-common.bbclass: Define rust arch for x32 platforms | expand |
Thanks for this one, I hope we can finally get that vte update in :) Alex On Sat, 2 Dec 2023 at 01:09, Khem Raj <raj.khem@gmail.com> wrote: > > Signed-off-by: Khem Raj <raj.khem@gmail.com> > --- > v2: Change 'if' to 'elif' to make it part of if else block > > meta/classes-recipe/rust-common.bbclass | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/meta/classes-recipe/rust-common.bbclass b/meta/classes-recipe/rust-common.bbclass > index 3d73a370ec8..ae96d9c5b1f 100644 > --- a/meta/classes-recipe/rust-common.bbclass > +++ b/meta/classes-recipe/rust-common.bbclass > @@ -63,6 +63,8 @@ def rust_base_triple(d, thing): > # This catches ARM targets and appends the necessary hard float bits > if os == "linux-gnueabi" or os == "linux-musleabi": > libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d) > + elif os == "linux-gnux32" or os == "linux-muslx32": > + libc = "" > elif "musl" in os: > libc = "-musl" > os = "linux" > -- > 2.43.0 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#191696): https://lists.openembedded.org/g/openembedded-core/message/191696 > Mute This Topic: https://lists.openembedded.org/mt/102928304/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- >
diff --git a/meta/classes-recipe/rust-common.bbclass b/meta/classes-recipe/rust-common.bbclass index 3d73a370ec8..ae96d9c5b1f 100644 --- a/meta/classes-recipe/rust-common.bbclass +++ b/meta/classes-recipe/rust-common.bbclass @@ -63,6 +63,8 @@ def rust_base_triple(d, thing): # This catches ARM targets and appends the necessary hard float bits if os == "linux-gnueabi" or os == "linux-musleabi": libc = bb.utils.contains('TUNE_FEATURES', 'callconvention-hard', 'hf', '', d) + elif os == "linux-gnux32" or os == "linux-muslx32": + libc = "" elif "musl" in os: libc = "-musl" os = "linux"
Signed-off-by: Khem Raj <raj.khem@gmail.com> --- v2: Change 'if' to 'elif' to make it part of if else block meta/classes-recipe/rust-common.bbclass | 2 ++ 1 file changed, 2 insertions(+)