Merge meta-generic and meta-<profile> yaml files 79/25479/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0_ivi accepted/tizen/ivi/20140822.105036 accepted/tizen/ivi/20160218.024726 submit/tizen_common/20140812.150926 submit/tizen_common/20140812.151815 submit/tizen_common/20140812.170532 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_ivi/20140818.000000 submit/tizen_ivi/20140821.112233 submit/tizen_ivi/20140822.112233 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000005 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
authorStephane Desneux <stephane.desneux@open.eurogiciel.org>
Tue, 5 Aug 2014 17:49:45 +0000 (19:49 +0200)
committerStephane Desneux <stephane.desneux@open.eurogiciel.org>
Tue, 5 Aug 2014 17:49:45 +0000 (19:49 +0200)
Copy the source files coming from meta-generic and
the current meta-<profile> to the same input dir
before running kickstarter. Otherwise, the scripts
defined in meta-generic can't be used in the current
profile.

This is the same trick as the one done in package-groups
with patterns.

Change-Id: I4bb93fe852ef590007e3526e5a64a8515f5f6e34
Bug-Tizen: PTREL-807
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
packaging/image-configurations.spec

index afe87bc..47633ae 100644 (file)
@@ -18,10 +18,11 @@ Source1001:         image-configurations.manifest
 
 BuildArch:     noarch
 BuildRequires:  kickstarter >= 0.15
+BuildRequires:  meta-generic
 BuildRequires:  meta-%{_profile}
 
 %description
-Create Configuration files to build Tizen images 
+Create Configuration files to build Tizen images
 
 %prep
 %setup -q
@@ -29,10 +30,19 @@ cp %{SOURCE1001} .
 
 
 %build
-kickstarter -c /usr/share/image-configurations/%_profile/%_profile.yaml \
-    -e /usr/share/image-configurations/%_profile/configs \
-    -r /usr/share/image-configurations/%_profile/%_profile-repos.yaml \
-    -T /usr/share/image-configurations/%_profile/%_profile-targets.yaml \
+
+# merge the configuration files from generic and the current profile
+# in the same input dir to make kickstarter aware of the generic scripts.
+mkdir -p input
+for profile in generic %_profile; do
+       pdir=%{_datadir}/image-configurations/$profile
+       [ -d $pdir ] && cp -a $pdir/* input/
+done
+
+kickstarter -c input/%_profile.yaml \
+    -e input/configs \
+    -r input/%_profile-repos.yaml \
+    -T input/%_profile-targets.yaml \
     -t %{_repository} \
     -i image-configs.xml