summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorronan(Eurogiciel) Le Martret <ronan.lemartret@open.eurogiciel.org>2014-07-25 07:07:40 -0700
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>2014-07-25 07:07:40 -0700
commitdf8b486bbe2d8f6f4f1ecab3b548b62a4d3175ff (patch)
treeab529286ff5dd55fdf9af8c0d58707f84d7d6e9f /tools
parentcb88300c5fa8535f08f268570f3cd96beea074a3 (diff)
parentd3ee0bd53a3d9d3fd85e0c6efce935515a2a8c70 (diff)
downloadtizen-df8b486bbe2d8f6f4f1ecab3b548b62a4d3175ff.tar.gz
tizen-df8b486bbe2d8f6f4f1ecab3b548b62a4d3175ff.tar.bz2
tizen-df8b486bbe2d8f6f4f1ecab3b548b62a4d3175ff.zip
Merge changes I7c5c5678,I14f28f35 into tizen
* changes: Update rpm spec file Add support for Tizen IVI repo
Diffstat (limited to 'tools')
-rwxr-xr-xtools/spec2yocto.py20
1 files changed, 19 insertions, 1 deletions
diff --git a/tools/spec2yocto.py b/tools/spec2yocto.py
index 236299320..2dc2faf63 100755
--- a/tools/spec2yocto.py
+++ b/tools/spec2yocto.py
@@ -128,6 +128,12 @@ class Spec2yoctoConfig( object ):
'''
return self.__get_value( projet, "arch", None )
+ def get_project_buildtarget(self, projet):
+ '''
+ return the default buildtarget of the project.
+ '''
+ return self.__get_value( projet, "buildtarget", None )
+
def get_working_dir( self, projet ):
'''
return the working dir of the project.
@@ -2074,6 +2080,17 @@ def get_project_arch( xml ):
return arch_list
+def get_project_buildtarget(xml):
+ aElement = ElementTree.fromstring(xml)
+ buildtarget_list = []
+ for value in aElement:
+ for project in value.getiterator():
+ if project.tag == "buildtargets":
+ for buildtarget in project.getiterator():
+ if buildtarget.tag == "buildtarget":
+ buildtarget_list.append(buildtarget.text)
+
+ return buildtarget_list
def clean_name( raw_name ):
if "_" in raw_name:
@@ -2333,9 +2350,10 @@ class manifestCollection:
xml_str = download_build_xml( meta_manifest_uri )
project_id = get_project_id( xml_str )
list_arch = get_project_arch( xml_str )
+ list_buildtarget = get_project_buildtarget(xml_str)
arch = SPEC2YOCTO_CONFIG.get_project_arch( self.__my_project )
- buildtarget = "x86_64-wayland"
+ buildtarget = SPEC2YOCTO_CONFIG.get_project_buildtarget(self.__my_project)
if ( arch == "i586" ) and ( "ia32" in list_arch ):
arch = "ia32"