summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2020-12-29 13:32:54 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-01-07 09:36:55 +0100
commitf933da28cf3fc6156bba10269745f05c676b2166 (patch)
tree8091bf273421f6120d573f5a35b1806d9f75ed3b /lib/Makefile
parent3124a8eb473273f712c86b0bd370d1d2279fb56b (diff)
downloadbarebox-f933da28cf3fc6156bba10269745f05c676b2166.tar.gz
barebox-f933da28cf3fc6156bba10269745f05c676b2166.tar.xz
include: <linux/math64.h>: sync with upstream
The header implements definitions for the 64-bit division helpers on 64-bit builds only. For 32-bit builds, it can only provide prototypes and the actual implementation will need to come from elsewhere. We didn't have any out-of-line definitions in barebox with the result that functions like div_s64_rem() were so far only usable in 64-bit barebox builds. On 32-bit builds, they would result in a linker error. Import the Linux v5.11-rc1 generic out-of-line 64-bit math on 32-bit implementation to fix this. While at it, synchronize the header to reduce diff to upstream. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index ba6af6f2ab..9c6f4133d7 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -25,6 +25,7 @@ obj-y += cmdlinepart.o
obj-y += recursive_action.o
obj-y += make_directory.o
obj-y += math.o
+obj-y += math/
obj-$(CONFIG_XXHASH) += xxhash.o
obj-$(CONFIG_BZLIB) += decompress_bunzip2.o
obj-$(CONFIG_ZLIB) += decompress_inflate.o zlib_inflate/