From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E2ED8C433F5 for ; Wed, 25 May 2022 07:05:49 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5E0C641BA9; Wed, 25 May 2022 07:05:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FVGxtSCwQ0vK; Wed, 25 May 2022 07:05:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id 0656041BA4; Wed, 25 May 2022 07:05:46 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id EF2A41BF418 for ; Wed, 25 May 2022 07:05:43 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id D7909840F9 for ; Wed, 25 May 2022 07:05:43 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=tkos.co.il Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Kq7fLgEZ8ufR for ; Wed, 25 May 2022 07:05:42 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from mail.tkos.co.il (guitar.tkos.co.il [84.110.109.230]) by smtp1.osuosl.org (Postfix) with ESMTPS id 7FD07840F5 for ; Wed, 25 May 2022 07:05:42 +0000 (UTC) Received: from tarshish (unknown [10.0.8.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.tkos.co.il (Postfix) with ESMTPS id CFB6044047B; Wed, 25 May 2022 10:04:25 +0300 (IDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tkos.co.il; s=default; t=1653462266; bh=+YX3nflv1FacNcftwsB3YiBZA+eef4t2UnH51ZyFFXk=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=CAhUz3HxMjVhjKV1DTL0en/rYJN7ctOkpdyMwFWjuRCoLq/a+nXSxQZqhgD3lDqpF T/9WjpbNS/EAb3NVHly9PzaughR8Nlk8DS/R1PLcfW3yhllHx8m9R9ZO+6sFC+2WsG rAHnE0IdlbMxoDDtfMRyilhZvXQaWovJE6OylM6NiEuL2ZKumcuJJNNr8Gap+w2KwG We+ranWlX//fO6ZhtbiMLZf9GrSpo4eC4RlAZPaGzzWy6Ly8GR3fYaEwA4mFgZPTJI GE8D2hlwoRgZPL+KEYd/m/464hc/RKqKB29dRqVDFlTdWmPeMqlZHnO4anhJ4LQFaE 4a9NxaYKK5m4w== References: <87zgjapr8a.fsf@tarshish> <87r14kq55b.fsf@tarshish> <87ilpwp82x.fsf@tarshish> <87a6b6pwqf.fsf@tarshish> <875ylup27u.fsf@tarshish> User-agent: mu4e 1.6.10; emacs 27.1 To: James Hilliard Date: Wed, 25 May 2022 10:01:06 +0300 In-reply-to: Message-ID: <871qwiozwd.fsf@tarshish> MIME-Version: 1.0 Subject: Re: [Buildroot] How to select python-cryptograhy package X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Baruch Siach via buildroot Reply-To: Baruch Siach Cc: Oscar Gomez Fuente , Thomas Petazzoni , buildroot Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Hi James, On Wed, May 25 2022, James Hilliard wrote: > On Wed, May 25, 2022 at 12:15 AM Baruch Siach wrote: >> On Wed, May 25 2022, Oscar Gomez Fuente wrote: >> >> So now when you lookup BR2_PACKAGE_PYTHON_CRYPTOGRAPHY in menuconfig >> >> search do you still see 'BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS [=n]'? >> > >> > YES >> > >> >> Please send your .config file. >> > >> > OK >> >> I see the problem now. Your target platform is BR2_arm (32 bit), but >> your CPU selection is BR2_ARM_CPU_ARMV8A (64 bit capable). This >> combination is not supported in current >> BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS or >> BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS. This patch should make >> BR2_PACKAGE_PYTHON_CRYPTOGRAPHY selectable, but I'm not sure it's >> correct: >> >> diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host >> index a86d95236d90..64b135f86f27 100644 >> --- a/package/rustc/Config.in.host >> +++ b/package/rustc/Config.in.host >> @@ -42,6 +42,8 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS >> default y if BR2_ARM_CPU_ARMV6 && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC >> # armv7-unknown-linux-gnueabihf >> default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC >> + # armv8-unknown-linux-gnueabihf >> + default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC >> # mips-unknown-linux-gnu >> default y if BR2_mips && BR2_TOOLCHAIN_USES_GLIBC && !BR2_MIPS_CPU_MIPS32R6 >> # mips64-unknown-linux-gnuabi64 >> @@ -86,6 +88,8 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS >> default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABI && BR2_TOOLCHAIN_USES_MUSL >> # armv7-unknown-linux-musleabihf >> default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL >> + # armv8-unknown-linux-musleabihf >> + default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL >> # i586-unknown-linux-gnu >> default y if BR2_i586 && BR2_TOOLCHAIN_USES_GLIBC >> # i586-unknown-linux-musl >> >> Adding James and Thomas to Cc since they showed interest in rustc over >> the last year. >> >> Is that the right solution? > > Probably needs mappings for the toolchain which don't seem to follow the same > scheme as our currently supported architectures, see here: > https://doc.rust-lang.org/rustc/platform-support.html#tier-2 > > For armv8 I see: > thumbv8m.base-none-eabi*ARMv8-M Baseline > thumbv8m.main-none-eabi*ARMv8-M Mainline > thumbv8m.main-none-eabihf*ARMv8-M Mainline, hardfloat > > Although not really sure those will work correctly with musl. The '*' in the table indicates no_std, that is, bare metal. That's most likely not what we want for Buildroot. Can we map BR2_ARM_CPU_ARMV8A to armv7 line the following: diff --git a/package/rustc/Config.in.host b/package/rustc/Config.in.host index a86d95236d90..6aac703b2a4f 100644 --- a/package/rustc/Config.in.host +++ b/package/rustc/Config.in.host @@ -42,6 +42,8 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_HOST_TOOLS_PLATFORMS default y if BR2_ARM_CPU_ARMV6 && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC # armv7-unknown-linux-gnueabihf default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC + # armv8-unknown-linux-gnueabihf + default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_GLIBC # mips-unknown-linux-gnu default y if BR2_mips && BR2_TOOLCHAIN_USES_GLIBC && !BR2_MIPS_CPU_MIPS32R6 # mips64-unknown-linux-gnuabi64 @@ -86,6 +88,8 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_TIER2_PLATFORMS default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABI && BR2_TOOLCHAIN_USES_MUSL # armv7-unknown-linux-musleabihf default y if BR2_ARM_CPU_ARMV7A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL + # armv8-unknown-linux-musleabihf + default y if BR2_arm && BR2_ARM_CPU_ARMV8A && BR2_ARM_EABIHF && BR2_TOOLCHAIN_USES_MUSL # i586-unknown-linux-gnu default y if BR2_i586 && BR2_TOOLCHAIN_USES_GLIBC # i586-unknown-linux-musl @@ -114,7 +118,7 @@ config BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS config BR2_PACKAGE_HOST_RUSTC_ARCH string default "armv5te" if BR2_ARM_CPU_ARMV5 - default "armv7" if BR2_ARM_CPU_ARMV7A + default "armv7" if BR2_ARM_CPU_ARMV7A || (BR2_arm && BR2_ARM_CPU_ARMV8A) default "riscv64gc" if BR2_RISCV_64 default BR2_ARCH baruch -- ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il - _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot