popd
# module load config
-install -D -m 644 conf/logger.conf %{buildroot}/%{KMOD_PATH}/modules-load.d/logger.conf
mkdir -p %{buildroot}/%{KMOD_PATH}/modprobe.d
-install -D conf/modprobe.conf %{buildroot}/%{KMOD_PATH}/modprobe.d/linux-tizen-modules.conf
+install -m 644 conf/tizen-modprobe-rpi3.conf %{buildroot}/%{KMOD_PATH}/modprobe.d
+install -m 644 conf/tizen-modprobe-rpi4.conf %{buildroot}/%{KMOD_PATH}/modprobe.d
+
+mkdir -p %{buildroot}/%{KMOD_PATH}/modules-load.d
+install -m 644 conf/tizen-modules-rpi3.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
+install -m 644 conf/tizen-modules-rpi4.conf %{buildroot}/%{KMOD_PATH}/modules-load.d
%ifarch aarch64
mkdir -p %{buildroot}/aarch64/modules
mv %{buildroot}/%{KMOD_PATH}/4.9.59 %{buildroot}/aarch64/modules/
-cp -r %{buildroot}/%{KMOD_PATH}/modules-load.d %{buildroot}/aarch64/modules/
-cp -r %{buildroot}/%{KMOD_PATH}/modprobe.d %{buildroot}/aarch64/modules/
+
+mkdir -p %{buildroot}/aarch64/modules/modprobe.d
+install -m 644 conf/tizen-modprobe-tw3.conf %{buildroot}/aarch64/modules/modprobe.d
+
+mkdir -p %{buildroot}/aarch64/modules/modules-load.d
+install -m 644 conf/tizen-modules-tw3.conf %{buildroot}/aarch64/modules/modules-load.d
%endif
%clean
%manifest %{name}.manifest
%license COPYING
%{KMOD_PATH}/*rpi3*/extra
-%{KMOD_PATH}/modules-load.d/logger.conf
-%{KMOD_PATH}/modprobe.d/*.conf
+%{KMOD_PATH}/modprobe.d/tizen-modprobe-rpi3.conf
+%{KMOD_PATH}/modules-load.d/tizen-modules-rpi3.conf
%files rpi4
%manifest %{name}.manifest
%license COPYING
%{KMOD_PATH}/*rpi4*/extra
-%{KMOD_PATH}/modules-load.d/logger.conf
-%{KMOD_PATH}/modprobe.d/*.conf
+%{KMOD_PATH}/modprobe.d/tizen-modprobe-rpi4.conf
+%{KMOD_PATH}/modules-load.d/tizen-modules-rpi4.conf
%ifarch aarch64
%files tw3
%manifest %{name}.manifest
%license COPYING
/aarch64/modules/4.9.59/extra
-/aarch64/modules/modules-load.d
-/aarch64/modules/modprobe.d/*.conf
+/aarch64/modules/modprobe.d/tizen-modprobe-tw3.conf
+/aarch64/modules/modules-load.d/tizen-modules-tw3.conf
%endif