summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2018-02-21 10:53:33 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-02-21 20:03:47 +0100
commit76e439f6c4ca2e17f34d6be888f839299f6df1da (patch)
tree8613ec6f6035606985e2813c0e613805f06a8a42 /lib/Makefile
parent7ecd9ebe70e5421666a0adc77b280d7eec27939a (diff)
downloadbarebox-76e439f6c4ca2e17f34d6be888f839299f6df1da.tar.gz
barebox-76e439f6c4ca2e17f34d6be888f839299f6df1da.tar.xz
lib: add weak clz/ctz functions
This is a copy of the Linux kernel implementation. This adds weak functions for the clz and ctz gcc builtins. Normally GCC will map those builtins to CPU instructions directly, but for CPUs where those are unavailable, we need to provide a fallback implementation. Fixes build of the zlib decompressor on ARMv4 CPUs. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> 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 e5cf32c162..878c2fbe03 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -63,3 +63,4 @@ obj-$(CONFIG_RATP) += ratp.o
obj-y += list_sort.o
obj-y += int_sqrt.o
obj-y += parseopt.o
+obj-y += clz_ctz.o