mirror of
https://git.rtems.org/rtems-source-builder
synced 2024-10-09 07:15:10 +08:00
config,sb: Qemu build updates for FreeBSD and the start of MinG32.
Hack round the FreeBSD iconv support in Freebsd 10. In 10 libc now supports iconv however iconv.h is present under /usr/local. Start to add support to build qemu for MinGW via a Cxc. This is a work in progress and contains lots of hidden traps. In config.py separate out of the canadian build status.
This commit is contained in:
@@ -40,14 +40,17 @@ import re
|
||||
import shlex
|
||||
import sys
|
||||
|
||||
def default_prefix():
|
||||
def default_prefix(common = True):
|
||||
paths = []
|
||||
defaults = ['/usr', '/usr/share', '/lib', '/lib64', '/usr/lib', '/usr/lib64', '/usr/local']
|
||||
for d in defaults:
|
||||
if os.path.exists(d):
|
||||
paths += [d]
|
||||
if 'PKG_CONFIG_PATH' in os.environ:
|
||||
paths += os.environ['PKG_CONFIG_PATH'].split(':')
|
||||
if common:
|
||||
defaults = ['/usr', '/usr/share', '/lib', '/lib64', '/usr/lib', '/usr/lib64', '/usr/local']
|
||||
for d in defaults:
|
||||
for cp in package.config_prefixes:
|
||||
prefix = os.path.join(d, cp, 'pkgconfig')
|
||||
if os.path.exists(prefix):
|
||||
paths += [prefix]
|
||||
return paths
|
||||
|
||||
class error(Exception):
|
||||
@@ -79,7 +82,10 @@ class package(object):
|
||||
@staticmethod
|
||||
def splitter(pkg_list):
|
||||
pkgs = []
|
||||
pls = package.lib_list_splitter.split(pkg_list)
|
||||
if type(pkg_list) == list:
|
||||
pls = pkg_list
|
||||
else:
|
||||
pls = package.lib_list_splitter.split(pkg_list)
|
||||
i = 0
|
||||
while i < len(pls):
|
||||
pkg = [pls[i]]
|
||||
@@ -181,10 +187,8 @@ class package(object):
|
||||
else:
|
||||
raise error('invalid type of prefix: %s' % (type(prefix)))
|
||||
for p in self.prefix:
|
||||
for d in package.config_prefixes:
|
||||
prefix = os.path.join(p, d, 'pkgconfig')
|
||||
if os.path.exists(prefix):
|
||||
self.paths += [prefix]
|
||||
if os.path.exists(p):
|
||||
self.paths += [p]
|
||||
self._log('paths: %s' % (', '.join(self.paths)))
|
||||
if 'sysroot' in self.defines:
|
||||
self._log('sysroot: %s' % (self.defines['sysroot']))
|
||||
|
Reference in New Issue
Block a user