mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
sstate: Drop intercept functions support
The only user was siteconfig which has been removed. The API was horrible and we don't want to encourage this kind of usage. (From OE-Core rev: cfbfd0b2e89eb71783c55a1be4a7e63e6cd82c2f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -189,7 +189,6 @@ def sstate_state_fromvars(d, task = None):
|
||||
plaindirs = (d.getVarFlag("do_" + task, 'sstate-plaindirs') or "").split()
|
||||
lockfiles = (d.getVarFlag("do_" + task, 'sstate-lockfile') or "").split()
|
||||
lockfilesshared = (d.getVarFlag("do_" + task, 'sstate-lockfile-shared') or "").split()
|
||||
interceptfuncs = (d.getVarFlag("do_" + task, 'sstate-interceptfuncs') or "").split()
|
||||
fixmedir = d.getVarFlag("do_" + task, 'sstate-fixmedir') or ""
|
||||
if not task or len(inputs) != len(outputs):
|
||||
bb.fatal("sstate variables not setup correctly?!")
|
||||
@@ -205,7 +204,6 @@ def sstate_state_fromvars(d, task = None):
|
||||
ss['lockfiles'] = lockfiles
|
||||
ss['lockfiles-shared'] = lockfilesshared
|
||||
ss['plaindirs'] = plaindirs
|
||||
ss['interceptfuncs'] = interceptfuncs
|
||||
ss['fixmedir'] = fixmedir
|
||||
return ss
|
||||
|
||||
@@ -790,9 +788,6 @@ sstate_task_prefunc[dirs] = "${WORKDIR}"
|
||||
python sstate_task_postfunc () {
|
||||
shared_state = sstate_state_fromvars(d)
|
||||
|
||||
for intercept in shared_state['interceptfuncs']:
|
||||
bb.build.exec_func(intercept, d, (d.getVar("WORKDIR"),))
|
||||
|
||||
omask = os.umask(0o002)
|
||||
if omask != 0o002:
|
||||
bb.note("Using umask 0o002 (not %0o) for sstate packaging" % omask)
|
||||
|
||||
Reference in New Issue
Block a user