File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,13 @@ BuildRequires: %{_cross_os}kernel-6.1-archive
15
15
%description
16
16
%{summary }.
17
17
18
+ %package devel
19
+ Summary: Files for development using the Neuron drivers
20
+ Requires: %{name }
21
+
22
+ %description devel
23
+ %{summary }.
24
+
18
25
%prep
19
26
rpm2cpio %{SOURCE0 } | cpio -idmv
20
27
tar -xf %{_cross_datadir }/bottlerocket/kernel-devel.tar.xz
@@ -51,9 +58,19 @@ install -p -m 0644 %{S:1} %{buildroot}%{_cross_libdir}/modules-load.d/neuron.con
51
58
install -d %{buildroot }%{_cross_unitdir }/systemd-modules-load.service.d
52
59
install -p -m 0644 %{S:2 } %{buildroot }%{_cross_unitdir }/systemd-modules-load.service.d/neuron.conf
53
60
61
+ # Install the shared header file
62
+ install -d %{buildroot }%{_cross_includedir }/share
63
+ install -p -m 0644 %{_builddir }/%{neuron_sources }/share/neuron_driver_shared.h %{buildroot }/%{_cross_includedir }/share/neuron_driver_shared.h
64
+ install -p -m 0644 %{_builddir }/%{neuron_sources }/neuron_ioctl.h %{buildroot }/%{_cross_includedir }/neuron_ioctl.h
65
+
54
66
%files
55
67
%license %{neuron_sources }/LICENSE
56
68
%{_cross_attribution_file }
57
69
%{_cross_libdir }/modules/* /extra/neuron.ko.gz
58
70
%{_cross_libdir }/modules-load.d/neuron.conf
59
71
%{_cross_unitdir }/systemd-modules-load.service.d/neuron.conf
72
+
73
+ %files devel
74
+ %dir %{_cross_includedir }/share/
75
+ %{_cross_includedir }/share/neuron_driver_shared.h
76
+ %{_cross_includedir }/neuron_ioctl.h
You can’t perform that action at this time.
0 commit comments