]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
busybox: enable 64 bit shell arithmetic (via long long type)
authorAlexander Kanavin <alex.kanavin@gmail.com>
Sun, 17 Sep 2023 09:38:42 +0000 (11:38 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Sep 2023 07:53:05 +0000 (08:53 +0100)
This matters on 32 bit systems where otherwise timestamp manipulation
in shell scripts would overflow after 2038. One of the scripts in
strace test suite exposed the issue.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/busybox/defconfig

index 3d36447c63e458a7ff9269b2eb55729c584eba05..f3d545dc3fbe883865cf4c645319148abb3438c7 100644 (file)
@@ -1190,7 +1190,7 @@ CONFIG_ASH_CMDCMD=y
 # Options common to all shells
 #
 CONFIG_FEATURE_SH_MATH=y
-# CONFIG_FEATURE_SH_MATH_64 is not set
+CONFIG_FEATURE_SH_MATH_64=y
 CONFIG_FEATURE_SH_MATH_BASE=y
 CONFIG_FEATURE_SH_EXTRA_QUIET=y
 # CONFIG_FEATURE_SH_STANDALONE is not set