]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
busybox: Make provisions to disable sha256/sha1 accelaration on x86
authorKhem Raj <raj.khem@gmail.com>
Thu, 26 Jan 2023 21:46:46 +0000 (13:46 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 31 Jan 2023 17:09:45 +0000 (17:09 +0000)
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

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>
meta/recipes-core/busybox/busybox/sha1sum.cfg
meta/recipes-core/busybox/busybox/sha256sum.cfg
meta/recipes-core/busybox/busybox/sha_accel.cfg [new file with mode: 0644]
meta/recipes-core/busybox/busybox_1.36.0.bb

index 01137a24863e99e2643d7322b4defdb56fdacb87..afd4da4ea135c136f507cef8d04bbbf181ba83c6 100644 (file)
@@ -1,3 +1,2 @@
 CONFIG_SHA1SUM=y
 CONFIG_SHA1_SMALL=3
-CONFIG_SHA1_HWACCEL=y
index a5b0ab22d1d047861c2083f12de79920aeab0582..ce652ae4c61d556310ecfe19b312090380103299 100644 (file)
@@ -1,2 +1 @@
 CONFIG_SHA256SUM=y
-CONFIG_SHA256_HWACCEL=y
diff --git a/meta/recipes-core/busybox/busybox/sha_accel.cfg b/meta/recipes-core/busybox/busybox/sha_accel.cfg
new file mode 100644 (file)
index 0000000..8900305
--- /dev/null
@@ -0,0 +1,2 @@
+# CONFIG_SHA256_HWACCEL is not set
+# CONFIG_SHA1_HWACCEL is not set
index e46d43e68147a9283802df15ea1cdb5907d7fb06..8014a5c7bf027149c66deff0dc97a06021dedb08 100644 (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"