Separate configuration files for each target
authorINSUN PYO <insun.pyo@samsung.com>
Fri, 9 Jul 2021 03:24:14 +0000 (12:24 +0900)
committerINSUN PYO <insun.pyo@samsung.com>
Fri, 9 Jul 2021 04:03:59 +0000 (13:03 +0900)
Change-Id: Iaed004d48d4d0fad16d396ce95b26e37edb66ffb

conf/tizen-modprobe-rpi3.conf [moved from conf/modprobe.conf with 100% similarity]
conf/tizen-modprobe-rpi4.conf [new file with mode: 0644]
conf/tizen-modprobe-tw3.conf [new file with mode: 0644]
conf/tizen-modules-rpi3.conf [moved from conf/logger.conf with 100% similarity]
conf/tizen-modules-rpi4.conf [new file with mode: 0644]
conf/tizen-modules-tw3.conf [new file with mode: 0644]
packaging/linux-tizen-modules.spec

diff --git a/conf/tizen-modprobe-rpi4.conf b/conf/tizen-modprobe-rpi4.conf
new file mode 100644 (file)
index 0000000..b65f476
--- /dev/null
@@ -0,0 +1 @@
+options proc-tsm blacklist=System::TEF
diff --git a/conf/tizen-modprobe-tw3.conf b/conf/tizen-modprobe-tw3.conf
new file mode 100644 (file)
index 0000000..b65f476
--- /dev/null
@@ -0,0 +1 @@
+options proc-tsm blacklist=System::TEF
diff --git a/conf/tizen-modules-rpi4.conf b/conf/tizen-modules-rpi4.conf
new file mode 100644 (file)
index 0000000..7c82fcf
--- /dev/null
@@ -0,0 +1 @@
+logger
diff --git a/conf/tizen-modules-tw3.conf b/conf/tizen-modules-tw3.conf
new file mode 100644 (file)
index 0000000..7c82fcf
--- /dev/null
@@ -0,0 +1 @@
+logger
index e99dc12..2f4355b 100644 (file)
@@ -80,15 +80,23 @@ find -name "*.ko" -exec cp -a --parents {} %{buildroot}/%{KMOD_PATH}/ \;
 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
@@ -107,21 +115,21 @@ RELEASEVERSION=$(basename $(dirname `find /lib/modules -name extra | head -1`))
 %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