Propagate KERNEL_* to *.spec
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Authored-by: Damian Szuberski <szuberskidamian@gmail.com> Signed-off-by: Peter Levine <plevine457@gmail.com> Closes #13046
This commit is contained in:
parent
b66140c6ad
commit
4eea717c4f
|
@ -371,6 +371,9 @@ AC_DEFUN([ZFS_AC_RPM], [
|
||||||
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "kernels $(LINUX_VERSION)"'
|
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "kernels $(LINUX_VERSION)"'
|
||||||
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "ksrc $(LINUX)"'
|
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "ksrc $(LINUX)"'
|
||||||
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "kobj $(LINUX_OBJ)"'
|
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "kobj $(LINUX_OBJ)"'
|
||||||
|
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "kernel_cc KERNEL_CC=$(KERNEL_CC)"'
|
||||||
|
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "kernel_ld KERNEL_LD=$(KERNEL_LD)"'
|
||||||
|
RPM_DEFINE_KMOD=${RPM_DEFINE_KMOD}' --define "kernel_llvm KERNEL_LLVM=$(KERNEL_LLVM)"'
|
||||||
])
|
])
|
||||||
|
|
||||||
RPM_DEFINE_DKMS=''
|
RPM_DEFINE_DKMS=''
|
||||||
|
|
|
@ -140,7 +140,10 @@ for kernel_version in %{?kernel_versions}; do
|
||||||
--with-linux=%{ksrc} \
|
--with-linux=%{ksrc} \
|
||||||
--with-linux-obj=%{kobj} \
|
--with-linux-obj=%{kobj} \
|
||||||
%{debug} \
|
%{debug} \
|
||||||
%{debuginfo}
|
%{debuginfo} \
|
||||||
|
%{?kernel_cc} \
|
||||||
|
%{?kernel_ld} \
|
||||||
|
%{?kernel_llvm}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
|
|
@ -69,7 +69,10 @@ fi
|
||||||
--with-linux=%{ksrc} \
|
--with-linux=%{ksrc} \
|
||||||
--with-linux-obj=%{kobj} \
|
--with-linux-obj=%{kobj} \
|
||||||
%{debug} \
|
%{debug} \
|
||||||
%{debuginfo}
|
%{debuginfo} \
|
||||||
|
%{?kernel_cc} \
|
||||||
|
%{?kernel_ld} \
|
||||||
|
%{?kernel_llvm}
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
Loading…
Reference in New Issue