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>
BuildArch: noarch
BuildRequires: kickstarter >= 0.15
BuildArch: noarch
BuildRequires: kickstarter >= 0.15
+BuildRequires: meta-generic
BuildRequires: meta-%{_profile}
%description
BuildRequires: meta-%{_profile}
%description
-Create Configuration files to build Tizen images
+Create Configuration files to build Tizen images
-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
-t %{_repository} \
-i image-configs.xml