]> granicus.if.org Git - spl/commitdiff
Change spl-kmod-devel install path
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 20 Feb 2013 21:58:05 +0000 (13:58 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 14 Mar 2013 19:01:05 +0000 (12:01 -0700)
Install the common spl kernel development headers under
/usr/src/spl-<version>/ rather than in a kernel specific
directory.  The kernel specific build products such as
spl_config.h and Modules.symvers are left installed under
/usr/src/spl-<version>/<kernel>.

This was done to be consistent with where dkms expects
kernel module source to be packaged.  It also allows for
a common spl-kmod-devel package which includes the headers,
and per-kernel spl-kmod-devel-<kernel> packages.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
12 files changed:
Makefile.am
include/Makefile.am
include/fs/Makefile.am
include/linux/Makefile.am
include/rpc/Makefile.am
include/sharefs/Makefile.am
include/sys/Makefile.am
include/sys/fm/Makefile.am
include/sys/fs/Makefile.am
include/sys/sysevent/Makefile.am
include/util/Makefile.am
include/vm/Makefile.am

index 4d8ab0e33431e75fa7e43d6bdf0bccad73b88a92..0bb3e46f2ed29d6bcc8dc783f018c47d060b919d 100644 (file)
@@ -8,13 +8,18 @@ SUBDIRS += lib cmd scripts
 endif
 if CONFIG_KERNEL
 SUBDIRS += module
+
+extradir = /usr/src/spl-$(VERSION)
+extra_HEADERS = spl.release.in spl_config.h.in
+
+kerneldir = /usr/src/spl-$(VERSION)/$(LINUX_VERSION)
+nodist_kernel_HEADERS = spl.release spl_config.h module/$(LINUX_SYMBOLS)
 endif
 
 AUTOMAKE_OPTIONS = foreign
 EXTRA_DIST  = autogen.sh spl.spec.in spl-modules.spec.in META DISCLAIMER
 EXTRA_DIST += config/config.awk config/rpm.am config/deb.am config/tgz.am
 EXTRA_DIST += dkms.postinst copy-builtin
-noinst_HEADERS = spl_config.h spl.release
 
 distclean-local::
        -$(RM) -R autom4te*.cache
@@ -28,15 +33,6 @@ distclean-local::
                -o -name '*.order' -o -name '*.markers' \) \
                -type f -print | xargs $(RM)
 
-if CONFIG_KERNEL
-install-data-local:
-       release=$(SPL_META_VERSION)-$(SPL_META_RELEASE); \
-       instdest=$(DESTDIR)/usr/src/spl-$$release/$(LINUX_VERSION); \
-       for instfile in $(noinst_HEADERS) module/$(LINUX_SYMBOLS); do \
-               $(INSTALL) -m 644 -D $$instfile $$instdest/$$instfile; \
-       done
-endif
-
 ctags:
        $(RM) $(top_srcdir)/tags
        find $(top_srcdir) -name .git -prune -o -name '*.[hc]' | xargs ctags
index 952c4a267232e56dd6c326881c847f9ea10e50dc..463bea1d1f9d8ab3e9cf2430c754a6de45ea91ff 100644 (file)
@@ -16,6 +16,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)
+kerneldir = /usr/src/spl-$(VERSION)/include
 kernel_HEADERS = $(KERNEL_H)
 endif
index 2a3673712361087bff9a432831207c493380a837..530172ddc85043bcfbcc488459052323d1a4f3a8 100644 (file)
@@ -8,6 +8,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/fs
+kerneldir = /usr/src/spl-$(VERSION)/include/fs
 kernel_HEADERS = $(KERNEL_H)
 endif
index cf1f62ad16f45f34c9e531e0e773b8a514dd017b..730f7695bbef01cf05ae63100d3483d84021e2ec 100644 (file)
@@ -23,6 +23,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/linux
+kerneldir = /usr/src/spl-$(VERSION)/include/linux
 kernel_HEADERS = $(KERNEL_H)
 endif
index cb68f4501866e12e1d837ec16e40ae037a26c631..2f8aa29ddea55911a8efaaedd463551867beee6f 100644 (file)
@@ -9,6 +9,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/rpc
+kerneldir = /usr/src/spl-$(VERSION)/include/rpc
 kernel_HEADERS = $(KERNEL_H)
 endif
index b343c75b74ec2716391e4e3d78f7a262b6c6ddbb..d6175a5022fbe58171a5cf78433052144b2be6cb 100644 (file)
@@ -8,6 +8,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/sharefs
+kerneldir = /usr/src/spl-$(VERSION)/include/sharefs
 kernel_HEADERS = $(KERNEL_H)
 endif
index 37e958229052b7b57dfb571227be4e3466aafe7a..0e86a2894dd63218fd2bf611bdcfd4fe7551ba94 100644 (file)
@@ -104,7 +104,7 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/sys
+kerneldir = /usr/src/spl-$(VERSION)/include/sys
 kernel_HEADERS = $(KERNEL_H)
 endif
 
index a073d2a3b32ea89773d90db725df5a5a12dcbf81..1c9cf8416948ccf54bc334fce3a19c3442fca374 100644 (file)
@@ -9,6 +9,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/sys/fm
+kerneldir = /usr/src/spl-$(VERSION)/include/sys/fm
 kernel_HEADERS = $(KERNEL_H)
 endif
index 3805a5ed3dd763e81afd302042a8515872b29d36..27ae109884ec66e144889647b8843e0004f1ecab 100644 (file)
@@ -8,6 +8,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/sys/fs
+kerneldir = /usr/src/spl-$(VERSION)/include/sys/fs
 kernel_HEADERS = $(KERNEL_H)
 endif
index d2247d747757009010a22000ac12b2b5a2701a5c..bf395eb2d365d0e9847a26c970ab112540cdb894 100644 (file)
@@ -8,6 +8,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/sys/sysevent
+kerneldir = /usr/src/spl-$(VERSION)/include/sys/sysevent
 kernel_HEADERS = $(KERNEL_H)
 endif
index 61fdff0bcf9ff6ff8055f90062a300fb140df67c..5ac96e8cc7c508db03e4d8bbc33a843085779310 100644 (file)
@@ -9,6 +9,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/util
+kerneldir = /usr/src/spl-$(VERSION)/include/util
 kernel_HEADERS = $(KERNEL_H)
 endif
index 9b09929db6a7817a16cc1149626676b5ea5c6306..413a6e325b47c696a4fca46786ea0b71540a3328 100644 (file)
@@ -10,6 +10,6 @@ USER_H =
 EXTRA_DIST = $(COMMON_H) $(KERNEL_H) $(USER_H)
 
 if CONFIG_KERNEL
-kerneldir = /usr/src/spl-$(SPL_META_VERSION)-$(SPL_META_RELEASE)/$(LINUX_VERSION)/vm
+kerneldir = /usr/src/spl-$(VERSION)/include/vm
 kernel_HEADERS = $(KERNEL_H)
 endif