summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--proto-meta-Tizen_generic/spec2yoctorc4
-rwxr-xr-xtools/spec2yocto.py8
2 files changed, 7 insertions, 5 deletions
diff --git a/proto-meta-Tizen_generic/spec2yoctorc b/proto-meta-Tizen_generic/spec2yoctorc
index 2c60cf24d..6028d1c3e 100644
--- a/proto-meta-Tizen_generic/spec2yoctorc
+++ b/proto-meta-Tizen_generic/spec2yoctorc
@@ -29,12 +29,12 @@ priority=1
buildtarget=atom
[tizen_common_fix]
-uri=proto-meta-Tizen_generic/manifest_fix.xml
+uri=${YOCTO_WORKDIR}/tizen/proto-meta-Tizen_generic/manifest_fix.xml
default_git_src=review.tizen.org
priority=2
[whitelist_tizen_common]
-uri=proto-meta-Tizen_generic/recipes_path.txt
+uri=${YOCTO_WORKDIR}/tizen/proto-meta-Tizen_generic/recipes_path.txt
[substitute]
pkgconfig(zlib)=zlib-devel
diff --git a/tools/spec2yocto.py b/tools/spec2yocto.py
index c52927e4d..90ff2b064 100755
--- a/tools/spec2yocto.py
+++ b/tools/spec2yocto.py
@@ -181,7 +181,7 @@ class Spec2yoctoConfig( object ):
packages_dico={}
whitelist_list=self.__get_list(project,"whitelist", None)
for whitelist_v in whitelist_list:
- whitelist_uri = self.__get_value(whitelist_v,"uri", None )
+ whitelist_uri = os.path.expanduser(os.path.expandvars(self.__get_value(whitelist_v,"uri", None )))
if whitelist_uri.startswith( "http" ):
whitelist_file=download_url( whitelist_uri )
@@ -2437,13 +2437,15 @@ class manifestCollection:
with open( meta_manifest_path, "w" ) as manifest_xml_file:
manifest_xml_file.write( manifest_xml )
else:
- if not os.path.isfile( meta_manifest_uri ):
+ filename = os.path.expanduser(os.path.expandvars(meta_manifest_uri))
+
+ if not os.path.isfile( filename ):
msg = "In the project \"%s\" the manifest \"%s\" is not a valid file."
msg = msg % ( self.__my_project, meta_manifest_uri )
print >> sys.stderr, colorize( msg, "red" )
sys.exit( 1 )
else:
- meta_manifest_path = meta_manifest_uri
+ meta_manifest_path = filename
self.__my_manifest_file_list[ meta_manifest ] = meta_manifest_path