From b359498a8fd3d0ab8e8b76eac5ef414935ded69e Mon Sep 17 00:00:00 2001 From: Alexander Aksenov Date: Wed, 30 Apr 2014 12:33:04 +0400 Subject: [PATCH] [IMPROVE] Build: spec file for separate modules Change-Id: Ib363f6ec10e1e0c33cf08cd81d6f3829fc3bbfdc Signed-off-by: Alexander Aksenov --- packaging/swap-modules.spec | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/packaging/swap-modules.spec b/packaging/swap-modules.spec index 8588bef..19fb510 100755 --- a/packaging/swap-modules.spec +++ b/packaging/swap-modules.spec @@ -29,13 +29,34 @@ Profiler. Add more words. %install mkdir -p %{buildroot}/opt/swap/sdk -find . -name "*.ko" -exec install -m 777 -t %{buildroot}/opt/swap/sdk {} \; -strip -x -g %{buildroot}/opt/swap/sdk/swap.ko +install -m 666 buffer/swap_buffer.ko -t %{buildroot}/opt/swap/sdk +install -m 666 ksyms/swap_ksyms.ko -t %{buildroot}/opt/swap/sdk +install -m 666 driver/swap_driver.ko -t %{buildroot}/opt/swap/sdk +install -m 666 writer/swap_writer.ko -t %{buildroot}/opt/swap/sdk +install -m 666 kprobe/swap_kprobe.ko -t %{buildroot}/opt/swap/sdk +install -m 666 ks_manager/swap_ks_manager.ko -t %{buildroot}/opt/swap/sdk +install -m 666 uprobe/swap_uprobe.ko -t %{buildroot}/opt/swap/sdk +install -m 666 us_manager/swap_us_manager.ko -t %{buildroot}/opt/swap/sdk +install -m 666 ks_features/swap_ks_features.ko -t %{buildroot}/opt/swap/sdk +install -m 666 sampler/swap_sampler.ko -t %{buildroot}/opt/swap/sdk +install -m 666 energy/swap_energy.ko -t %{buildroot}/opt/swap/sdk +install -m 666 parser/swap_message_parser.ko -t %{buildroot}/opt/swap/sdk install -m 755 start.sh %{buildroot}/opt/swap/sdk install -m 755 stop.sh %{buildroot}/opt/swap/sdk %files %defattr(-,root,root) -/opt/swap/sdk/swap.ko +/opt/swap/sdk/swap_buffer.ko +/opt/swap/sdk/swap_ksyms.ko +/opt/swap/sdk/swap_driver.ko +/opt/swap/sdk/swap_writer.ko +/opt/swap/sdk/swap_kprobe.ko +/opt/swap/sdk/swap_ks_manager.ko +/opt/swap/sdk/swap_uprobe.ko +/opt/swap/sdk/swap_us_manager.ko +/opt/swap/sdk/swap_ks_features.ko +/opt/swap/sdk/swap_sampler.ko +/opt/swap/sdk/swap_energy.ko +/opt/swap/sdk/swap_message_parser.ko /opt/swap/sdk/start.sh /opt/swap/sdk/stop.sh -- 2.7.4