mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
d04c8a563c
This patch is another step towards updating the code to handle the 32-bit kernels which I have not been regularly testing. This changes do not really impact the common case I'm expected which is the latest kernel running on an x86_64 arch. Until the linux-2.6.31 kernel the x86 arch did not have support for 64-bit atomic operations. Additionally, the new atomic_compat.h support for this case was wrong because it embedded a spinlock in the atomic variable which must always and only be 64-bits total. To handle these 32-bit issues we now simply fall back to the --enable-atomic-spinlock implementation if the kernel does not provide the 64-bit atomic funcs. The second issue this patch addresses is the DEBUG_KMEM assumption that there will always be atomic64 funcs available. On 32-bit archs this may not be true, and actually that's just fine. In that case the kernel will will never be able to allocate more the 32-bits worth anyway. So just check if atomic64 funcs are available, if they are not it means this is a 32-bit machine and we can safely use atomic_t's instead.
24 lines
827 B
Makefile
24 lines
827 B
Makefile
# All headers are referenced by this top level Makefile.am are
|
|
# noinst_HEADERS because they are not installed in the usual include
|
|
# location. We do not want to be using $includedir for this.
|
|
# Installation is handled by the custom install-data-local rule.
|
|
noinst_HEADERS = *.h
|
|
noinst_HEADERS += fs/*.h
|
|
noinst_HEADERS += linux/*.h
|
|
noinst_HEADERS += rpc/*.h
|
|
noinst_HEADERS += sharefs/*.h
|
|
noinst_HEADERS += sys/fm/*.h
|
|
noinst_HEADERS += sys/fs/*.h
|
|
noinst_HEADERS += sys/sysevent/*.h
|
|
noinst_HEADERS += sys/*.h
|
|
noinst_HEADERS += util/*.h
|
|
noinst_HEADERS += vm/*.h
|
|
|
|
install-data-local:
|
|
destname=spl-$(SPL_META_VERSION)/$(LINUX_VERSION); \
|
|
instdest=$(DESTDIR)/${prefix}/src/$$destname; \
|
|
instfiles=`find . -name '*.h'`; \
|
|
for instfile in $$instfiles; do \
|
|
$(INSTALL) -D $$instfile $$instdest/$$instfile; \
|
|
done
|