busybox: Make provisions to disable sha256/sha1 accelaration on x86

busybox 1.36 has an ongoing regression on musl/i386 [1] we see same on
glibc systems too.
therefore avoid the affected code by disabling sha256/sha1 sum accelaration
meanwhile

CONFIG_SHA256_HWACCEL and CONFIG_SHA1_HWACCEL are enabled by default

[1] http://lists.busybox.net/pipermail/busybox/2023-January/090078.html

(From OE-Core rev: 22f639d61127f4b82a79008c5305e44e090a3680)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Andrej Valek <andrej.valek@siemens.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Khem Raj
2023-01-26 13:46:46 -08:00
committed by Richard Purdie
parent 86598c849c
commit d119ac532f
4 changed files with 4 additions and 3 deletions

View File

@@ -1,3 +1,2 @@
CONFIG_SHA1SUM=y
CONFIG_SHA1_SMALL=3
CONFIG_SHA1_HWACCEL=y

View File

@@ -1,2 +1 @@
CONFIG_SHA256SUM=y
CONFIG_SHA256_HWACCEL=y

View File

@@ -0,0 +1,2 @@
# CONFIG_SHA256_HWACCEL is not set
# CONFIG_SHA1_HWACCEL is not set

View File

@@ -51,5 +51,6 @@ SRC_URI = "https://busybox.net/downloads/busybox-${PV}.tar.bz2;name=tarball \
file://0002-nslookup-sanitize-all-printed-strings-with-printable.patch \
"
SRC_URI:append:libc-musl = " file://musl.cfg "
# TODO http://lists.busybox.net/pipermail/busybox/2023-January/090078.html
SRC_URI:append:x86 = " file://sha_accel.cfg"
SRC_URI[tarball.sha256sum] = "542750c8af7cb2630e201780b4f99f3dcceeb06f505b479ec68241c1e6af61a5"