sanitized_profile_name = re.sub("[^a-zA-Z0-9:._-]", "_", profile.name)
build_root = build_root % {'tmpdir': TMPDIR,
'profile': sanitized_profile_name}
+ if profile.exclude_packages:
+ log.info('the following packages have been excluded build from gbs '
+ 'config:\n %s' % '\n '.join(profile.exclude_packages))
+ if args.exclude:
+ args.exclude += ',' + ','.join(profile.exclude_packages)
+ else:
+ args.exclude = ','.join(profile.exclude_packages)
os.environ['TIZEN_BUILD_ROOT'] = os.path.abspath(build_root)
# get virtual env from system env first
#Comma separated list of repositories
repos = repo.tizen_latest
#repos = repo.tizen_main, repo.tizen_base
+#Build config for gbs build
+#buildconf = <patch/to/build-config-file>
+#Comma separated list of additional packages be excluded building
+#exclude_packages = libtool,gettext
+
[obs.tizen]
#OBS API URL pointing to a remote OBS.
self.obs = None
self.buildroot = None
self.buildconf = None
+ self.exclude_packages = []
def add_repo(self, repoconf):
'''add a repo to repo list of the profile'''
profile.buildconf = os.path.expanduser(self._interpolate(
self.get_optional_item(name,
'buildconf')))
+ if self.get_optional_item(name, 'exclude_packages'):
+ exclude_val = self.get_optional_item(name, 'exclude_packages')
+ for pkg in exclude_val.split(','):
+ if pkg.strip():
+ profile.exclude_packages.append(pkg.strip());
+
return profile
def _parse_build_repos(self):