mirror of
https://git.yoctoproject.org/poky
synced 2026-01-30 05:18:43 +01:00
Compare commits
89 Commits
pyro
...
bernard-5.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f432f1b010 | ||
|
|
d7fcae0778 | ||
|
|
223b4a9fb2 | ||
|
|
1af309aa19 | ||
|
|
13d14d0ddf | ||
|
|
66b30531ac | ||
|
|
66cf5423c6 | ||
|
|
3f0cec517b | ||
|
|
833b8160b5 | ||
|
|
a776cc376e | ||
|
|
83777bf1bc | ||
|
|
a15bc3ddd9 | ||
|
|
6dfddf5410 | ||
|
|
fb928dc8ea | ||
|
|
1bac3117fa | ||
|
|
07c55e9db4 | ||
|
|
5a8991913d | ||
|
|
fcce8449bc | ||
|
|
283d452ede | ||
|
|
52ba9b76e0 | ||
|
|
9d051f5808 | ||
|
|
b2ad1b9b42 | ||
|
|
a5d3c7c4f4 | ||
|
|
bef6f89563 | ||
|
|
4b77527f7a | ||
|
|
a080556e7e | ||
|
|
95fe31c60d | ||
|
|
8f1465aa9c | ||
|
|
1b11ff7752 | ||
|
|
101ce7109e | ||
|
|
7caf083ebe | ||
|
|
11f85405e0 | ||
|
|
be297836a1 | ||
|
|
91d72e822e | ||
|
|
8640414cca | ||
|
|
091ace83f8 | ||
|
|
e81957973d | ||
|
|
f3af7d55a8 | ||
|
|
e92f3a25ec | ||
|
|
ecbe894712 | ||
|
|
9a432a2328 | ||
|
|
976cb2d81d | ||
|
|
00d70680f9 | ||
|
|
3b8e7319f1 | ||
|
|
39c4f1f7c5 | ||
|
|
50a7f8483a | ||
|
|
52df73c3ff | ||
|
|
6adaf5a554 | ||
|
|
fc94ae7a77 | ||
|
|
ec8ab90763 | ||
|
|
5a0f713935 | ||
|
|
34921ffbba | ||
|
|
62ad9a8dc5 | ||
|
|
84752f34f9 | ||
|
|
3a39d96928 | ||
|
|
65d37c34b7 | ||
|
|
8e174d9437 | ||
|
|
4ec9b314c1 | ||
|
|
ba59c319b8 | ||
|
|
7708dde102 | ||
|
|
6c4c621475 | ||
|
|
9a8cc4eeb5 | ||
|
|
389ab65ab9 | ||
|
|
d3ae37234c | ||
|
|
f3c6ccd13c | ||
|
|
7305ee0962 | ||
|
|
38d6560c11 | ||
|
|
87ab152239 | ||
|
|
c387491661 | ||
|
|
7db4e07719 | ||
|
|
0073fae58e | ||
|
|
960c76bad2 | ||
|
|
93c36a6f68 | ||
|
|
781c12f2a9 | ||
|
|
55f3c2f438 | ||
|
|
60e922f180 | ||
|
|
a8a305a8ca | ||
|
|
87e8e1b31c | ||
|
|
f68e7a365f | ||
|
|
8abb5f60ca | ||
|
|
59aa9a23d8 | ||
|
|
6d79765420 | ||
|
|
49ca11e02d | ||
|
|
c004e18fb1 | ||
|
|
ee5918d9d7 | ||
|
|
9837e78bfc | ||
|
|
e08dc5aaae | ||
|
|
9ae2e2ef95 | ||
|
|
55b58a5d4c |
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python2.6
|
||||
#!/usr/bin/env python
|
||||
|
||||
import cmd
|
||||
import logging
|
||||
|
||||
@@ -497,7 +497,7 @@ def main():
|
||||
doc.insert_doc_item(doc_ins)
|
||||
|
||||
# let us create the HTML now
|
||||
bb.mkdirhier(output_dir)
|
||||
bb.utils.mkdirhier(output_dir)
|
||||
os.chdir(output_dir)
|
||||
|
||||
# Let us create the sites now. We do it in the following order
|
||||
|
||||
@@ -221,7 +221,8 @@ def exec_func_shell(function, d, runfile, cwd=None):
|
||||
if logger.isEnabledFor(logging.DEBUG):
|
||||
script.write("set -x\n")
|
||||
data.emit_func(function, script, d)
|
||||
|
||||
if cwd:
|
||||
script.write("cd %s\n" % cwd)
|
||||
script.write("%s\n" % function)
|
||||
os.fchmod(script.fileno(), 0775)
|
||||
|
||||
@@ -238,8 +239,7 @@ def exec_func_shell(function, d, runfile, cwd=None):
|
||||
logfile = sys.stdout
|
||||
|
||||
try:
|
||||
bb.process.run(cmd, env=env, cwd=cwd, shell=False, stdin=NULL,
|
||||
log=logfile)
|
||||
bb.process.run(cmd, env=env, shell=False, stdin=NULL, log=logfile)
|
||||
except bb.process.CmdError:
|
||||
logfn = d.getVar('BB_LOGFILE', True)
|
||||
raise FuncFailed(function, logfn)
|
||||
|
||||
@@ -43,7 +43,7 @@ except ImportError:
|
||||
logger.info("Importing cPickle failed. "
|
||||
"Falling back to a very slow implementation.")
|
||||
|
||||
__cache_version__ = "137"
|
||||
__cache_version__ = "138"
|
||||
|
||||
recipe_fields = (
|
||||
'pn',
|
||||
@@ -78,6 +78,8 @@ recipe_fields = (
|
||||
'summary',
|
||||
'license',
|
||||
'section',
|
||||
'fakerootenv',
|
||||
'fakerootdirs'
|
||||
)
|
||||
|
||||
|
||||
@@ -172,6 +174,8 @@ class RecipeInfo(namedtuple('RecipeInfo', recipe_fields)):
|
||||
summary = cls.getvar('SUMMARY', metadata),
|
||||
license = cls.getvar('LICENSE', metadata),
|
||||
section = cls.getvar('SECTION', metadata),
|
||||
fakerootenv = cls.getvar('FAKEROOTENV', metadata),
|
||||
fakerootdirs = cls.getvar('FAKEROOTDIRS', metadata),
|
||||
)
|
||||
|
||||
|
||||
@@ -584,6 +588,8 @@ class CacheData(object):
|
||||
self.summary = {}
|
||||
self.license = {}
|
||||
self.section = {}
|
||||
self.fakerootenv = {}
|
||||
self.fakerootdirs = {}
|
||||
|
||||
# Indirect Cache variables (set elsewhere)
|
||||
self.ignored_dependencies = []
|
||||
@@ -647,3 +653,5 @@ class CacheData(object):
|
||||
self.summary[fn] = info.summary
|
||||
self.license[fn] = info.license
|
||||
self.section[fn] = info.section
|
||||
self.fakerootenv[fn] = info.fakerootenv
|
||||
self.fakerootdirs[fn] = info.fakerootdirs
|
||||
|
||||
@@ -94,7 +94,7 @@ class Bzr(Fetch):
|
||||
bb.utils.remove(os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir)), True)
|
||||
bzrcmd = self._buildbzrcommand(ud, d, "fetch")
|
||||
logger.debug(1, "BZR Checkout %s", loc)
|
||||
bb.mkdirhier(ud.pkgdir)
|
||||
bb.utils.mkdirhier(ud.pkgdir)
|
||||
os.chdir(ud.pkgdir)
|
||||
logger.debug(1, "Running %s", bzrcmd)
|
||||
runfetchcmd(bzrcmd, d)
|
||||
|
||||
@@ -137,7 +137,7 @@ class Cvs(Fetch):
|
||||
else:
|
||||
logger.info("Fetch " + loc)
|
||||
# check out sources there
|
||||
bb.mkdirhier(pkgdir)
|
||||
bb.utils.mkdirhier(pkgdir)
|
||||
os.chdir(pkgdir)
|
||||
logger.debug(1, "Running %s", cvscmd)
|
||||
myret = os.system(cvscmd)
|
||||
|
||||
@@ -131,7 +131,7 @@ class Git(Fetch):
|
||||
|
||||
# If the checkout doesn't exist and the mirror tarball does, extract it
|
||||
if not os.path.exists(ud.clonedir) and os.path.exists(repofile):
|
||||
bb.mkdirhier(ud.clonedir)
|
||||
bb.utils.mkdirhier(ud.clonedir)
|
||||
os.chdir(ud.clonedir)
|
||||
runfetchcmd("tar -xzf %s" % (repofile), d)
|
||||
|
||||
@@ -188,7 +188,7 @@ class Git(Fetch):
|
||||
os.chdir(coprefix)
|
||||
runfetchcmd("%s checkout -q -f %s%s" % (ud.basecmd, ud.tag, readpathspec), d)
|
||||
else:
|
||||
bb.mkdirhier(codir)
|
||||
bb.utils.mkdirhier(codir)
|
||||
os.chdir(ud.clonedir)
|
||||
runfetchcmd("%s read-tree %s%s" % (ud.basecmd, ud.tag, readpathspec), d)
|
||||
runfetchcmd("%s checkout-index -q -f --prefix=%s -a" % (ud.basecmd, coprefix), d)
|
||||
|
||||
@@ -131,7 +131,7 @@ class Hg(Fetch):
|
||||
fetchcmd = self._buildhgcommand(ud, d, "fetch")
|
||||
logger.info("Fetch " + loc)
|
||||
# check out sources there
|
||||
bb.mkdirhier(ud.pkgdir)
|
||||
bb.utils.mkdirhier(ud.pkgdir)
|
||||
os.chdir(ud.pkgdir)
|
||||
logger.debug(1, "Running %s", fetchcmd)
|
||||
runfetchcmd(fetchcmd, d)
|
||||
|
||||
@@ -98,7 +98,7 @@ class Osc(Fetch):
|
||||
oscfetchcmd = self._buildosccommand(ud, d, "fetch")
|
||||
logger.info("Fetch " + loc)
|
||||
# check out sources there
|
||||
bb.mkdirhier(ud.pkgdir)
|
||||
bb.utils.mkdirhier(ud.pkgdir)
|
||||
os.chdir(ud.pkgdir)
|
||||
logger.debug(1, "Running %s", oscfetchcmd)
|
||||
runfetchcmd(oscfetchcmd, d)
|
||||
|
||||
@@ -154,7 +154,7 @@ class Perforce(Fetch):
|
||||
|
||||
# create temp directory
|
||||
logger.debug(2, "Fetch: creating temporary directory")
|
||||
bb.mkdirhier(data.expand('${WORKDIR}', localdata))
|
||||
bb.utils.mkdirhier(data.expand('${WORKDIR}', localdata))
|
||||
data.setVar('TMPBASE', data.expand('${WORKDIR}/oep4.XXXXXX', localdata), localdata)
|
||||
tmppipe = os.popen(data.getVar('MKTEMPDIRCMD', localdata, 1) or "false")
|
||||
tmpfile = tmppipe.readline().strip()
|
||||
|
||||
@@ -71,7 +71,7 @@ class Repo(Fetch):
|
||||
else:
|
||||
username = ""
|
||||
|
||||
bb.mkdirhier(os.path.join(codir, "repo"))
|
||||
bb.utils.mkdirhier(os.path.join(codir, "repo"))
|
||||
os.chdir(os.path.join(codir, "repo"))
|
||||
if not os.path.exists(os.path.join(codir, "repo", ".repo")):
|
||||
runfetchcmd("repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), d)
|
||||
|
||||
@@ -71,7 +71,7 @@ class Svk(Fetch):
|
||||
localdata = data.createCopy(d)
|
||||
data.update_data(localdata)
|
||||
logger.debug(2, "Fetch: creating temporary directory")
|
||||
bb.mkdirhier(data.expand('${WORKDIR}', localdata))
|
||||
bb.utils.mkdirhier(data.expand('${WORKDIR}', localdata))
|
||||
data.setVar('TMPBASE', data.expand('${WORKDIR}/oesvk.XXXXXX', localdata), localdata)
|
||||
tmppipe = os.popen(data.getVar('MKTEMPDIRCMD', localdata, 1) or "false")
|
||||
tmpfile = tmppipe.readline().strip()
|
||||
|
||||
@@ -146,7 +146,7 @@ class Svn(Fetch):
|
||||
svnfetchcmd = self._buildsvncommand(ud, d, "fetch")
|
||||
logger.info("Fetch " + loc)
|
||||
# check out sources there
|
||||
bb.mkdirhier(ud.pkgdir)
|
||||
bb.utils.mkdirhier(ud.pkgdir)
|
||||
os.chdir(ud.pkgdir)
|
||||
logger.debug(1, "Running %s", svnfetchcmd)
|
||||
runfetchcmd(svnfetchcmd, d)
|
||||
|
||||
@@ -525,6 +525,7 @@ class FetchData(object):
|
||||
self.localpath = None
|
||||
self.lockfile = None
|
||||
self.mirrortarball = None
|
||||
self.basename = None
|
||||
(self.type, self.host, self.path, self.user, self.pswd, self.parm) = decodeurl(data.expand(url, d))
|
||||
self.date = self.getSRCDate(d)
|
||||
self.url = url
|
||||
@@ -573,11 +574,10 @@ class FetchData(object):
|
||||
elif self.localfile:
|
||||
self.localpath = self.method.localpath(self.url, self, d)
|
||||
|
||||
if self.localfile and self.localpath:
|
||||
# Note: These files should always be in DL_DIR whereas localpath may not be.
|
||||
basepath = bb.data.expand("${DL_DIR}/%s" % os.path.basename(self.localpath), d)
|
||||
self.donestamp = basepath + '.done'
|
||||
self.lockfile = basepath + '.lock'
|
||||
# Note: These files should always be in DL_DIR whereas localpath may not be.
|
||||
basepath = bb.data.expand("${DL_DIR}/%s" % os.path.basename(self.localpath or self.basename), d)
|
||||
self.donestamp = basepath + '.done'
|
||||
self.lockfile = basepath + '.lock'
|
||||
|
||||
def setup_localpath(self, d):
|
||||
if not self.localpath:
|
||||
@@ -731,7 +731,7 @@ class FetchMethod(object):
|
||||
destdir = urldata.path.rsplit("/", 1)[0]
|
||||
else:
|
||||
destdir = "."
|
||||
bb.mkdirhier("%s/%s" % (rootdir, destdir))
|
||||
bb.utils.mkdirhier("%s/%s" % (rootdir, destdir))
|
||||
cmd = 'cp %s %s/%s/' % (file, rootdir, destdir)
|
||||
|
||||
if not cmd:
|
||||
@@ -742,7 +742,7 @@ class FetchMethod(object):
|
||||
os.chdir(rootdir)
|
||||
if 'subdir' in urldata.parm:
|
||||
newdir = ("%s/%s" % (rootdir, urldata.parm.get('subdir')))
|
||||
bb.mkdirhier(newdir)
|
||||
bb.utils.mkdirhier(newdir)
|
||||
os.chdir(newdir)
|
||||
|
||||
cmd = "PATH=\"%s\" %s" % (bb.data.getVar('PATH', data, True), cmd)
|
||||
@@ -913,9 +913,6 @@ class Fetch(object):
|
||||
m = ud.method
|
||||
localpath = ""
|
||||
|
||||
if not ud.localfile:
|
||||
continue
|
||||
|
||||
lf = bb.utils.lockfile(ud.lockfile)
|
||||
|
||||
try:
|
||||
@@ -951,7 +948,7 @@ class Fetch(object):
|
||||
mirrors = mirror_from_string(bb.data.getVar('MIRRORS', self.d, True))
|
||||
localpath = try_mirrors (self.d, ud, mirrors)
|
||||
|
||||
if not localpath or not os.path.exists(localpath):
|
||||
if not localpath or ((not os.path.exists(localpath)) and localpath.find("*") == -1):
|
||||
raise FetchError("Unable to fetch URL %s from any source." % u, u)
|
||||
|
||||
if os.path.exists(ud.donestamp):
|
||||
|
||||
@@ -93,7 +93,7 @@ class Bzr(FetchMethod):
|
||||
bzrcmd = self._buildbzrcommand(ud, d, "fetch")
|
||||
bb.fetch2.check_network_access(d, bzrcmd, ud.url)
|
||||
logger.debug(1, "BZR Checkout %s", loc)
|
||||
bb.mkdirhier(ud.pkgdir)
|
||||
bb.utils.mkdirhier(ud.pkgdir)
|
||||
os.chdir(ud.pkgdir)
|
||||
logger.debug(1, "Running %s", bzrcmd)
|
||||
runfetchcmd(bzrcmd, d)
|
||||
|
||||
@@ -139,7 +139,7 @@ class Cvs(FetchMethod):
|
||||
else:
|
||||
logger.info("Fetch " + loc)
|
||||
# check out sources there
|
||||
bb.mkdirhier(pkgdir)
|
||||
bb.utils.mkdirhier(pkgdir)
|
||||
os.chdir(pkgdir)
|
||||
logger.debug(1, "Running %s", cvscmd)
|
||||
bb.fetch2.check_network_access(d, cvscmd, ud.url)
|
||||
|
||||
@@ -116,7 +116,7 @@ class Git(FetchMethod):
|
||||
|
||||
# If the checkout doesn't exist and the mirror tarball does, extract it
|
||||
if not os.path.exists(ud.clonedir) and os.path.exists(ud.fullmirror):
|
||||
bb.mkdirhier(ud.clonedir)
|
||||
bb.utils.mkdirhier(ud.clonedir)
|
||||
os.chdir(ud.clonedir)
|
||||
runfetchcmd("tar -xzf %s" % (ud.fullmirror), d)
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ class Hg(FetchMethod):
|
||||
fetchcmd = self._buildhgcommand(ud, d, "fetch")
|
||||
logger.info("Fetch " + loc)
|
||||
# check out sources there
|
||||
bb.mkdirhier(ud.pkgdir)
|
||||
bb.utils.mkdirhier(ud.pkgdir)
|
||||
os.chdir(ud.pkgdir)
|
||||
logger.debug(1, "Running %s", fetchcmd)
|
||||
bb.fetch2.check_network_access(d, fetchcmd, ud.url)
|
||||
|
||||
@@ -40,6 +40,7 @@ class Local(FetchMethod):
|
||||
|
||||
def urldata_init(self, ud, d):
|
||||
# We don't set localfile as for this fetcher the file is already local!
|
||||
ud.basename = os.path.basename(ud.url.split("://")[1].split(";")[0])
|
||||
return
|
||||
|
||||
def localpath(self, url, urldata, d):
|
||||
@@ -49,6 +50,9 @@ class Local(FetchMethod):
|
||||
path = url.split("://")[1]
|
||||
path = path.split(";")[0]
|
||||
newpath = path
|
||||
dldirfile = os.path.join(data.getVar("DL_DIR", d, True), os.path.basename(path))
|
||||
if os.path.exists(dldirfile):
|
||||
return dldirfile
|
||||
if path[0] != "/":
|
||||
filespath = data.getVar('FILESPATH', d, True)
|
||||
if filespath:
|
||||
@@ -57,8 +61,17 @@ class Local(FetchMethod):
|
||||
filesdir = data.getVar('FILESDIR', d, True)
|
||||
if filesdir:
|
||||
newpath = os.path.join(filesdir, path)
|
||||
if not os.path.exists(newpath) and path.find("*") == -1:
|
||||
return dldirfile
|
||||
return newpath
|
||||
|
||||
def need_update(self, url, ud, d):
|
||||
if url.find("*") == -1:
|
||||
return False
|
||||
if os.path.exists(ud.localpath):
|
||||
return False
|
||||
return True
|
||||
|
||||
def download(self, url, urldata, d):
|
||||
"""Fetch urls (no-op for Local method)"""
|
||||
# no need to fetch local files, we'll deal with them in place.
|
||||
|
||||
@@ -96,7 +96,7 @@ class Osc(FetchMethod):
|
||||
oscfetchcmd = self._buildosccommand(ud, d, "fetch")
|
||||
logger.info("Fetch " + loc)
|
||||
# check out sources there
|
||||
bb.mkdirhier(ud.pkgdir)
|
||||
bb.utils.mkdirhier(ud.pkgdir)
|
||||
os.chdir(ud.pkgdir)
|
||||
logger.debug(1, "Running %s", oscfetchcmd)
|
||||
bb.fetch2.check_network_access(d, oscfetchcmd, ud.url)
|
||||
|
||||
@@ -152,7 +152,7 @@ class Perforce(FetchMethod):
|
||||
|
||||
# create temp directory
|
||||
logger.debug(2, "Fetch: creating temporary directory")
|
||||
bb.mkdirhier(data.expand('${WORKDIR}', localdata))
|
||||
bb.utils.mkdirhier(data.expand('${WORKDIR}', localdata))
|
||||
data.setVar('TMPBASE', data.expand('${WORKDIR}/oep4.XXXXXX', localdata), localdata)
|
||||
tmppipe = os.popen(data.getVar('MKTEMPDIRCMD', localdata, True) or "false")
|
||||
tmpfile = tmppipe.readline().strip()
|
||||
|
||||
@@ -69,7 +69,7 @@ class Repo(FetchMethod):
|
||||
else:
|
||||
username = ""
|
||||
|
||||
bb.mkdirhier(os.path.join(codir, "repo"))
|
||||
bb.utils.mkdirhier(os.path.join(codir, "repo"))
|
||||
os.chdir(os.path.join(codir, "repo"))
|
||||
if not os.path.exists(os.path.join(codir, "repo", ".repo")):
|
||||
bb.fetch2.check_network_access(d, "repo init -m %s -b %s -u %s://%s%s%s" % (ud.manifest, ud.branch, ud.proto, username, ud.host, ud.path), ud.url)
|
||||
|
||||
@@ -75,7 +75,7 @@ class Svk(FetchMethod):
|
||||
localdata = data.createCopy(d)
|
||||
data.update_data(localdata)
|
||||
logger.debug(2, "Fetch: creating temporary directory")
|
||||
bb.mkdirhier(data.expand('${WORKDIR}', localdata))
|
||||
bb.utils.mkdirhier(data.expand('${WORKDIR}', localdata))
|
||||
data.setVar('TMPBASE', data.expand('${WORKDIR}/oesvk.XXXXXX', localdata), localdata)
|
||||
tmppipe = os.popen(data.getVar('MKTEMPDIRCMD', localdata, True) or "false")
|
||||
tmpfile = tmppipe.readline().strip()
|
||||
|
||||
@@ -122,7 +122,7 @@ class Svn(FetchMethod):
|
||||
svnfetchcmd = self._buildsvncommand(ud, d, "fetch")
|
||||
logger.info("Fetch " + loc)
|
||||
# check out sources there
|
||||
bb.mkdirhier(ud.pkgdir)
|
||||
bb.utils.mkdirhier(ud.pkgdir)
|
||||
os.chdir(ud.pkgdir)
|
||||
logger.debug(1, "Running %s", svnfetchcmd)
|
||||
bb.fetch2.check_network_access(d, svnfetchcmd, ud.url)
|
||||
|
||||
@@ -1060,27 +1060,23 @@ class RunQueueExecute:
|
||||
return
|
||||
|
||||
def fork_off_task(self, fn, task, taskname, quieterrors=False):
|
||||
the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data)
|
||||
|
||||
env = bb.data.export_vars(the_data)
|
||||
env = bb.data.export_envvars(env, the_data)
|
||||
envbackup = os.environ.copy()
|
||||
env = {}
|
||||
|
||||
taskdep = self.rqdata.dataCache.task_deps[fn]
|
||||
if 'fakeroot' in taskdep and taskname in taskdep['fakeroot']:
|
||||
envvars = the_data.getVar("FAKEROOTENV", True).split()
|
||||
envvars = (self.rqdata.dataCache.fakerootenv[fn] or "").split()
|
||||
for var in envvars:
|
||||
comps = var.split("=")
|
||||
env[comps[0]] = comps[1]
|
||||
fakedirs = (the_data.getVar("FAKEROOTDIRS", True) or "").split()
|
||||
|
||||
fakedirs = (self.rqdata.dataCache.fakerootdirs[fn] or "").split()
|
||||
for p in fakedirs:
|
||||
bb.mkdirhier(p)
|
||||
logger.debug(2, "Running %s:%s under fakeroot, state dir is %s" % (fn, taskname, fakedirs))
|
||||
|
||||
envbackup = os.environ.copy()
|
||||
for e in envbackup:
|
||||
os.unsetenv(e)
|
||||
for e in env:
|
||||
os.putenv(e, env[e])
|
||||
for e in env:
|
||||
os.putenv(e, env[e])
|
||||
|
||||
sys.stdout.flush()
|
||||
sys.stderr.flush()
|
||||
@@ -1111,6 +1107,20 @@ class RunQueueExecute:
|
||||
# No stdin
|
||||
newsi = os.open(os.devnull, os.O_RDWR)
|
||||
os.dup2(newsi, sys.stdin.fileno())
|
||||
|
||||
|
||||
the_data = bb.cache.Cache.loadDataFull(fn, self.cooker.get_file_appends(fn), self.cooker.configuration.data)
|
||||
|
||||
env2 = bb.data.export_vars(the_data)
|
||||
env2 = bb.data.export_envvars(env2, the_data)
|
||||
|
||||
for e in os.environ:
|
||||
os.unsetenv(e)
|
||||
for e in env2:
|
||||
os.putenv(e, env2[e])
|
||||
for e in env:
|
||||
os.putenv(e, env[e])
|
||||
|
||||
if quieterrors:
|
||||
the_data.setVarFlag(taskname, "quieterrors", "1")
|
||||
|
||||
@@ -1137,7 +1147,8 @@ class RunQueueExecute:
|
||||
for e in env:
|
||||
os.unsetenv(e)
|
||||
for e in envbackup:
|
||||
os.putenv(e, envbackup[e])
|
||||
if e in env:
|
||||
os.putenv(e, envbackup[e])
|
||||
|
||||
return pid, pipein, pipeout
|
||||
|
||||
|
||||
@@ -23,15 +23,20 @@
|
||||
<affiliation>
|
||||
<orgname>Intel Corporation</orgname>
|
||||
</affiliation>
|
||||
<email>richard@linux.intel.com</email>
|
||||
<email>richard.purdie@linuxfoundation.org</email>
|
||||
</author>
|
||||
</authorgroup>
|
||||
|
||||
<revhistory>
|
||||
<revision>
|
||||
<revnumber>1.0</revnumber>
|
||||
<date>1 April 2011</date>
|
||||
<revremark>This release represents the initial full release for Yocto Project.</revremark>
|
||||
</revision>
|
||||
<revision>
|
||||
<revnumber>0.9</revnumber>
|
||||
<date>27 October 2010</date>
|
||||
<revremark>Beta Draft</revremark>
|
||||
<revremark>This release represents the Yocto Project Beta Draft.</revremark>
|
||||
</revision>
|
||||
</revhistory>
|
||||
|
||||
|
||||
@@ -533,19 +533,22 @@ FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
||||
</para>
|
||||
|
||||
<para>
|
||||
For cases where you can substitute something and still maintain functionality, the Poky website will make
|
||||
available a 'de-featured' BSP completely free of the encumbered IP.
|
||||
In that case you can use the substitution directly and without any further licensing requirements.
|
||||
If present, this fully 'de-featured' BSP will be named meta-<bsp_name> (i.e. the
|
||||
normal default naming convention).
|
||||
If available, this is the simplest the most preferred option.
|
||||
For cases where you can substitute something and still maintain functionality,
|
||||
the Yocto Project website at
|
||||
<ulink url='http://yoctoproject.org/download/board-support-package-bsp-downloads'></ulink>
|
||||
will make available a 'de-featured' BSP completely free of the encumbered IP.
|
||||
In that case you can use the substitution directly and without any further licensing
|
||||
requirements.
|
||||
If present, this fully 'de-featured' BSP will be named appropiately different
|
||||
than the normal encumbered BSP.
|
||||
If available, this substitution is the simplest and most preferred option.
|
||||
This, of course, assumes the resulting functionality meets requirements.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
If however, a non-encumbered version is unavailable or the 'free' version would provide unsuitable
|
||||
functionality or quality, an encumbered version can be used.
|
||||
Encumbered versions of a BSP are given names of the form meta-<bsp_name>-nonfree.
|
||||
If however, a non-encumbered version is unavailable or the 'free' version
|
||||
would provide unsuitable functionality or quality, you can use
|
||||
an encumbered version.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
@@ -559,14 +562,23 @@ FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
||||
|
||||
<para>
|
||||
Get a license key (or keys) for the encumbered BSP by visiting
|
||||
a website and providing the name of the BSB and your email address
|
||||
through a web form.
|
||||
</para>
|
||||
|
||||
<!--
|
||||
<ulink url='https://pokylinux.org/bsp-keys.html'>https://pokylinux.org/bsp-keys.html</ulink>
|
||||
and give the name of the BSP and your e-mail address in the web form.
|
||||
</para>
|
||||
|
||||
COMMENT: This link is not implemented at this point.
|
||||
|
||||
<programlisting>
|
||||
[screenshot of dialog box]
|
||||
</programlisting>
|
||||
|
||||
-->
|
||||
|
||||
<para>
|
||||
After agreeing to any applicable license terms, the
|
||||
BSP key(s) will be immediately sent to the address
|
||||
@@ -609,7 +621,8 @@ FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
||||
encumbered BSP.
|
||||
These prompts usually take the form of instructions
|
||||
needed to manually fetch the encumbered package(s)
|
||||
and md5 sums into the required directory (e.g. the poky/build/downloads)
|
||||
and md5 sums into the required directory
|
||||
(e.g. the <filename>poky/build/downloads</filename>).
|
||||
Once the manual package fetch has been
|
||||
completed, restart the build to continue where
|
||||
it left off.
|
||||
@@ -619,25 +632,21 @@ FILESEXTRAPATHS := "${THISDIR}/${PN}"
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
Get a full-featured BSP recipe rather than a key, by
|
||||
visiting
|
||||
<ulink url='https://pokylinux.org/bsps.html'>https://pokylinux.org/bsps.html</ulink>.
|
||||
Accepting the license agreement(s) presented will
|
||||
subsequently allow you to download a tarball
|
||||
containing a full-featured BSP that is legally cleared for
|
||||
your use by the just-given license agreement(s).
|
||||
This method will also allow the encumbered image to
|
||||
be built with no change at all to the normal build
|
||||
process.
|
||||
</para>
|
||||
Get a full-featured BSP recipe rather than a key.
|
||||
You can do this by visiting the applicable BSP download page from the Yocto
|
||||
Project website at
|
||||
<ulink url='http://yoctoproject.org/download/board-support-package-bsp-downloads'></ulink>.
|
||||
BSP tarballs that have proprietary information can be downloaded after agreeing
|
||||
to licensing requirements as part of the download process.
|
||||
Obtaining the code this way allows you to build an encumbered image with
|
||||
no changes at all as compared to the normal build.
|
||||
</para>
|
||||
</listitem>
|
||||
</orderedlist>
|
||||
<para>
|
||||
Note that the third method is also the only option available
|
||||
when downloading pre-compiled images generated from
|
||||
non-free BSPs.
|
||||
Those images are likewise available at
|
||||
<ulink url='https://pokylinux.org/bsps.html'>https://pokylinux.org/bsps.html</ulink>.
|
||||
when downloading pre-compiled images generated from non-free BSPs.
|
||||
Those images are likewise available at from the Yocto Project website.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
|
||||
BIN
documentation/bsp-guide/figures/bsp-title.png
Executable file → Normal file
BIN
documentation/bsp-guide/figures/bsp-title.png
Executable file → Normal file
Binary file not shown.
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
BIN
documentation/kernel-manual/figures/kernel-title.png
Executable file → Normal file
BIN
documentation/kernel-manual/figures/kernel-title.png
Executable file → Normal file
Binary file not shown.
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
@@ -56,7 +56,7 @@ body {
|
||||
|
||||
h1,h2,h3,h4,h5,h6,h7 {
|
||||
font-family: Arial, Sans;
|
||||
color:#999999;
|
||||
color: #00557D;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
@@ -79,9 +79,8 @@ h2.subtitle {
|
||||
h2 {
|
||||
margin: 2em 0em 0.66em 0em;
|
||||
padding: 0.5em 0em 0em 0em;
|
||||
font-size: 2em;
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
}
|
||||
|
||||
h3.subtitle {
|
||||
@@ -94,29 +93,29 @@ h3.subtitle {
|
||||
h3 {
|
||||
margin: 1em 0em 0.5em 0em;
|
||||
padding: 1em 0em 0em 0em;
|
||||
font-size: 150%;
|
||||
font-size: 140%;
|
||||
font-weight: bold;
|
||||
color: black;
|
||||
border-bottom: 2px solid black;
|
||||
}
|
||||
|
||||
h4 {
|
||||
margin: 1em 0em 0.5em 0em;
|
||||
padding: 1em 0em 0em 0em;
|
||||
font-size: 130%;
|
||||
border-bottom: 1px solid black;
|
||||
font-size: 120%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h5 {
|
||||
margin: 1em 0em 0.5em 0em;
|
||||
padding: 1em 0em 0em 0em;
|
||||
font-size: 120%;
|
||||
font-size: 110%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h6 {
|
||||
margin: 1em 0em 0em 0em;
|
||||
padding: 1em 0em 0em 0em;
|
||||
font-size: 100%;
|
||||
font-size: 80%;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.authorgroup {
|
||||
@@ -124,12 +123,12 @@ h6 {
|
||||
background-repeat: no-repeat;
|
||||
padding-top: 256px;
|
||||
background-image: url("figures/kernel-title.png");
|
||||
background-position: top;
|
||||
background-position: left top;
|
||||
margin-top: -256px;
|
||||
padding-right: 50px;
|
||||
margin-left: 50px;
|
||||
margin-left: 0px;
|
||||
text-align: right;
|
||||
width: 700px;
|
||||
width: 740px;
|
||||
}
|
||||
|
||||
h3.author {
|
||||
@@ -137,6 +136,7 @@ h3.author {
|
||||
padding: 0em 0em 0em 0em;
|
||||
font-weight: normal;
|
||||
font-size: 100%;
|
||||
color: #333;
|
||||
clear: both;
|
||||
}
|
||||
|
||||
@@ -159,6 +159,7 @@ h3.author {
|
||||
.list-of-examples,
|
||||
.list-of-figures {
|
||||
padding: 1.33em 0em 2.5em 0em;
|
||||
color: #00557D;
|
||||
}
|
||||
|
||||
.toc p,
|
||||
@@ -246,7 +247,6 @@ div.legalnotice p.legalnotice-title {
|
||||
p {
|
||||
line-height: 1.5em;
|
||||
margin-top: 0em;
|
||||
color: black; font-size: 100%;
|
||||
|
||||
}
|
||||
|
||||
@@ -946,7 +946,7 @@ table {
|
||||
|
||||
.tip,
|
||||
.note {
|
||||
background: #91ae35;
|
||||
background: #666666;
|
||||
color: #fff;
|
||||
padding: 20px;
|
||||
margin: 20px;
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
|
||||
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/docbook.xsl" />
|
||||
|
||||
<xsl:param name="generate.toc" select="'article nop'"></xsl:param>
|
||||
<!-- <xsl:param name="generate.toc" select="'article nop'"></xsl:param> -->
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
@@ -67,12 +67,13 @@
|
||||
<literallayout class='monospaced'>
|
||||
Help -> Install New Software
|
||||
</literallayout>
|
||||
Specify the target URL as <ulink url='http://www.yoctoproject.org/downloads/eclipse-plug-in/'></ulink>.
|
||||
Specify the target URL as
|
||||
<ulink url='http://www.yoctoproject.org/downloads/eclipse-plugin/'></ulink>.
|
||||
</para>
|
||||
<para>
|
||||
If you want to download the source code for the plug-in you can find it in the Poky
|
||||
git repository, which has a web interface, and is located at
|
||||
<ulink url="http://git.pokylinux.org/cgit.cgi/eclipse-poky"></ulink>.
|
||||
<ulink url="http://git.yoctoproject.org"></ulink> under IDE Plugins.
|
||||
</para>
|
||||
|
||||
<section id="installing-and-setting-up-the-eclipse-ide">
|
||||
@@ -301,10 +302,9 @@
|
||||
Plug-in are all required.
|
||||
The Poky Anjuta Plug-in is available to download as a tarball at the OpenedHand
|
||||
labs <ulink url="http://labs.o-hand.com/anjuta-poky-sdk-plugin/"></ulink> page or
|
||||
directly from the Poky Git repository located at
|
||||
<ulink url="git://git.pokylinux.org/anjuta-poky"></ulink>.
|
||||
You can also access a web interface to the repository at
|
||||
<ulink url="http://git.pokylinux.org/?p=anjuta-poky.git;a=summary"></ulink>.
|
||||
directly from the Poky Git repository located at git://git.yoctoproject.org/anjuta-poky.
|
||||
You can access the source code from a web interface to the repository at
|
||||
<ulink url="http://git.yoctoproject.org/"></ulink> under IDE Plugins.
|
||||
</para>
|
||||
<para>
|
||||
See the README file contained in the project for more information on
|
||||
|
||||
@@ -248,7 +248,8 @@
|
||||
<qandaentry>
|
||||
<question>
|
||||
<para>
|
||||
I see lots of 404 responses for files on http://pokylinux.org/sources/*. Is something wrong?
|
||||
I see lots of 404 responses for files on
|
||||
http://autobuilder.yoctoproject.org/sources/*. Is something wrong?
|
||||
</para>
|
||||
</question>
|
||||
<answer>
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
<title>Releases</title>
|
||||
|
||||
<para>Periodically, we make releases of Poky available
|
||||
at <ulink url='http://pokylinux.org/releases/'/>.
|
||||
at <ulink url='http://yoctoproject.org/downloads/poky/'/>.
|
||||
These releases are more stable and more rigorously tested than the nightly development images.
|
||||
</para>
|
||||
</section>
|
||||
@@ -129,7 +129,7 @@
|
||||
<para>
|
||||
We make nightly builds of Poky for testing purposes and to make the
|
||||
latest developments available. The output from these builds is available
|
||||
at <ulink url='http://autobuilder.pokylinux.org/'/>.
|
||||
at <ulink url='http://autobuilder.yoctoproject.org/'/>.
|
||||
The numbers used in the builds increase for each subsequent build and can be used to
|
||||
reference a specific build.
|
||||
</para>
|
||||
@@ -152,8 +152,8 @@
|
||||
|
||||
<para>
|
||||
Poky is available from our git repository located at
|
||||
git://git.pokylinux.org/poky.git; a web interface to the repository
|
||||
can be accessed at <ulink url='http://git.pokylinux.org/'/>.
|
||||
git://git.yoctoproject.org/poky.git; a web interface to the repository
|
||||
can be accessed at <ulink url='http://git.yoctoproject.org/'/>.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
|
||||
@@ -5,62 +5,71 @@
|
||||
<title>Reference: Images</title>
|
||||
|
||||
<para>
|
||||
Poky has several standard images covering most people's standard needs. A full
|
||||
list of image targets can be found by looking in the directories
|
||||
<filename class="directory"> meta/recipes-core/images/</filename>,
|
||||
<filename class="directory"> meta/recipes-extended/images/</filename>,
|
||||
<filename class="directory"> meta/recipes-sato/images/</filename> and
|
||||
<filename class="directory"> meta/recipes-tbd/meta/</filename>. The standard
|
||||
images are listed below along with details of what they contain:
|
||||
Poky has several standard images covering most people's standard needs.
|
||||
Use the following command to list the supported images:
|
||||
<literallayout class='monospaced'>
|
||||
$ ls meta*/recipes*/images/*.bb
|
||||
</literallayout>
|
||||
Images are listed below along with details of what they contain:
|
||||
</para>
|
||||
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>
|
||||
<emphasis>poky-image-minimal</emphasis> - A small image, just enough
|
||||
to allow a device to boot
|
||||
<emphasis>poky-image-minimal</emphasis> - A small image just capable
|
||||
of allowing a device to boot.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<emphasis>poky-image-base</emphasis> - console only image with full
|
||||
support of target device hardware
|
||||
<emphasis>poky-image-base</emphasis> - A console-only image that fully
|
||||
supports the target device hardware.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<emphasis>poky-image-core</emphasis> - X11 image with simple apps like
|
||||
terminal, editor and file manager
|
||||
<emphasis>poky-image-core</emphasis> - An X11 image with simple
|
||||
applications such as terminal, editor, and file manager.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<emphasis>poky-image-sato</emphasis> - X11 image with Sato theme and
|
||||
Pimlico applications. Also contains terminal, editor and file manager.
|
||||
<emphasis>poky-image-sato</emphasis> - An X11 image with Sato theme and
|
||||
Pimlico applications.
|
||||
The image also contains terminal, editor, and file manager.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<emphasis>poky-image-sdk</emphasis> - X11 image like poky-image-sato but
|
||||
also include native toolchain and libraries needed to build applications
|
||||
on the device itself. Also includes testing and profiling tools and debug
|
||||
symbols.
|
||||
<emphasis>poky-image-sato-dev</emphasis> - An X11 image similar to
|
||||
poky-image-sato but
|
||||
also includes a native toolchain and libraries needed to build applications
|
||||
on the device itself. The image also includes testing and profiling tools
|
||||
as well as debug symbols. This image was formerly poky-image-sdk.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<emphasis>meta-toolchain</emphasis> - This generates a tarball containing
|
||||
a standalone toolchain which can be used externally to Poky. It is self
|
||||
contained and unpacks to the <filename class="directory">/opt/poky</filename>
|
||||
directory. It also contains a copy of QEMU and the scripts necessary to run
|
||||
<emphasis>poky-image-lsb</emphasis> - An image suitable for implementations
|
||||
that conform to Linux Standard Base (LSB).
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<emphasis>meta-toolchain</emphasis> - This image generates a tarball
|
||||
that contains a stand-alone toolchain that can be used externally to Poky.
|
||||
The tarball is self-contained and unpacks to the
|
||||
<filename class="directory">/opt/poky</filename> directory.
|
||||
The tarball also contains a copy of QEMU and the scripts necessary to run
|
||||
poky QEMU images.
|
||||
</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>
|
||||
<emphasis>meta-toolchain-sdk</emphasis> - This includes everything in
|
||||
<emphasis>meta-toolchain-sdk</emphasis> - This image includes everything in
|
||||
meta-toolchain but also includes development headers and libraries
|
||||
forming a complete standalone SDK. See the <link linkend='platdev-appdev-external-sdk'>
|
||||
to form a complete standalone SDK.
|
||||
See the <link linkend='platdev-appdev-external-sdk'>
|
||||
External Development Using the Poky SDK</link> section for more information.
|
||||
</para>
|
||||
</listitem>
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
<title>Bugtracker</title>
|
||||
|
||||
<para>
|
||||
Problems with Poky should be reported in the
|
||||
<ulink url='http://bugzilla.pokylinux.org/'>bug tracker</ulink>.
|
||||
Problems with Poky should be reported using the Bugzilla application at
|
||||
<ulink url='http://bugzilla.yoctoproject.org/'></ulink>.
|
||||
</para>
|
||||
</section>
|
||||
|
||||
@@ -75,7 +75,8 @@
|
||||
for Yocto Project.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<ulink url='http://pokylinux.org'>The Poky website</ulink>
|
||||
<ulink url='http://pokylinux.org'>The Poky website</ulink> - The home site
|
||||
for Poky Linux.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<ulink url='http://www.openedhand.com/'>OpenedHand</ulink> - The
|
||||
@@ -96,8 +97,8 @@
|
||||
- The tool used to process Poky metadata.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<ulink url='http://bitbake.berlios.de/manual/'>Bitbake User
|
||||
Manual</ulink>
|
||||
<ulink url='http://bitbake.berlios.de/manual/'>BitBake User
|
||||
Manual</ulink> - A comprehensive guide to the BitBake tool.
|
||||
</para></listitem>
|
||||
<listitem><para>
|
||||
<ulink url='http://pimlico-project.org/'>Pimlico</ulink> - A
|
||||
@@ -148,7 +149,7 @@
|
||||
</programlisting>
|
||||
|
||||
<para>
|
||||
A Poky contributions tree (poky-contrib, git://git.pokylinux.org/poky-contrib.git)
|
||||
A Poky contributions tree (poky-contrib, git://git.yoctoproject.org/poky-contrib.git)
|
||||
exists for people to stage contributions in, for regular contributors.
|
||||
If people desire such access, please ask on the mailing list. Usually
|
||||
access will be given to anyone with a proven track record of good patches.
|
||||
|
||||
@@ -347,7 +347,6 @@ python do_checkpkg() {
|
||||
f = tempfile.NamedTemporaryFile(delete=False, prefix="%s-1-" % pn)
|
||||
status = internal_fetch_wget(url, d, f)
|
||||
fhtml = f.read()
|
||||
|
||||
if status == "SUCC" and len(fhtml):
|
||||
newver = parse_inter(curver)
|
||||
|
||||
@@ -436,6 +435,10 @@ python do_checkpkg() {
|
||||
else:
|
||||
"""newver still contains a full package name string"""
|
||||
status = re.search("(\d+[\.\-_])*(\d+[0-9a-zA-Z]*)", newver[1]).group()
|
||||
if "_" in status:
|
||||
status = re.sub("_",".",status)
|
||||
elif "-" in status:
|
||||
status = re.sub("-",".",status)
|
||||
elif not len(fhtml):
|
||||
status = "ErrHostNoDir"
|
||||
|
||||
@@ -531,6 +534,12 @@ python do_checkpkg() {
|
||||
|
||||
alturi = bb.encodeurl([type, host, altpath, user, pswd, {}])
|
||||
newver = check_new_version(alturi, curname, d)
|
||||
while(newver == "ErrHostNoDir"):
|
||||
if alturi == "/download":
|
||||
break
|
||||
else:
|
||||
alturi = "/".join(alturi.split("/")[0:-2]) + "/download"
|
||||
newver = check_new_version(alturi, curname, d)
|
||||
if not re.match("Err", newver):
|
||||
pupver = newver
|
||||
if pupver != pcurver:
|
||||
@@ -550,13 +559,38 @@ python do_checkpkg() {
|
||||
gitproto = parm['protocol']
|
||||
else:
|
||||
gitproto = "rsync"
|
||||
|
||||
gitcmd = "git ls-remote %s://%s%s%s HEAD 2>&1" % (gitproto, gituser, host, path)
|
||||
print gitcmd
|
||||
ver = os.popen(gitcmd).read()
|
||||
if ver and re.search("HEAD", ver):
|
||||
pupver = ver.split("\t")[0]
|
||||
if pcurver == pupver:
|
||||
gitcmd = "git ls-remote %s://%s%s%s *tag* 2>&1" % (gitproto, gituser, host, path)
|
||||
gitcmd2 = "git ls-remote %s://%s%s%s HEAD 2>&1" % (gitproto, gituser, host, path)
|
||||
tmp = os.popen(gitcmd).read()
|
||||
tmp2 = os.popen(gitcmd2).read()
|
||||
#This is for those repo have tag like: refs/tags/1.2.2
|
||||
if tmp:
|
||||
tmpline = tmp.split("\n")
|
||||
verflag = 0
|
||||
for line in tmpline:
|
||||
if len(line)==0:
|
||||
break;
|
||||
puptag = line.split("/")[-1]
|
||||
puptag = re.search("[0-9][0-9|\.|_]+[0-9]", puptag)
|
||||
if puptag == None:
|
||||
continue;
|
||||
puptag = puptag.group()
|
||||
puptag = re.sub("_",".",puptag)
|
||||
plocaltag = pversion.split("+")[0]
|
||||
if "git" in plocaltag:
|
||||
plocaltag = plocaltag.split("-")[0]
|
||||
result = bb.utils.vercmp(("0", puptag, ""), ("0", plocaltag, ""))
|
||||
if result > 0:
|
||||
verflag = 1
|
||||
pstatus = "UPADTE"
|
||||
pupver = puptag
|
||||
elif verflag == 0 :
|
||||
pupver = plocaltag
|
||||
pstatus = "MATCH"
|
||||
#This is for those no tag repo
|
||||
elif tmp2:
|
||||
pupver = tmp2.split("\t")[0]
|
||||
if pupver in pversion:
|
||||
pstatus = "MATCH"
|
||||
else:
|
||||
pstatus = "UPDATE"
|
||||
@@ -580,7 +614,7 @@ python do_checkpkg() {
|
||||
for line in svninfo.split("\n"):
|
||||
if re.search("^Last Changed Rev:", line):
|
||||
pupver = line.split(" ")[-1]
|
||||
if pcurver == pupver:
|
||||
if pupver in pversion:
|
||||
pstatus = "MATCH"
|
||||
else:
|
||||
pstatus = "UPDATE"
|
||||
|
||||
@@ -32,58 +32,58 @@ PACKAGEFUNCS += " do_package_qa "
|
||||
def package_qa_get_machine_dict():
|
||||
return {
|
||||
"darwin9" : {
|
||||
"arm" : (40, 0, 0, True, True),
|
||||
"arm" : (40, 0, 0, True, 32),
|
||||
},
|
||||
"linux" : {
|
||||
"arm" : (40, 97, 0, True, True),
|
||||
"armeb": (40, 97, 0, False, True),
|
||||
"powerpc": (20, 0, 0, False, True),
|
||||
"i386": ( 3, 0, 0, True, True),
|
||||
"i486": ( 3, 0, 0, True, True),
|
||||
"i586": ( 3, 0, 0, True, True),
|
||||
"i686": ( 3, 0, 0, True, True),
|
||||
"x86_64": (62, 0, 0, True, False),
|
||||
"ia64": (50, 0, 0, True, False),
|
||||
"alpha": (36902, 0, 0, True, False),
|
||||
"hppa": (15, 3, 0, False, True),
|
||||
"m68k": ( 4, 0, 0, False, True),
|
||||
"mips": ( 8, 0, 0, False, True),
|
||||
"mipsel": ( 8, 0, 0, True, True),
|
||||
"s390": (22, 0, 0, False, True),
|
||||
"sh4": (42, 0, 0, True, True),
|
||||
"sparc": ( 2, 0, 0, False, True),
|
||||
"arm" : (40, 97, 0, True, 32),
|
||||
"armeb": (40, 97, 0, False, 32),
|
||||
"powerpc": (20, 0, 0, False, 32),
|
||||
"i386": ( 3, 0, 0, True, 32),
|
||||
"i486": ( 3, 0, 0, True, 32),
|
||||
"i586": ( 3, 0, 0, True, 32),
|
||||
"i686": ( 3, 0, 0, True, 32),
|
||||
"x86_64": (62, 0, 0, True, 64),
|
||||
"ia64": (50, 0, 0, True, 64),
|
||||
"alpha": (36902, 0, 0, True, 64),
|
||||
"hppa": (15, 3, 0, False, 32),
|
||||
"m68k": ( 4, 0, 0, False, 32),
|
||||
"mips": ( 8, 0, 0, False, 32),
|
||||
"mipsel": ( 8, 0, 0, True, 32),
|
||||
"s390": (22, 0, 0, False, 32),
|
||||
"sh4": (42, 0, 0, True, 32),
|
||||
"sparc": ( 2, 0, 0, False, 32),
|
||||
},
|
||||
"linux-uclibc" : {
|
||||
"arm" : ( 40, 97, 0, True, True),
|
||||
"armeb": ( 40, 97, 0, False, True),
|
||||
"powerpc": ( 20, 0, 0, False, True),
|
||||
"i386": ( 3, 0, 0, True, True),
|
||||
"i486": ( 3, 0, 0, True, True),
|
||||
"i586": ( 3, 0, 0, True, True),
|
||||
"i686": ( 3, 0, 0, True, True),
|
||||
"x86_64": ( 62, 0, 0, True, False),
|
||||
"mips": ( 8, 0, 0, False, True),
|
||||
"mipsel": ( 8, 0, 0, True, True),
|
||||
"avr32": (6317, 0, 0, False, True),
|
||||
"sh4": (42, 0, 0, True, True),
|
||||
"arm" : ( 40, 97, 0, True, 32),
|
||||
"armeb": ( 40, 97, 0, False, 32),
|
||||
"powerpc": ( 20, 0, 0, False, 32),
|
||||
"i386": ( 3, 0, 0, True, 32),
|
||||
"i486": ( 3, 0, 0, True, 32),
|
||||
"i586": ( 3, 0, 0, True, 32),
|
||||
"i686": ( 3, 0, 0, True, 32),
|
||||
"x86_64": ( 62, 0, 0, True, 64),
|
||||
"mips": ( 8, 0, 0, False, 32),
|
||||
"mipsel": ( 8, 0, 0, True, 32),
|
||||
"avr32": (6317, 0, 0, False, 32),
|
||||
"sh4": (42, 0, 0, True, 32),
|
||||
|
||||
},
|
||||
"uclinux-uclibc" : {
|
||||
"bfin": ( 106, 0, 0, True, True),
|
||||
"bfin": ( 106, 0, 0, True, 32),
|
||||
},
|
||||
"linux-gnueabi" : {
|
||||
"arm" : (40, 0, 0, True, True),
|
||||
"armeb" : (40, 0, 0, False, True),
|
||||
"arm" : (40, 0, 0, True, 32),
|
||||
"armeb" : (40, 0, 0, False, 32),
|
||||
},
|
||||
"linux-uclibcgnueabi" : {
|
||||
"arm" : (40, 0, 0, True, True),
|
||||
"armeb" : (40, 0, 0, False, True),
|
||||
"arm" : (40, 0, 0, True, 32),
|
||||
"armeb" : (40, 0, 0, False, 32),
|
||||
},
|
||||
"linux-gnuspe" : {
|
||||
"powerpc": (20, 0, 0, False, True),
|
||||
"powerpc": (20, 0, 0, False, 32),
|
||||
},
|
||||
"linux-uclibcspe" : {
|
||||
"powerpc": (20, 0, 0, False, True),
|
||||
"powerpc": (20, 0, 0, False, 32),
|
||||
},
|
||||
|
||||
}
|
||||
@@ -243,7 +243,7 @@ def package_qa_check_arch(path,name,d, elf):
|
||||
return True
|
||||
|
||||
#if this will throw an exception, then fix the dict above
|
||||
(machine, osabi, abiversion, littleendian, bits32) \
|
||||
(machine, osabi, abiversion, littleendian, bits) \
|
||||
= package_qa_get_machine_dict()[target_os][target_arch]
|
||||
|
||||
# Check the architecture and endiannes of the binary
|
||||
@@ -251,6 +251,10 @@ def package_qa_check_arch(path,name,d, elf):
|
||||
error_msg = "Architecture did not match (%d to %d) on %s" % \
|
||||
(machine, elf.machine(), package_qa_clean_path(path,d))
|
||||
sane = package_qa_handle_error(4, error_msg, name, path, d)
|
||||
elif not bits == elf.abiSize():
|
||||
error_msg = "Bit size did not match (%d to %d) on %s" % \
|
||||
(bits, elf.abiSize(), package_qa_clean_path(path,d))
|
||||
sane = package_qa_handle_error(4, error_msg, name, path, d)
|
||||
elif not littleendian == elf.isLittleEndian():
|
||||
error_msg = "Endiannes did not match (%d to %d) on %s" % \
|
||||
(littleendian, elf.isLittleEndian(), package_qa_clean_path(path,d))
|
||||
@@ -445,14 +449,12 @@ def package_qa_walk(path, funcs, package,d):
|
||||
#if this will throw an exception, then fix the dict above
|
||||
target_os = bb.data.getVar('TARGET_OS', d, True)
|
||||
target_arch = bb.data.getVar('TARGET_ARCH', d, True)
|
||||
(machine, osabi, abiversion, littleendian, bits32) \
|
||||
= package_qa_get_machine_dict()[target_os][target_arch]
|
||||
|
||||
sane = True
|
||||
for root, dirs, files in os.walk(path):
|
||||
for file in files:
|
||||
path = os.path.join(root,file)
|
||||
elf = oe.qa.ELFFile(path, bits32)
|
||||
elf = oe.qa.ELFFile(path)
|
||||
try:
|
||||
elf.open()
|
||||
except:
|
||||
|
||||
@@ -202,7 +202,7 @@ do_menuconfig() {
|
||||
export DBUS_SESSION_BUS_ADDRESS='${DBUS_SESSION_BUS_ADDRESS}'
|
||||
export XAUTHORITY='${XAUTHORITY}'
|
||||
export TERMWINDOWTITLE="${PN} Kernel Configuration"
|
||||
export SHELLCMDS="bash make menuconfig"
|
||||
export SHELLCMDS="make menuconfig"
|
||||
${TERMCMDRUN}
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Fatal: '${TERMCMD}' not found. Check TERMCMD variable."
|
||||
|
||||
@@ -3,6 +3,13 @@ DEPENDS += "virtual/kernel"
|
||||
|
||||
inherit module-base
|
||||
|
||||
# Ensure the hostprogs are available for module compilation
|
||||
module_do_compile_prepend() {
|
||||
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
|
||||
oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
|
||||
-C ${STAGING_KERNEL_DIR} scripts
|
||||
}
|
||||
|
||||
module_do_compile() {
|
||||
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
|
||||
oe_runmake KERNEL_PATH=${STAGING_KERNEL_DIR} \
|
||||
@@ -15,7 +22,10 @@ module_do_compile() {
|
||||
|
||||
module_do_install() {
|
||||
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
|
||||
oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" CC="${KERNEL_CC}" LD="${KERNEL_LD}" modules_install
|
||||
oe_runmake DEPMOD=echo INSTALL_MOD_PATH="${D}" \
|
||||
KERNEL_SRC=${STAGING_KERNEL_DIR} \
|
||||
CC="${KERNEL_CC}" LD="${KERNEL_LD}" \
|
||||
modules_install
|
||||
}
|
||||
|
||||
pkg_postinst_append () {
|
||||
|
||||
@@ -5,6 +5,7 @@ rpmlibdir = "/var/lib/rpm"
|
||||
RPMOPTS="--dbpath ${rpmlibdir} --define='_openall_before_chroot 1'"
|
||||
RPM="rpm ${RPMOPTS}"
|
||||
|
||||
do_populate_sdk[lockfiles] += "${DEPLOY_DIR_RPM}/rpm.lock"
|
||||
|
||||
populate_sdk_post_rpm () {
|
||||
|
||||
|
||||
@@ -170,10 +170,12 @@ def check_sanity(e):
|
||||
# This path is no longer user-readable in modern (very recent) Linux
|
||||
try:
|
||||
if os.path.exists("/proc/sys/vm/mmap_min_addr"):
|
||||
f = file("/proc/sys/vm/mmap_min_addr", "r")
|
||||
if (f.read().strip() != "0"):
|
||||
messages = messages + "/proc/sys/vm/mmap_min_addr is not 0. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 0 in /etc/sysctl.conf.\n"
|
||||
f.close()
|
||||
f = open("/proc/sys/vm/mmap_min_addr", "r")
|
||||
try:
|
||||
if (int(f.read().strip()) < 65536):
|
||||
messages = messages + "/proc/sys/vm/mmap_min_addr is not >= 65536. This will cause problems with qemu so please fix the value (as root).\n\nTo fix this in later reboots, set vm.mmap_min_addr = 65536 in /etc/sysctl.conf.\n"
|
||||
finally:
|
||||
f.close()
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -211,7 +213,7 @@ def check_sanity(e):
|
||||
nolibs = data.getVar('NO32LIBS', e.data, True)
|
||||
if not nolibs:
|
||||
lib32path = '/lib'
|
||||
if os.path.exists('/lib64') and os.path.islink('/lib64'):
|
||||
if os.path.exists('/lib64') and ( os.path.islink('/lib64') or os.path.islink('/lib') ):
|
||||
lib32path = '/lib32'
|
||||
|
||||
if os.path.exists('%s/libc.so.6' % lib32path) and not os.path.exists('/usr/include/gnu/stubs-32.h'):
|
||||
|
||||
@@ -354,7 +354,7 @@ def pstaging_fetch(sstatepkg, d):
|
||||
# Try a fetch from the sstate mirror, if it fails just return and
|
||||
# we will build the package
|
||||
try:
|
||||
fetcher = bb.fetch2.Fetch([srcuri], localdata)
|
||||
fetcher = bb.fetch2.Fetch([srcuri], localdata, cache=False)
|
||||
fetcher.download()
|
||||
|
||||
# Need to optimise this, if using file:// urls, the fetcher just changes the local path
|
||||
|
||||
@@ -24,6 +24,7 @@ toolchain_create_sdk_env_script () {
|
||||
fi
|
||||
echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script
|
||||
echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=${SDKTARGETSYSROOT}"' >> $script
|
||||
echo 'export LDFLAGS="--sysroot=${SDKTARGETSYSROOT}"' >> $script
|
||||
echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script
|
||||
echo 'export POKY_TARGET_SYSROOT="${SDKTARGETSYSROOT}"' >> $script
|
||||
echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
|
||||
@@ -83,6 +84,7 @@ toolchain_create_sdk_env_script_for_installer () {
|
||||
fi
|
||||
echo 'export CFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script
|
||||
echo 'export CXXFLAGS="${TARGET_CC_ARCH} --sysroot=##SDKTARGETSYSROOT##"' >> $script
|
||||
echo 'export LDFLAGS="--sysroot=##SDKTARGETSYSROOT##"' >> $script
|
||||
echo 'export POKY_NATIVE_SYSROOT="${SDKPATHNATIVE}"' >> $script
|
||||
echo 'export POKY_TARGET_SYSROOT="##SDKTARGETSYSROOT##"' >> $script
|
||||
echo 'export POKY_DISTRO_VERSION="${DISTRO_VERSION}"' >> $script
|
||||
|
||||
@@ -2590,11 +2590,11 @@ RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-libmusicbrainz="2 years"
|
||||
RECIPE_LAST_UPDATE_pn-libmusicbrainz = "Nov 16, 2010"
|
||||
RECIPE_MAINTAINER_pn-libmusicbrainz = "Dongxiao Xu <dongxiao.xu@intel.com>"
|
||||
|
||||
RECIPE_STATUS_pn-clutter-gst-1.0 = "red"
|
||||
DISTRO_PN_ALIAS_pn-clutter-gst-1.0 = "OpenSuSE=clutter-gst Debian=clutter-gst"
|
||||
RECIPE_LATEST_VERSION_pn-clutter-gst-1.0 = "0.11.0+git0+d48c6fc67b48304f90e51b520631c1ecc10410af"
|
||||
RECIPE_LAST_UPDATE_pn-clutter-gst = "Feb 4, 2010"
|
||||
RECIPE_MAINTAINER_pn-clutter-gst-1.0 = "Dongxiao Xu <dongxiao.xu@intel.com>"
|
||||
RECIPE_STATUS_pn-clutter-gst-1.4 = "red"
|
||||
DISTRO_PN_ALIAS_pn-clutter-gst-1.4 = "OpenSuSE=clutter-gst Debian=clutter-gst"
|
||||
RECIPE_LATEST_VERSION_pn-clutter-gst-1.4 = "0.11.0+git0+d48c6fc67b48304f90e51b520631c1ecc10410af"
|
||||
RECIPE_LAST_UPDATE_pn-clutter-gst-1.4 = "Feb 4, 2010"
|
||||
RECIPE_MAINTAINER_pn-clutter-gst-1.4 = "Dongxiao Xu <dongxiao.xu@intel.com>"
|
||||
|
||||
RECIPE_STATUS_pn-farsight2 = "red"
|
||||
RECIPE_LATEST_VERSION_pn-farsight2 = "0.0.20"
|
||||
@@ -5216,10 +5216,10 @@ RECIPE_STATUS_pn-clutter-box2d = "red"
|
||||
RECIPE_LATEST_VERSION_pn-clutter-box2d = "0.10.0"
|
||||
RECIPE_MAINTAINER_pn-clutter-box2d = "Edwin Zhai <edwin.zhai@intel.com>"
|
||||
|
||||
RECIPE_STATUS_pn-clutter-gtk-1.0 = "red"
|
||||
DISTRO_PN_ALIAS_pn-clutter-gtk-1.0 = "Fedora=clutter-gtk OpenSuSE=clutter-gtk Ubuntu=clutter-gtk-0.10 Mandriva=clutter-gtk Debian=clutter-gtk"
|
||||
RECIPE_LATEST_VERSION_pn-clutter-gtk-1.0 = "0.90.0+git0+e8d828ba1d87937baa571e68fdff22f3e2d79ca8"
|
||||
RECIPE_MAINTAINER_pn-clutter-gtk-1.0 = "Edwin Zhai <edwin.zhai@intel.com>"
|
||||
RECIPE_STATUS_pn-clutter-gtk-1.4 = "red"
|
||||
DISTRO_PN_ALIAS_pn-clutter-gtk-1.4 = "Fedora=clutter-gtk OpenSuSE=clutter-gtk Ubuntu=clutter-gtk-0.10 Mandriva=clutter-gtk Debian=clutter-gtk"
|
||||
RECIPE_LATEST_VERSION_pn-clutter-gtk-1.4 = "0.90.0+git0+e8d828ba1d87937baa571e68fdff22f3e2d79ca8"
|
||||
RECIPE_MAINTAINER_pn-clutter-gtk-1.4 = "Edwin Zhai <edwin.zhai@intel.com>"
|
||||
|
||||
RECIPE_STATUS_pn-tidy = "red"
|
||||
RECIPE_LATEST_VERSION_pn-tidy = "0.1.0+git0+e25416e1293e1074bfa6727c80527dcff5b1f3cb"
|
||||
@@ -5236,14 +5236,14 @@ RECIPE_LATEST_VERSION_pn-libgalago = "0.5.2"
|
||||
RECIPE_LAST_UPDATE_pn-libgalago = "Apr 11, 2007"
|
||||
RECIPE_MAINTAINER_pn-libgalago = "Edwin Zhai <edwin.zhai@intel.com>"
|
||||
|
||||
RECIPE_STATUS_pn-clutter-1.0 = "red"
|
||||
DISTRO_PN_ALIAS_pn-clutter-1.0 = "Fedora=clutter OpenSuse=clutter Ubuntu=clutter-1.0 Mandriva=clutter Debian=clutter"
|
||||
RECIPE_LATEST_VERSION_pn-clutter-1.0 = "1.0+git0+ce5025d0a2b701541ca9343686f9dac858905da4"
|
||||
RECIPE_LAST_UPDATE_pn-clutter-1.0 = "Jan 29, 2010"
|
||||
RECIPE_MAINTAINER_pn-clutter-1.0 = "Edwin Zhai <edwin.zhai@intel.com>"
|
||||
RECIPE_STATUS_pn-clutter-1.4 = "red"
|
||||
DISTRO_PN_ALIAS_pn-clutter-1.4 = "Fedora=clutter OpenSuse=clutter Ubuntu=clutter-1.0 Mandriva=clutter Debian=clutter"
|
||||
RECIPE_LATEST_VERSION_pn-clutter-1.4 = "1.0+git0+ce5025d0a2b701541ca9343686f9dac858905da4"
|
||||
RECIPE_LAST_UPDATE_pn-clutter-1.4 = "Jan 29, 2010"
|
||||
RECIPE_MAINTAINER_pn-clutter-1.4 = "Edwin Zhai <edwin.zhai@intel.com>"
|
||||
|
||||
RECIPE_STATUS_pn-clutter = "red"
|
||||
DISTRO_PN_ALIAS_pn-clutter-gtk-1.0 = "Fedora=clutter-gtk OpenSuSE=clutter-gtk Ubuntu=clutter-gtk-0.10 Mandriva=clutter-gtk Debian=clutter-gtk"
|
||||
DISTRO_PN_ALIAS_pn-clutter = "Fedora=clutter-gtk OpenSuSE=clutter-gtk Ubuntu=clutter-gtk-0.10 Mandriva=clutter-gtk Debian=clutter-gtk"
|
||||
RECIPE_LATEST_VERSION_pn-clutter = "1.2.8"
|
||||
RECIPE_MAINTAINER_pn-clutter = "Edwin Zhai <edwin.zhai@intel.com>"
|
||||
|
||||
@@ -5468,12 +5468,11 @@ RECIPE_STATUS_pn-swabber = "red"
|
||||
RECIPE_STATUS_pn-mc = "red"
|
||||
RECIPE_STATUS_pn-man = "red"
|
||||
RECIPE_STATUS_pn-man-pages = "red"
|
||||
RECIPE_STATUS_pn-gthumb = "red"
|
||||
RECIPE_STATUS_pn-guilt-native = "red"
|
||||
RECIPE_STATUS_pn-icon-naming-utils = "red"
|
||||
RECIPE_STATUS_pn-groff = "red"
|
||||
RECIPE_LATEST_VERSION_pn-groff = "1.21"
|
||||
RECIPE_NO_UPDATE_REASON_pn-texinfo = "1.18.1.4 is latest GPLv2 Version no 1.21"
|
||||
RECIPE_NO_UPDATE_REASON_pn-groff = "1.18.1.4 is latest GPLv2 Version no 1.21"
|
||||
|
||||
RECIPE_STATUS_pn-eglibc = "red"
|
||||
|
||||
@@ -5489,8 +5488,10 @@ RECIPE_LATEST_RELEASE_DATE_pn-lighttpd = "08/2010"
|
||||
RECIPE_COMMENTS_pn-lighttpd = ""
|
||||
|
||||
RECIPE_LATEST_VERSION_pn-adt-installer = "1.0"
|
||||
RECIPE_MANUAL_CHECK_DATE_adt-installer-mpeg2dec = "Jan 17, 2011"
|
||||
RECIPE_MANUAL_CHECK_DATE_adt-installer = "Jan 17, 2011"
|
||||
DISTRO_PN_ALIAS_pn-adt-installer = "Intel"
|
||||
RECIPE_LATEST_VERSION_pn-glew = "1.5.7"
|
||||
RECIPE_MANUAL_CHECK_DATE_pn-glew = "Feb 28, 2011"
|
||||
RECIPE_LATEST_VERSION_pn-mpeg2dec = "0.4.1"
|
||||
RECIPE_MANUAL_CHECK_DATE_pn-mpeg2dec = "Jan 17, 2011"
|
||||
RECIPE_LATEST_VERSION_pn-lame = "3.98.4"
|
||||
@@ -5505,7 +5506,9 @@ RECIPE_LATEST_VERSION_pn-libxml-simple-perl = "2.18"
|
||||
RECIPE_LATEST_VERSION_pn-talloc = "2.0.5"
|
||||
RECIPE_LATEST_VERSION_pn-mesa-demos = "8.0.1"
|
||||
RECIPE_LATEST_VERSION_pn-libtool-cross = "2.4"
|
||||
RECIPE_STATUS_pn-gthumb = "red"
|
||||
RECIPE_LATEST_VERSION_pn-gthumb = "2.12.2"
|
||||
|
||||
RECIPE_LATEST_VERSION_pn-libtheora = "1.2.0"
|
||||
RECIPE_NO_UPDATE_REASON_pn-libtheora = "1.1.1 is latest stable release not 1.2.0alpha1"
|
||||
|
||||
@@ -5520,6 +5523,8 @@ RECIPE_LATEST_VERSION_pn-sysprof = "6b5b8432711ef5c747f8375073cd9af88922d3c6"
|
||||
RECIPE_LATEST_VERSION_pn-table = "d42a44938699ee30a998fc42bc149aebf69389db"
|
||||
RECIPE_LATEST_VERSION_pn-texinfo = "4.13a"
|
||||
RECIPE_NO_UPDATE_REASON_pn-texinfo = "Checking script parse directory wrong"
|
||||
RECIPE_MANUAL_CHECK_DATE_pn-texinfo = "Feb 28, 2011"
|
||||
|
||||
RECIPE_LATEST_VERSION_pn-yaffs2-utils = "HEAD"
|
||||
RECIPE_LATEST_VERSION_pn-blktrace = "a788dfde86dfaff8f1c277a233f92c1822e06b76"
|
||||
RECIPE_LATEST_VERSION_pn-dtc = "37c0b6a0916c31a5eae0a9ddfcc5d0b8fb4569c6"
|
||||
@@ -5598,3 +5603,31 @@ RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-docbook-utils = "1 month"
|
||||
RECIPE_COMMENTS_pn-docbook-utils = ""
|
||||
RECIPE_LAST_UPDATE_pn-docbook-utils = "Jan 26, 2011"
|
||||
RECIPE_MAINTAINER_pn-docbook-utils = "Scott Garman <scott.a.garman@intel.com>"
|
||||
|
||||
RECIPE_LATEST_VERSION_pn-task-qte-toolchain-target = "1.0"
|
||||
RECIPE_MANUAL_CHECK_DATE_pn-task-qte-toolchain-target = "Feb 28, 2011"
|
||||
DISTRO_PN_ALIAS_pn-task-qte-toolchain-target = "Intel"
|
||||
RECIPE_LATEST_VERSION_pn-mailx = "12.4"
|
||||
RECIPE_MANUAL_CHECK_DATE_pn-mailx = "Feb 28, 2011"
|
||||
RECIPE_LATEST_VERSION_pn-libgcc = "4.5.1"
|
||||
RECIPE_MANUAL_CHECK_DATE_pn-libgcc = "Feb 28, 2011"
|
||||
|
||||
RECIPE_STATUS_pn-transfig = "green"
|
||||
RECIPE_DEPENDENCY_CHECK_pn-transfig = "not done"
|
||||
RECIPE_LATEST_VERSION_pn-transfig = "3.2.5d"
|
||||
RECIPE_NO_OF_PATCHES_pn-transfig = "0"
|
||||
RECIPE_LATEST_RELEASE_DATE_pn-transfig = "2010/07/23"
|
||||
RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-transfig = "1 year"
|
||||
RECIPE_COMMENTS_pn-transfig = ""
|
||||
RECIPE_LAST_UPDATE_pn-transfig = "Feb 9, 2011"
|
||||
RECIPE_MAINTAINER_pn-transfig = "Scott Garman <scott.a.garman@intel.com>"
|
||||
|
||||
RECIPE_STATUS_pn-linuxdoc-tools = "green"
|
||||
RECIPE_DEPENDENCY_CHECK_pn-linuxdoc-tools = "not done"
|
||||
RECIPE_LATEST_VERSION_pn-linuxdoc-tools = "0.9.66"
|
||||
RECIPE_NO_OF_PATCHES_pn-linuxdoc-tools = "3"
|
||||
RECIPE_LATEST_RELEASE_DATE_pn-linuxdoc-tools = "unknown"
|
||||
RECIPE_TIME_BETWEEN_LAST_TWO_RELEASES_pn-linuxdoc-tools = "unknown"
|
||||
RECIPE_COMMENTS_pn-linuxdoc-tools = ""
|
||||
RECIPE_LAST_UPDATE_pn-linuxdoc-tools = "Feb 25, 2011"
|
||||
RECIPE_MAINTAINER_pn-linuxdoc-tools = "Scott Garman <scott.a.garman@intel.com>"
|
||||
|
||||
@@ -109,7 +109,7 @@ SRCREV_machine_pn-linux-yocto_routerstationpro ?= "17dedeb17887eb398743b04615302
|
||||
SRCREV_machine_pn-linux-yocto_mpc8315e-rdb ?= "6117f19403ccd5c288ce553def432925296a28b7"
|
||||
SRCREV_machine_pn-linux-yocto_beagleboard ?= "2b412826bbeb4a16abe2ea74f2456ab880c6e3c1"
|
||||
SRCREV_machine_pn-linux-yocto ?= "2b412826bbeb4a16abe2ea74f2456ab880c6e3c1"
|
||||
SRCREV_meta_pn-linux-yocto ?= "e2737075b79e4fc682e41051cf1c0bc47a47d502"
|
||||
SRCREV_meta_pn-linux-yocto ?= "212cae404e57ff9dc58c808035770d51325c3512"
|
||||
SRCREV_pn-linux-libc-headers-yocto ??= "2b412826bbeb4a16abe2ea74f2456ab880c6e3c1"
|
||||
SRCREV_pn-matchbox-config-gtk ??= "3ed74dfb7c57be088a5ab36e446c0ccde9fa1028"
|
||||
SRCREV_pn-matchbox-desktop-sato ??= "76"
|
||||
@@ -140,6 +140,7 @@ OPKGSRCREV = "596"
|
||||
SRCREV_pn-opkg ??= "${OPKGSRCREV}"
|
||||
SRCREV_pn-opkg-native ??= "${OPKGSRCREV}"
|
||||
SRCREV_pn-opkg-nativesdk ??= "${OPKGSRCREV}"
|
||||
SRCREV_pn-adt-installer ??= "${OPKGSRCREV}"
|
||||
SRCREV_pn-opkg-nogpg ??= "${OPKGSRCREV}"
|
||||
SRCREV_pn-opkg-nogpg-native ??= "${OPKGSRCREV}"
|
||||
SRCREV_pn-opkg-nogpg-nativesdk ??= "${OPKGSRCREV}"
|
||||
|
||||
@@ -19,7 +19,7 @@ GCCVERSION ?= "4.5.1"
|
||||
SDKGCCVERSION ?= "4.5.1"
|
||||
BINUVERSION ?= "2.21"
|
||||
GLIBCVERSION ?= "2.10.1"
|
||||
LINUXLIBCVERSION ?= "2.6.36"
|
||||
LINUXLIBCVERSION ?= "2.6.37.2"
|
||||
|
||||
# Temporary preferred version overrides for PPC
|
||||
PREFERRED_VERSION_u-boot-mkimage-native_powerpc ?= "2009.08"
|
||||
|
||||
@@ -52,7 +52,7 @@ def copytree(src, dst):
|
||||
# If dst already has contents performance can be 15 time slower
|
||||
# This way we also preserve hardlinks between files in the tree.
|
||||
|
||||
bb.mkdirhier(dst)
|
||||
bb.utils.mkdirhier(dst)
|
||||
cmd = 'tar -cf - -C %s -ps . | tar -xf - -C %s' % (src, dst)
|
||||
check_output(cmd, shell=True, stderr=subprocess.STDOUT)
|
||||
|
||||
|
||||
@@ -25,9 +25,9 @@ class ELFFile:
|
||||
#print "'%x','%x' %s" % (ord(expectation), ord(result), self.name)
|
||||
raise Exception("This does not work as expected")
|
||||
|
||||
def __init__(self, name, bits32):
|
||||
def __init__(self, name, bits = 0):
|
||||
self.name = name
|
||||
self.bits32 = bits32
|
||||
self.bits = bits
|
||||
|
||||
def open(self):
|
||||
self.file = file(self.name, "r")
|
||||
@@ -38,10 +38,20 @@ class ELFFile:
|
||||
self.my_assert(self.data[1], 'E')
|
||||
self.my_assert(self.data[2], 'L')
|
||||
self.my_assert(self.data[3], 'F')
|
||||
if self.bits32 :
|
||||
if self.bits == 0:
|
||||
if self.data[ELFFile.EI_CLASS] == chr(ELFFile.ELFCLASS32):
|
||||
self.bits = 32
|
||||
elif self.data[ELFFile.EI_CLASS] == chr(ELFFile.ELFCLASS64):
|
||||
self.bits = 64
|
||||
else:
|
||||
# Not 32-bit or 64.. lets assert
|
||||
raise Exception("ELF but not 32 or 64 bit.")
|
||||
elif self.bits == 32:
|
||||
self.my_assert(self.data[ELFFile.EI_CLASS], chr(ELFFile.ELFCLASS32))
|
||||
else:
|
||||
elif self.bits == 64:
|
||||
self.my_assert(self.data[ELFFile.EI_CLASS], chr(ELFFile.ELFCLASS64))
|
||||
else:
|
||||
raise Exception("Must specify unknown, 32 or 64 bit size.")
|
||||
self.my_assert(self.data[ELFFile.EI_VERSION], chr(ELFFile.EV_CURRENT) )
|
||||
|
||||
self.sex = self.data[ELFFile.EI_DATA]
|
||||
@@ -60,6 +70,9 @@ class ELFFile:
|
||||
def abiVersion(self):
|
||||
return ord(self.data[ELFFile.EI_ABIVERSION])
|
||||
|
||||
def abiSize(self):
|
||||
return self.bits
|
||||
|
||||
def isLittleEndian(self):
|
||||
return self.sex == "<"
|
||||
|
||||
|
||||
@@ -31,8 +31,3 @@ do_deploy () {
|
||||
ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
|
||||
}
|
||||
addtask deploy before do_build after do_compile
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 755 tools/mkimage ${D}${bindir}/
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \
|
||||
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-git/${MACHINE}"
|
||||
|
||||
PV = "v2010.12+${PR}+git${SRCPV}"
|
||||
PR="r0"
|
||||
PR="r1"
|
||||
|
||||
SRC_URI = "git://git.denx.de/u-boot.git;branch=master;protocol=git"
|
||||
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
Some platform (like atom-pc) enables rootless X,
|
||||
thus we need to add the xuser in the list.
|
||||
|
||||
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
|
||||
|
||||
diff -ruN connman-0.65-orig/src/connman-dbus.conf connman-0.65/src/connman-dbus.conf
|
||||
--- connman-0.65-orig/src/connman-dbus.conf 2011-03-04 09:34:49.000000000 +0800
|
||||
+++ connman-0.65/src/connman-dbus.conf 2011-03-04 09:35:21.000000000 +0800
|
||||
@@ -7,6 +7,12 @@
|
||||
<allow send_interface="net.connman.Agent"/>
|
||||
<allow send_interface="net.connman.Counter"/>
|
||||
</policy>
|
||||
+ <policy user="xuser">
|
||||
+ <allow own="net.connman"/>
|
||||
+ <allow send_destination="net.connman"/>
|
||||
+ <allow send_interface="net.connman.Agent"/>
|
||||
+ <allow send_interface="net.connman.Counter"/>
|
||||
+ </policy>
|
||||
<policy at_console="true">
|
||||
<allow send_destination="net.connman"/>
|
||||
</policy>
|
||||
@@ -1,5 +1,5 @@
|
||||
require connman.inc
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
EXTRA_OECONF += "\
|
||||
ac_cv_path_WPASUPPLICANT=/usr/sbin/wpa_supplicant \
|
||||
@@ -21,6 +21,7 @@ EXTRA_OECONF += "\
|
||||
SRC_URI = "\
|
||||
http://www.kernel.org/pub/linux/network/connman/connman-${PV}.tar.gz \
|
||||
file://fix-shutdown-ap-disconnect.patch \
|
||||
file://add_xuser_dbus_permission.patch \
|
||||
file://connman \
|
||||
"
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ DESCRIPTION = "Package of environment files for SDK"
|
||||
LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${POKYBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
LICENSE = "MIT"
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
EXCLUDE_FROM_WORLD = "1"
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
DESCRIPTION = "Meta package for building a installable toolchain"
|
||||
LICENSE = "MIT"
|
||||
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
LIC_FILES_CHKSUM = "file://${POKYBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
|
||||
file://${POKYBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
||||
|
||||
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://ncurses/base/version.c;beginline=1;endline=27;md5=cbc
|
||||
SECTION = "libs"
|
||||
PATCHDATE = "20100501"
|
||||
PKGV = "${PV}+${PATCHDATE}"
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
DEPENDS = "ncurses-native"
|
||||
DEPENDS_virtclass-native = ""
|
||||
@@ -15,11 +15,14 @@ inherit autotools binconfig
|
||||
SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz;name=tarball \
|
||||
ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-20100424-patch.sh.bz2;apply=yes;name=p20100424sh \
|
||||
\
|
||||
ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-${PATCHDATE}.patch.gz;name=p20100501 \
|
||||
http://autobuilder.yoctoproject.org/sources/ncurses-5.7-${PATCHDATE}.patch.gz;name=p20100501 \
|
||||
file://tic-hang.patch \
|
||||
file://config.cache \
|
||||
"
|
||||
|
||||
|
||||
# ftp://invisible-island.net/ncurses/5.7/ncurses-5.7-${PATCHDATE}.patch.gz;name=p20100501
|
||||
|
||||
SRC_URI[tarball.md5sum] = "cce05daf61a64501ef6cd8da1f727ec6"
|
||||
SRC_URI[tarball.sha256sum] = "0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4"
|
||||
SRC_URI[p20100424sh.md5sum] = "3a5f76613f0f7ec3e0e73b835bc24864"
|
||||
|
||||
@@ -30,7 +30,7 @@ SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/util-linux-ng/v${MAJOR_VERSION}/u
|
||||
PACKAGES =+ "util-linux-fdisk util-linux-cfdisk util-linux-sfdisk util-linux-swaponoff \
|
||||
util-linux-losetup util-linux-umount util-linux-mount util-linux-readprofile \
|
||||
util-linux-libblkid util-linux-libblkid-dev util-linux-libuuid util-linux-libuuid-dev \
|
||||
util-linux-lscpu \
|
||||
util-linux-lscpu util-linux-uuidgen \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}/util-linux-ng-${PV}"
|
||||
@@ -50,6 +50,7 @@ FILES_util-linux-mount = "${base_bindir}/mount.${PN}"
|
||||
FILES_util-linux-umount = "${base_bindir}/umount.${PN}"
|
||||
FILES_util-linux-readprofile = "${base_sbindir}/readprofile"
|
||||
FILES_util-linux-lscpu = "${bindir}/lscpu"
|
||||
FILES_util-linux-uuidgen = "${bindir}/uuidgen"
|
||||
|
||||
FILES_util-linux-libblkid = "${libdir}/libblkid.so.*"
|
||||
FILES_util-linux-libblkid-dev = "${libdir}/libblkid.so ${libdir}/libblkid.a ${libdir}/libblkid.la ${includedir}/blkid"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
MAJOR_VERSION = "2.17"
|
||||
require util-linux.inc
|
||||
PR = "r5"
|
||||
PR = "r6"
|
||||
|
||||
SRC_URI += "file://uclibc-compile.patch \
|
||||
file://util-linux-ng-replace-siginterrupt.patch \
|
||||
|
||||
@@ -4,7 +4,7 @@ SECTION = "base"
|
||||
LICENSE = "GPLv2 with exceptions"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3\
|
||||
file://EXCEPTION;md5=570adcb0c1218ab57f2249c67d0ce417"
|
||||
DEPENDS = "libtool zlib"
|
||||
DEPENDS = "libtool bzip2 zlib"
|
||||
|
||||
PR = "r1"
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
require gcc-cross_${PV}.bb
|
||||
require gcc-cross-initial.inc
|
||||
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
|
||||
@@ -35,7 +35,8 @@ do_install () {
|
||||
rm -rf ${D}${datadir}/
|
||||
|
||||
# We use libiberty from binutils
|
||||
rm -f ${D}${exec_prefix}/lib/lib/libiberty.a
|
||||
find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
|
||||
find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
|
||||
|
||||
# Insert symlinks into libexec so when tools without a prefix are searched for, the correct ones are
|
||||
# found. These need to be relative paths so they work in different locations.
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require gcc-cross_${PV}.bb
|
||||
require gcc-cross-intermediate.inc
|
||||
PR = "r3"
|
||||
PR = "r4"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
require gcc-${PV}.inc
|
||||
require gcc-cross4.inc
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require gcc-cross-initial_${PV}.bb
|
||||
require gcc-crosssdk-initial.inc
|
||||
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require gcc-cross-intermediate_${PV}.bb
|
||||
require gcc-crosssdk-intermediate.inc
|
||||
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
require gcc-cross_${PV}.bb
|
||||
require gcc-crosssdk.inc
|
||||
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
|
||||
@@ -27,6 +27,10 @@ do_install () {
|
||||
rm -rf ${D}${STAGING_DIR_NATIVE}${prefix_native}/$d
|
||||
done
|
||||
|
||||
# We use libiberty from binutils
|
||||
find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
|
||||
find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
|
||||
|
||||
# gcc-runtime installs libgcc into a special location in staging since it breaks doing a standalone build
|
||||
if [ "${PN}" == "gcc-cross" -o "${PN}" == "gcc-crosssdk" ]; then
|
||||
dest=${D}/${includedir}/gcc-build-internal-${MULTIMACH_TARGET_SYS}
|
||||
|
||||
@@ -86,6 +86,10 @@ do_install () {
|
||||
# We don't care about the gcc-<version> ones for this
|
||||
rm -f *gcc-?.?*
|
||||
|
||||
# We use libiberty from binutils
|
||||
find -name libiberty.a ${D}${exec_prefix}/lib | xargs rm -f
|
||||
find -name libiberty.h ${D}${exec_prefix}/lib | xargs rm -f
|
||||
|
||||
# Symlinks so we can use these trivially on the target
|
||||
ln -sf ${TARGET_SYS}-g77 g77 || true
|
||||
ln -sf ${TARGET_SYS}-gfortran gfortran || true
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
PR = "r2"
|
||||
PR = "r3"
|
||||
require gcc-${PV}.inc
|
||||
require gcc-configure-target.inc
|
||||
require gcc-package-target.inc
|
||||
|
||||
@@ -152,7 +152,7 @@ if [ ! -x "$LOCAL_OPKG_LOC/bin/opkg-cl" ]; then
|
||||
rm -rf $LOCAL_OPKG_LOC
|
||||
fi
|
||||
|
||||
parent_folder=`eval echo $PWD`
|
||||
parent_folder=`pwd`
|
||||
cd $LOCAL_OPKG_FOLDER
|
||||
check_result
|
||||
|
||||
@@ -170,7 +170,7 @@ if [ ! -x "$LOCAL_OPKG_LOC/bin/opkg-cl" ]; then
|
||||
check_result
|
||||
|
||||
echo_info "Configure opkg ...\n"
|
||||
./configure --prefix=$parent_folder/$LOCAL_OPKG_LOC --with-opkglibdir=$OPKG_LIBDIR --disable-curl --disable-ssl-curl --disable-gpg --disable-shave >> $parent_folder/$YOCTOADT_INSTALL_LOG_FILE
|
||||
./autogen.sh --prefix=$parent_folder/$LOCAL_OPKG_LOC --with-opkglibdir=$OPKG_LIBDIR --disable-curl --disable-ssl-curl --disable-gpg --disable-shave >> $parent_folder/$YOCTOADT_INSTALL_LOG_FILE
|
||||
check_result
|
||||
|
||||
echo_info "Make opkg ...\n"
|
||||
@@ -216,17 +216,18 @@ done
|
||||
|
||||
download_file()
|
||||
{
|
||||
if [ -f "$LOCAL_DOWNLOAD/$1" ]; then
|
||||
confirm_download $1
|
||||
local filename=`echo ${1##*/}`
|
||||
if [ -f "$LOCAL_DOWNLOAD/$filename" ]; then
|
||||
confirm_download $filename
|
||||
result="$?"
|
||||
if [ ! "$result" == "0" ]; then
|
||||
return
|
||||
else
|
||||
echo "Removing old file [$1]"
|
||||
rm -rf "$LOCAL_DOWNLOAD/$1"
|
||||
rm -rf "$LOCAL_DOWNLOAD/$filename"
|
||||
fi
|
||||
fi
|
||||
echo_info "Downloading file: $1..."
|
||||
echo_info "Downloading file: $filename..."
|
||||
wget "$YOCTOADT_IPKG_REPO/$1" -P $LOCAL_DOWNLOAD --progress=bar:force 2>&1 | tee -a "$YOCTOADT_INSTALL_LOG_FILE"
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ YOCTOADT_NFS_UTIL="Y"
|
||||
#YOCTOADT_METADATA="Y"
|
||||
|
||||
#The followings are for setting up specific target architecture
|
||||
#YOCTOADT_ROOTFS_$arch is for specifying what root filesystem image files you want to download from the repository. The valid values to replace $arch are: arm, x86, x86_64, powerpc, mips. The valid image files are: minimal, sato, sdk and lsb. If you want to download multiple images, the entries are space separated
|
||||
YOCTOADT_ROOTFS_arm="minimal sato"
|
||||
#YOCTOADT_ROOTFS_$arch is for specifying what root filesystem image files you want to download from the repository. The valid values to replace $arch are: arm, x86, x86_64, powerpc, mips. The valid image files are: minimal, minimal-dev, sato, sato-dev, sato-sdk,lsb, lsb-dev, lsb-sdk. If you want to download multiple images, the entries are space separated
|
||||
YOCTOADT_ROOTFS_arm="minimal sato-sdk"
|
||||
#Specify which root filesystem file to use to extract as target sysroot. Please ensure the entry is in the list of downloaded root filesystem files that specified above in YOCTOADT_ROOTFS_$arch
|
||||
YOCTOADT_TARGET_SYSROOT_IMAGE_arm="minimal"
|
||||
#The location where the target sysroot will be setup
|
||||
YOCTOADT_TARGET_SYSROOT_LOC_arm="$HOME/test-yocto/arm"
|
||||
|
||||
#Here's another example for setting up target arch of x86, by uncommenting it will trigger the installer to download and setup 2 sysroot environment for 2 target arches: arm and x86. If you want to add more target arch support, you can append more entries by following these samples
|
||||
#YOCTOADT_ROOTFS_x86="sdk"
|
||||
#YOCTOADT_TARGET_SYSROOT_IMAGE_x86="sdk"
|
||||
#YOCTOADT_ROOTFS_x86="sato-sdk"
|
||||
#YOCTOADT_TARGET_SYSROOT_IMAGE_x86="sato-sdk"
|
||||
#YOCTOADT_TARGET_SYSROOT_LOC_x86="$HOME/test-yocto/x86"
|
||||
|
||||
@@ -2,5 +2,4 @@ arch all 1
|
||||
arch any 6
|
||||
arch noarch 11
|
||||
arch i686-nativesdk 16
|
||||
src yp http://adtrepo.yoctoproject.org/1.0/adt-ipk
|
||||
src yp-i686-nativesdk http://adtrepo.yoctoproject.org/1.0/adt-ipk/i686-nativesdk
|
||||
|
||||
@@ -2,5 +2,4 @@ arch all 1
|
||||
arch any 6
|
||||
arch noarch 11
|
||||
arch x86_64-nativesdk 16
|
||||
src yp http://adtrepo.yoctoproject.org/1.0/adt-ipk
|
||||
src yp-x86_64-nativesdk http://adtrepo.yoctoproject.org/1.0/adt-ipk/x86_64-nativesdk
|
||||
|
||||
@@ -81,7 +81,7 @@ else
|
||||
fi
|
||||
|
||||
#first update repository
|
||||
OPKG_CMD="sudo $LOCAL_OPKG_LOC/bin/opkg-cl"
|
||||
OPKG_CMD="sudo -E $LOCAL_OPKG_LOC/bin/opkg-cl"
|
||||
|
||||
echo_info "Updating opkg..."
|
||||
$OPKG_CMD -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR update &>> $YOCTOADT_INSTALL_LOG_FILE
|
||||
@@ -89,7 +89,7 @@ echo_info "opkg update process ended..."
|
||||
check_result
|
||||
|
||||
#install below must sdk-host packages
|
||||
OPKG_INSTALL_CMD="$OPKG_CMD --force-overwrite"
|
||||
OPKG_INSTALL_CMD="$OPKG_CMD "
|
||||
OPKG_INSTALL_NATIVE_CMD="$OPKG_INSTALL_CMD -f $OPKG_CONFIG_FILE -o $NATIVE_INSTALL_DIR install"
|
||||
|
||||
echo_info "Installing pseudo nativesdk ...\n"
|
||||
@@ -101,6 +101,9 @@ check_result
|
||||
echo_info "Installing pkgconfig nativesdk ...\n"
|
||||
$OPKG_INSTALL_NATIVE_CMD pkgconfig-nativesdk &>> $YOCTOADT_INSTALL_LOG_FILE
|
||||
check_result
|
||||
echo_info "Installing libtool nativesdk ...\n"
|
||||
$OPKG_INSTALL_NATIVE_CMD libtool-nativesdk &>> $YOCTOADT_INSTALL_LOG_FILE
|
||||
check_result
|
||||
|
||||
for native_target_type in $YOCTOADT_TARGETS; do
|
||||
native_target_type=`echo "$native_target_type" | sed -e 's/x86_64/x86-64/' -e 's/x86$/i586/'`
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
# THE SOFTWARE.
|
||||
|
||||
config_file="adt_installer.conf"
|
||||
source $config_file
|
||||
source `pwd`/$config_file
|
||||
|
||||
LOCAL_OPKG_LOC="./opkg/build/opkg"
|
||||
LOCAL_OPKG_FOLDER="./opkg/build"
|
||||
@@ -31,7 +31,7 @@ OPKG_LIBDIR="/var/lib"
|
||||
|
||||
# List all supported root fs types and target types,
|
||||
# it will be used in user configuration validity checking
|
||||
YOCTOADT_SUPPORTED_ROOTFS="minimal sato sdk lsb"
|
||||
YOCTOADT_SUPPORTED_ROOTFS="minimal minimal-dev sato sato-dev sato-sdk lsb lsb-dev lsb-sdk"
|
||||
YOCTOADT_SUPPORTED_TARGETS="x86 x86_64 arm powerpc mips"
|
||||
# Different host (32 bit or 64 bit) will have different opkg
|
||||
# configuration files
|
||||
|
||||
@@ -39,7 +39,8 @@ YOCTOADT_VERSION = "${SDK_VERSION}"
|
||||
|
||||
inherit deploy
|
||||
|
||||
SRC_URI = "http://opkg.googlecode.com/files/opkg-0.1.8.tar.gz \
|
||||
PV = "0.1.8+svnr${SRCPV}"
|
||||
SRC_URI = "svn://opkg.googlecode.com/svn;module=trunk;proto=http \
|
||||
file://adt_installer \
|
||||
file://scripts/adt_installer_internal \
|
||||
file://scripts/util \
|
||||
@@ -49,8 +50,6 @@ SRC_URI = "http://opkg.googlecode.com/files/opkg-0.1.8.tar.gz \
|
||||
file://opkg/conf/opkg-sdk-x86_64.conf \
|
||||
file://opkg/conf/opkg-sdk-i686.conf \
|
||||
"
|
||||
SRC_URI[md5sum] = "c714ce0e4863bf1315e3b6913ffe3299"
|
||||
SRC_URI[sha256sum] = "ff94bf30bd662d49c4b5057e3a0818d062731adaa555d59abd677ec32a3c1c60"
|
||||
|
||||
fakeroot do_deploy () {
|
||||
cd ${WORKDIR}
|
||||
@@ -59,7 +58,8 @@ fakeroot do_deploy () {
|
||||
rm -rf ${ADT_DIR}
|
||||
mkdir -p ${ADT_DIR}/opkg/build
|
||||
cp -r opkg ${ADT_DIR}/
|
||||
cp -r opkg-0.1.8 ${ADT_DIR}/opkg/build/
|
||||
cp -r trunk ${ADT_DIR}/opkg/build/
|
||||
mv ${ADT_DIR}/opkg/build/trunk ${ADT_DIR}/opkg/build/opkg-svn
|
||||
cp -r scripts ${ADT_DIR}/
|
||||
cp adt_installer ${ADT_DIR}
|
||||
cp adt_installer.conf ${ADT_DIR}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
Disable building txt documentation. This is a temporary workaround,
|
||||
as I have found an Ubuntu 10.10 system which throws errors during
|
||||
building this that I'd like to ultimately fix. The error manifests
|
||||
itself from the end of LinuxDocTools.pm with the following messages
|
||||
during do_install:
|
||||
|
||||
| - Building txt docs
|
||||
| Processing file ./guide
|
||||
| troff: fatal error: can't find macro file s
|
||||
| fmt_txt::postASP: Empty output file, error when calling groff. Aborting...
|
||||
|
||||
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
|
||||
diff -urN linuxdoc-tools-0.9.66.orig//doc/Makedoc.sh linuxdoc-tools-0.9.66/doc/Makedoc.sh
|
||||
--- linuxdoc-tools-0.9.66.orig//doc/Makedoc.sh 2009-11-09 11:58:25.000000000 -0800
|
||||
+++ linuxdoc-tools-0.9.66/doc/Makedoc.sh 2011-03-04 17:37:24.788923998 -0800
|
||||
@@ -40,11 +40,11 @@
|
||||
|
||||
chmod u+x $TMPDIR/linuxdoc
|
||||
|
||||
-if [ -n "`which groff`" ]; then
|
||||
- ln -s $TMPDIR/linuxdoc $TMPDIR/sgml2txt
|
||||
- echo "- Building txt docs" >&2
|
||||
- $TMPDIR/sgml2txt -b 1 ./guide
|
||||
-fi
|
||||
+#if [ -n "`which groff`" ]; then
|
||||
+# ln -s $TMPDIR/linuxdoc $TMPDIR/sgml2txt
|
||||
+# echo "- Building txt docs" >&2
|
||||
+# $TMPDIR/sgml2txt -b 1 ./guide
|
||||
+#fi
|
||||
|
||||
if [ -n "`which latex`" ]; then
|
||||
ln -s $TMPDIR/linuxdoc $TMPDIR/sgml2latex
|
||||
@@ -6,10 +6,11 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=5fbccc46cff2379505ca4e09c7d6ccfe"
|
||||
|
||||
DEPENDS = "openjade-native"
|
||||
|
||||
PR = "r1"
|
||||
PR = "r2"
|
||||
|
||||
SRC_URI = "${DEBIAN_MIRROR}/main/l/linuxdoc-tools/linuxdoc-tools_${PV}.tar.gz \
|
||||
file://disable_sgml2rtf.patch \
|
||||
file://disable_txt_doc.patch \
|
||||
file://disable_tex_doc.patch \
|
||||
file://disable_dvips_doc.patch"
|
||||
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From c313f89c33217ac0e471554dace2144718f86669 Mon Sep 17 00:00:00 2001
|
||||
From: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
Date: Thu, 13 May 2010 12:23:40 +0200
|
||||
Subject: [PATCH] linux-user: use default mmap_min_addr 65536 when /proc/sys/vm/mmap_min_addr cannot be read
|
||||
|
||||
* 65536 is default at least for ubuntu and fedora.
|
||||
---
|
||||
linux-user/main.c | 5 +++++
|
||||
1 files changed, 5 insertions(+), 0 deletions(-)
|
||||
|
||||
Index: qemu-0.13.0/linux-user/main.c
|
||||
===================================================================
|
||||
--- qemu-0.13.0.orig/linux-user/main.c
|
||||
+++ qemu-0.13.0/linux-user/main.c
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "envlist.h"
|
||||
|
||||
#define DEBUG_LOGFILE "/tmp/qemu.log"
|
||||
+#define MMAP_MIN_ADDR_DEFAULT 65536
|
||||
|
||||
char *exec_path;
|
||||
|
||||
@@ -2973,8 +2974,14 @@ int main(int argc, char **argv, char **e
|
||||
if (fscanf(fp, "%lu", &tmp) == 1) {
|
||||
mmap_min_addr = tmp;
|
||||
qemu_log("host mmap_min_addr=0x%lx\n", mmap_min_addr);
|
||||
+ } else {
|
||||
+ qemu_log("cannot read value from /proc/sys/vm/mmap_min_addr, assuming %d\n", MMAP_MIN_ADDR_DEFAULT);
|
||||
+ mmap_min_addr = MMAP_MIN_ADDR_DEFAULT;
|
||||
}
|
||||
fclose(fp);
|
||||
+ } else {
|
||||
+ qemu_log("cannot open /proc/sys/vm/mmap_min_addr for reading, assuming %d\n", MMAP_MIN_ADDR_DEFAULT);
|
||||
+ mmap_min_addr = MMAP_MIN_ADDR_DEFAULT;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ require qemu.inc
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=441c28d2cf86e15a37fa47e15a72fbac \
|
||||
file://COPYING.LIB;endline=24;md5=c04def7ae38850e7d3ef548588159913"
|
||||
|
||||
PR = "r0"
|
||||
PR = "r1"
|
||||
|
||||
FILESPATH = "${FILE_DIRNAME}/qemu-${PV}"
|
||||
FILESDIR = "${WORKDIR}"
|
||||
@@ -26,7 +26,9 @@ SRC_URI = "\
|
||||
file://parallel_make.patch \
|
||||
file://wacom-tablet-fix.patch \
|
||||
file://port92_fix.patch \
|
||||
file://powerpc_rom.bin"
|
||||
file://powerpc_rom.bin \
|
||||
file://fallback-to-safe-mmap_min_addr.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "397a0d665da8ba9d3b9583629f3d6421"
|
||||
SRC_URI[sha256sum] = "1e6f5851b05cea6e377c835f4668408d4124cfb845f9948d922808743c5fd877"
|
||||
|
||||
@@ -8,4 +8,4 @@ SRC_URI += "file://aclocal.patch"
|
||||
SRC_URI[md5sum] = "f77adda60039ffa753f3c584a286f12b"
|
||||
SRC_URI[sha256sum] = "73fd760d3b5cbf06417576591dc37d67380d189392db9000c21b7cbebee49ffc"
|
||||
|
||||
inherit gettext
|
||||
inherit autotools gettext
|
||||
|
||||
24
meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch
Normal file
24
meta/recipes-devtools/rpm/rpm/rpm-tools-mtree-LDFLAGS.patch
Normal file
@@ -0,0 +1,24 @@
|
||||
Source: None
|
||||
Status: Needs to go Upstream
|
||||
Author: Khem Raj <raj.khem@gmail.com>
|
||||
Date: 2011-03-03
|
||||
Description:
|
||||
This patch fixes build issue found when compiling rpm-natibe on ubuntu
|
||||
11.04-alpha. Problem is that linker does not get correct set of dependent
|
||||
libraries when linking mtree binary which results in undefined symbols
|
||||
in librpmio.so. This patch adds correct flags to mtree_LDADD to account
|
||||
for rpmio deps
|
||||
|
||||
Index: rpm-5.4.0/tools/Makefile.am
|
||||
===================================================================
|
||||
--- rpm-5.4.0.orig/tools/Makefile.am
|
||||
+++ rpm-5.4.0/tools/Makefile.am
|
||||
@@ -169,7 +169,7 @@ grep_LDADD = $(RPMIO_LDADD_COMMON)
|
||||
|
||||
mtree_SOURCES = rpmmtree.c
|
||||
mtree_LDFLAGS = @LDFLAGS_STATIC@ $(LDFLAGS)
|
||||
-mtree_LDADD = $(RPM_LDADD_COMMON)
|
||||
+mtree_LDADD = $(RPMIO_LDADD_COMMON)
|
||||
|
||||
rpmrepo_SOURCES = rpmrepo.c
|
||||
rpmrepo_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/scripts -I$(top_builddir)/scripts $(CPPFLAGS)
|
||||
@@ -43,7 +43,7 @@ LICENSE = "LGPL 2.1"
|
||||
LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=2d5025d4aa3495befef8f17206a5b0a1"
|
||||
|
||||
DEPENDS = "bzip2 zlib python perl db openssl elfutils expat libpcre attr acl popt"
|
||||
PR = "r13"
|
||||
PR = "r14"
|
||||
|
||||
# rpm2cpio is a shell script, which is part of the rpm src.rpm. It is needed
|
||||
# in order to extract the distribution SRPM into a format we can extract...
|
||||
@@ -56,6 +56,7 @@ SRC_URI = "http://www.rpm5.org/files/rpm/rpm-5.4/rpm-5.4.0-0.20101229.src.rpm;ex
|
||||
file://rpm-showrc.patch \
|
||||
file://rpm-nofsync.patch \
|
||||
file://rpm-solvedb.patch \
|
||||
file://rpm-tools-mtree-LDFLAGS.patch \
|
||||
"
|
||||
|
||||
# file://hdraddorappend.patch \
|
||||
|
||||
25
meta/recipes-extended/chkconfig/chkconfig_1.3.49.bb
Normal file
25
meta/recipes-extended/chkconfig/chkconfig_1.3.49.bb
Normal file
@@ -0,0 +1,25 @@
|
||||
SUMMARY = "A system tool for maintaining the /etc/rc*.d hierarchy"
|
||||
|
||||
DESCRIPTION = "Chkconfig is a basic system utility. It updates and queries runlevel \
|
||||
information for system services. Chkconfig manipulates the numerous \
|
||||
symbolic links in /etc/rc.d, to relieve system administrators of some \
|
||||
of the drudgery of manually editing the symbolic links."
|
||||
|
||||
HOMEPAGE = "http://fedorahosted.org/releases/c/h/chkconfig"
|
||||
|
||||
LICENSE = "GPLv2"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=5574c6965ae5f583e55880e397fbb018"
|
||||
|
||||
DEPENDS = "libnewt gettext popt"
|
||||
|
||||
PR = "r0"
|
||||
|
||||
SRC_URI = "http://fedorahosted.org/releases/c/h/chkconfig/${P}.tar.bz2"
|
||||
SRC_URI[md5sum] = "9b5e91d25f4f3b21f4c0bdf55a721431"
|
||||
SRC_URI[sha256sum] = "775100a9d6f70fbd8f33ed24b560b6842161fc496c21b1fc6d2aed646f9d855f"
|
||||
|
||||
inherit autotools
|
||||
|
||||
do_install_append() {
|
||||
mkdir -p ${D}/etc/chkconfig.d
|
||||
}
|
||||
@@ -8,7 +8,7 @@ PR = "r0"
|
||||
SRC_URI += "file://m4extensions.patch"
|
||||
|
||||
SRC_URI[md5sum] = "0caa356e69e149fb49b76bacc64615a1"
|
||||
SRC_URI[sha256sum] = "601b1d774cd6e4cd39416203c91ec59dbd65dd27d79d75e1a9b89497ea643978"
|
||||
SRC_URI[sha256sum] = "1b203248874c3b5a728b351f06513e5282f73e0170b7f207fbf8c39f28f6b4ad"
|
||||
|
||||
# Required to build with gcc 4.3 and later:
|
||||
CFLAGS += "-fgnu89-inline"
|
||||
|
||||
11
meta/recipes-extended/images/poky-image-lsb-live.bb
Normal file
11
meta/recipes-extended/images/poky-image-lsb-live.bb
Normal file
@@ -0,0 +1,11 @@
|
||||
DESCRIPTION = "LSB Bootable Live Image"
|
||||
|
||||
require recipes-core/images/poky-image-live.inc
|
||||
|
||||
LABELS += "boot install"
|
||||
|
||||
ROOTFS = "${DEPLOY_DIR_IMAGE}/poky-image-lsb-${MACHINE}.ext3"
|
||||
|
||||
LICENSE = "MIT"
|
||||
|
||||
do_bootimg[depends] += "poky-image-lsb:do_rootfs"
|
||||
11
meta/recipes-extended/images/poky-image-lsb-sdk-live.bb
Normal file
11
meta/recipes-extended/images/poky-image-lsb-sdk-live.bb
Normal file
@@ -0,0 +1,11 @@
|
||||
DESCRIPTION = "LSB SDK Bootable Live Image"
|
||||
|
||||
require recipes-core/images/poky-image-live.inc
|
||||
|
||||
LABELS += "boot install"
|
||||
|
||||
ROOTFS = "${DEPLOY_DIR_IMAGE}/poky-image-lsb-sdk-${MACHINE}.ext3"
|
||||
|
||||
LICENSE = "MIT"
|
||||
|
||||
do_bootimg[depends] += "poky-image-lsb-sdk:do_rootfs"
|
||||
@@ -21,7 +21,7 @@
|
||||
if [ ! -f /opt/lsb/test/manager/bin/dist-checker-start.pl ]
|
||||
then
|
||||
if [ -d /lsb-dist-testkit ];then
|
||||
cd /lsb-dist-testkit && sh install.sh
|
||||
cd /lsb-dist-testkit && sh install.sh && cd ../lsb-Application && rpm -ivh *.rpm --nodeps --force
|
||||
else
|
||||
echo "Please install the realted LSB Packages"
|
||||
exit 1
|
||||
@@ -42,7 +42,7 @@ yes|y)
|
||||
if [ $? -eq 0 ] || [ $? -eq 6 ]
|
||||
then
|
||||
echo "Success to delete user tester"
|
||||
else
|
||||
else
|
||||
echo "Fail to delete user tester"
|
||||
fi
|
||||
;;
|
||||
@@ -177,21 +177,21 @@ ping -c 5 ftp.linux-foundation.org
|
||||
check
|
||||
|
||||
#Step 7
|
||||
if [ -f /lib/modules/*-wr-standard/kernel/drivers/block/loop.ko ];then
|
||||
inmod /lib/modules/*-wr-standard/kernel/drivers/block/loop.ko
|
||||
insmod /lib/modules/2.6.37.2-yocto-standard\+/kernel/drivers/block/loop.ko
|
||||
if [ $? != 0 ];then
|
||||
echo "Please insmod loop.ko manully"
|
||||
fi
|
||||
|
||||
#Step 8
|
||||
echo ""
|
||||
if [ -f /opt/lsb/test/manager/bin/dist-checker-start.pl ];then
|
||||
./opt/lsb/test/manager/bin/dist-checker-start.pl
|
||||
/opt/lsb/test/manager/bin/dist-checker-start.pl
|
||||
fi
|
||||
|
||||
|
||||
#Step 9 get ip address for target platform
|
||||
addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]]Bcast//g`
|
||||
echo -e "you should input ${addr}:8888 on your browse"
|
||||
#Step 8
|
||||
addr=`ifconfig eth0 | grep "inet addr" | awk -F: '{print $2}'|sed s/[[:space:]][[:space:]]Bcast//g`
|
||||
echo -e "you should input ${addr}:8888 on your browser"
|
||||
|
||||
#Step 10
|
||||
echo "Done!!"
|
||||
|
||||
###End
|
||||
|
||||
@@ -4,8 +4,7 @@ PRIORITY = "required"
|
||||
LICENSE = "GPLv2"
|
||||
PR = "r0"
|
||||
|
||||
|
||||
LIC_FILES_CHKSUM = "file://LSB_Setup.sh;md5=c7360d77e08a7f4f2fa66acf28012e7e"
|
||||
LIC_FILES_CHKSUM = "file://LSB_Setup.sh;md5=9cc166e6ee4b327fb94d6da63af9556c"
|
||||
|
||||
SRC_URI = "file://LSB_Setup.sh"
|
||||
|
||||
|
||||
@@ -0,0 +1,71 @@
|
||||
From 3d13bbbb769050fac4cc6c904c174edc27e4f03d Mon Sep 17 00:00:00 2001
|
||||
From: Otavio Salvador <otavio@ossystems.com.br>
|
||||
Date: Thu, 20 Jan 2011 14:14:51 -0200
|
||||
Subject: [PATCH] build: add -without-python
|
||||
|
||||
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
|
||||
---
|
||||
Makefile.in | 8 ++++----
|
||||
configure.ac | 10 ++++++++--
|
||||
2 files changed, 12 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index e764e61..74e9097 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -77,7 +77,7 @@ showkey: showkey.o $(LIBNEWT)
|
||||
$(CC) -g -o showkey showkey.o $(LIBNEWT) $(LDFLAGS) $(LIBS)
|
||||
|
||||
_snackmodule.so: snackmodule.c $(LIBNEWTSH)
|
||||
- for ver in $(PYTHONVERS) ; do \
|
||||
+ [ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) ; do \
|
||||
mkdir -p $$ver ;\
|
||||
PCFLAGS=`$$ver-config --cflags`; \
|
||||
PIFLAGS=`$$ver-config --includes`; \
|
||||
@@ -85,7 +85,7 @@ _snackmodule.so: snackmodule.c $(LIBNEWTSH)
|
||||
PLFLAGS=`$$ver-config --libs`; \
|
||||
$(CC) $(CPPFLAGS) $$PIFLAGS $$PCFLAGS -c -o $$ver/snackmodule.o snackmodule.c ;\
|
||||
$(CC) --shared $$PLDFLAGS $$PLFLAGS $(LDFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L. -lnewt $(LIBS);\
|
||||
- done
|
||||
+ done || :
|
||||
touch $@
|
||||
|
||||
whiptail: $(NDIALOGOBJS) $(LIBNEWTSH)
|
||||
@@ -141,11 +141,11 @@ install-sh: sharedlib $(WHIPTCLSO) _snackmodule.so
|
||||
ln -sf $(LIBNEWTSONAME) $(instroot)/$(libdir)/libnewt.so
|
||||
ln -sf $(LIBNEWTSH) $(instroot)/$(libdir)/$(LIBNEWTSONAME)
|
||||
[ -n "$(WHIPTCLSO)" ] && install -m 755 whiptcl.so $(instroot)/$(libdir) || :
|
||||
- for ver in $(PYTHONVERS) ; do \
|
||||
+ [ -n "$(PYTHONVERS)" ] && for ver in $(PYTHONVERS) ; do \
|
||||
[ -d $(instroot)/$(libdir)/$$ver/site-packages ] || install -m 755 -d $(instroot)/$(libdir)/$$ver/site-packages ;\
|
||||
install -m 755 $$ver/_snackmodule.so $(instroot)/$(libdir)/$$ver/site-packages ;\
|
||||
install -m 644 snack.py $(instroot)/$(libdir)/$$ver/site-packages ;\
|
||||
- done
|
||||
+ done || :
|
||||
|
||||
Makefile: newt.spec
|
||||
echo "You need to rerun ./configure before continuing"
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 7bc381a..dc04352 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -54,8 +54,14 @@ fi
|
||||
AC_CHECK_HEADERS([popt.h libintl.h])
|
||||
|
||||
AC_MSG_CHECKING([for python versions])
|
||||
-PYTHONVERS=$(echo /usr/include/python*/Python.h | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
|
||||
-AC_MSG_RESULT([$PYTHONVERS])
|
||||
+AC_ARG_WITH([python], [ --without-python do not compile python support])
|
||||
+if test "x$with_python" = "xno"; then
|
||||
+ AC_MSG_RESULT([skipped])
|
||||
+ PYTHONVERS=
|
||||
+else
|
||||
+ PYTHONVERS=$(ls /usr/include/python*/Python.h 2> /dev/null | sed "s|/usr/include/||g"| sed "s|/Python.h||g" 2> /dev/null)
|
||||
+ AC_MSG_RESULT([$PYTHONVERS])
|
||||
+fi
|
||||
AC_SUBST([PYTHONVERS])
|
||||
|
||||
AC_ARG_WITH([tcl], [ --without-tcl do not compile whiptcl.so])
|
||||
--
|
||||
1.7.2.3
|
||||
|
||||
37
meta/recipes-extended/newt/libnewt_0.52.12.bb
Normal file
37
meta/recipes-extended/newt/libnewt_0.52.12.bb
Normal file
@@ -0,0 +1,37 @@
|
||||
SUMMARY = "A library for text mode user interfaces"
|
||||
|
||||
DESCRIPTION = "Newt is a programming library for color text mode, widget based user \
|
||||
interfaces. Newt can be used to add stacked windows, entry widgets, \
|
||||
checkboxes, radio buttons, labels, plain text fields, scrollbars, \
|
||||
etc., to text mode user interfaces. This package also contains the \
|
||||
shared library needed by programs built with newt, as well as a \
|
||||
/usr/bin/dialog replacement called whiptail. Newt is based on the \
|
||||
slang library."
|
||||
|
||||
HOMEPAGE = "https://fedorahosted.org/newt/"
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "LGPL"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=55ca817ccb7d5b5b66355690e9abc605"
|
||||
|
||||
# slang needs to be >= 2.2
|
||||
DEPENDS = "slang popt"
|
||||
|
||||
PR = "r0"
|
||||
|
||||
SRCREV = "c3c7be75f6ef1adfc2be5f99c1e8ef3f0ab58c38"
|
||||
SRC_URI = "git://git.fedorahosted.org/git/newt;protocol=git \
|
||||
file://include-without-python.patch"
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
EXTRA_OECONF = "--without-python --without-tcl"
|
||||
|
||||
inherit autotools
|
||||
|
||||
PACKAGES_prepend = "whiptail "
|
||||
|
||||
do_configure_prepend() {
|
||||
sh autogen.sh
|
||||
}
|
||||
|
||||
FILES_whiptail = "${bindir}/whiptail"
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user