Detach block, freezer, and swap from resourced-light 35/159535/1
authorKichan Kwon <k_c.kwon@samsung.com>
Thu, 9 Nov 2017 11:40:48 +0000 (20:40 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Thu, 9 Nov 2017 11:43:52 +0000 (20:43 +0900)
Change-Id: I5c29e903a58c5d32c9f6a994388e39e335e0d864
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
packaging/resourced.spec

index 6b1b88d952943e5d87b8730f43ecdf940b12bf74..6e1d3e74452c13ee65ec8a1de4594e89ce47dec2 100644 (file)
@@ -12,12 +12,9 @@ Source0:    %{name}-%{version}.tar.gz
 #       reset them at every end of cmake to reset to default value and
 #       you should not use the variable except inside pushd/popd in build
 #       section.
-%define block_module           ON
 %define cpu_module                     ON
-%define freezer_module         ON
 %define memory_module          ON
 %define mem_stress                     OFF
-%define swap_module                    ON
 %define timer_slack                    OFF
 %define vip_agent_module       ON
 
@@ -25,7 +22,10 @@ Source0:    %{name}-%{version}.tar.gz
 %define debug_log                      OFF
 
 # Default settings changed per profile:
+%define block_module           ON
+%define freezer_module         ON
 %define heart_module           ON
+%define swap_module                    ON
 
 %define exclude_list_file_name resourced_proc_exclude.ini
 %define exclude_list_ro_path /etc/%{exclude_list_file_name}
@@ -65,7 +65,7 @@ Summary:      Resourced light binary
 Provides:   %{name}
 Conflicts:     %{name}
 %description light
-Resourced binary without heart module
+Resourced binary doing minimal features
 
 %package config-tv
 Summary:    Configration for tv profile
@@ -107,7 +107,11 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 # For resourced-without_heart binary
 mkdir -p build_light
 pushd build_light
-%define heart_module OFF
+%define block_module           OFF
+%define freezer_module         OFF
+%define heart_module           OFF
+%define swap_module                    OFF
+
 %cmake .. -DFULLVER=%{version} \
         -DMAJORVER=${MAJORVER} \
         -DARCH=%{ARCH} \
@@ -137,7 +141,11 @@ pushd build_light
 
 make %{?jobs:-j%jobs}
 # Default settings changed per profile:
+%define block_module           ON
+%define freezer_module         ON
 %define heart_module           ON
+%define swap_module                    ON
+
 popd
 
 # For resourced binary
@@ -268,9 +276,6 @@ mv %{_bindir}/resourced %{_bindir}/resourced.light
 %if %{?cpu_module} == ON
        %config %{rd_config_path}/cpu.conf
 %endif
-%if %{?swap_module} == ON
-       %config %{rd_config_path}/swap.conf
-%endif
 %if %{?vip_agent_module} == ON
        %config %{rd_config_path}/vip-process.conf
        %attr(-,root, root) %{_bindir}/vip-release-agent
@@ -278,9 +283,6 @@ mv %{_bindir}/resourced %{_bindir}/resourced.light
 %if %{?timer_slack} == ON
        %config %{rd_config_path}/timer-slack.conf
 %endif
-%if %{?block_module} == ON
-       %config %{rd_config_path}/block.conf
-%endif
 %{exclude_list_ro_path}
 #mem-stress
 %if %{?mem_stress} == ON