Go to file
Thomas Petazzoni f176b6fa37 package/wolfssl: disable assembly when not supported
wolfssl contains some assembly code and its configure.ac script
enables the assembly code depending on the CPU architecture. However,
the detection logic is not sufficient and leads to using the assembly
code in situation where it should not.

Here are two examples:

 - As soon as the architecture is mips64/mips64el, it uses assembly
   code, but that assembly code is not mips64r6 compatible.

 - As soon as the architecture is RISC-V, it uses assembly code, but
   that assembly code uses multiplication instructions, without paying
   attention that the "M" extension may not be available in the RISC-V
   CPU instruction set.

In order to avoid this, we introduce a
BR2_PACKAGE_WOLFSSL_ASM_SUPPORTS hidden boolean to decide when to
enable/disable assembly code. We set an initial value with the
supported CPU architectures, with the exclusion of the problematic
cases described above.

It is pretty likely that this variable will need tuning progressively,
as it is difficult to determine which CPU variants exactly are
supported by the assembly code in wolfssl.

Fixes:

 - MIPS64 case: http://autobuild.buildroot.net/results/43e/43ee1a457cbeb986d958c9a70cac0676377661c0/
 - RISC-V case: http://autobuild.buildroot.net/results/f05/f056ebe7749a69994afba39a9d4967e2774c45ea/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit d8dc5315eb)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-02-28 16:33:30 +01:00
arch arch/arch.mk.xtensa: relax check on overlay file to apply only to internal toolchains 2022-11-15 14:21:42 +01:00
board board/freescale/imx6ulevk/readme.txt: update broken url 2023-01-03 22:23:07 +01:00
boot boot/uboot: remove use of legacy xloader symbol 2023-02-22 17:45:13 +01:00
configs configs/imx8mqevk: update codeaurora URLs to github 2023-01-04 12:19:48 +01:00
docs docs/manual: fixed some spelling mistakes 2022-12-07 14:35:11 +01:00
fs fs/erofs: enable support for reproducible build 2023-01-17 10:26:11 +01:00
linux {linux, linux-headers}: bump 4.{14, 19}.x / 5.{4, 10, 15}.x / 6.1.x series 2023-02-14 17:14:56 +01:00
package package/wolfssl: disable assembly when not supported 2023-02-28 16:33:30 +01:00
support support/dependencies/dependencies.sh: silence gcc plugin test 2023-02-28 16:28:26 +01:00
system system: remove use of legacy md5 option 2023-02-22 17:45:46 +01:00
toolchain toolchain/toolchain-buildroot: add comment about using virtual package infra 2023-02-22 17:44:48 +01:00
utils utils/test-pkg: proper output on host without jq installed 2023-02-24 08:35:36 +01:00
.clang-format .clang-format: initial import from Linux 5.15.6 2022-01-01 15:01:13 +01:00
.defconfig arch: remove support for sh64 2016-09-08 22:15:15 +02:00
.flake8 Revert ".flake8: fix check for 80/132 columns" 2021-01-02 17:38:20 +01:00
.gitignore
.gitlab-ci.yml utils/checkpackagelib/lib_sysv: run shellcheck 2022-02-06 18:27:03 +01:00
.shellcheckrc utils/check-package: improve shellcheck reproducibility 2022-08-18 07:59:26 +02:00
CHANGES *: fix typo for separate(d|) in text 2023-02-22 16:54:57 +01:00
Config.in Config.in: update default CPAN mirror to https, update mirrors URL 2022-12-21 20:41:57 +01:00
Config.in.legacy package/sunxi-mali-utgard: properly handle legacy for renamed options 2023-02-22 17:50:12 +01:00
COPYING
DEVELOPERS DEVELOPERS: Remove openal from my list 2023-02-14 18:06:56 +01:00
Makefile Makefile: fix build when $(O) ends in _defconfig 2023-02-22 17:31:06 +01:00
Makefile.legacy Remove BR2_DEPRECATED 2016-10-15 23:14:45 +02:00
README docs: move the IRC channel away from Freenode 2021-05-29 22:16:23 +02:00

Buildroot is a simple, efficient and easy-to-use tool to generate embedded
Linux systems through cross-compilation.

The documentation can be found in docs/manual. You can generate a text
document with 'make manual-text' and read output/docs/manual/manual.text.
Online documentation can be found at http://buildroot.org/docs.html

To build and use the buildroot stuff, do the following:

1) run 'make menuconfig'
2) select the target architecture and the packages you wish to compile
3) run 'make'
4) wait while it compiles
5) find the kernel, bootloader, root filesystem, etc. in output/images

You do not need to be root to build or run buildroot.  Have fun!

Buildroot comes with a basic configuration for a number of boards. Run
'make list-defconfigs' to view the list of provided configurations.

Please feed suggestions, bug reports, insults, and bribes back to the
buildroot mailing list: buildroot@buildroot.org
You can also find us on #buildroot on OFTC IRC.

If you would like to contribute patches, please read
https://buildroot.org/manual.html#submitting-patches