summaryrefslogtreecommitdiffstats
path: root/meta/site
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2014-01-05 22:58:09 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-21 17:15:26 +0000
commitcbcf5b219858b58c4429ee87444eaacc5a7cfa3e (patch)
tree504bc2009643f03783e667f8c6d86245b66fc7cf /meta/site
parentf0714d1128f27429485cace56d89bf6f0a170a29 (diff)
downloadpoky-cbcf5b219858b58c4429ee87444eaacc5a7cfa3e.tar.gz
archiver.bbclass: refactor it
The archiver didn't work, and there were a few problems, for example: 1) There was no src_dir.org (or orig), but the diff command still use it 2) There were a few duplicated code 3) It didn't archive the source for the native or gcc 4) The work flow is not very well 5) The "subprocess.call('fakeroot cp xxxx'" should be removed 6) And others ... So that we have to refactor it, the benefits are: 1) Fix the problems and make it work well. 2) Reduce more than 300 lines 3) Make it easy to use. Hre are the explanation about the bbclass: This bbclass is used for creating archive for: 1) original (or unpacked) source: ARCHIVER_MODE[src] = "original" 2) patched source: ARCHIVER_MODE[src] = "patched" (default) 3) configured source: ARCHIVER_MODE[src] = "configured" 4) The patches between do_unpack and do_patch: ARCHIVER_MODE[diff] = "1" And you can set the one that you'd like to exclude from the diff: ARCHIVER_MODE[diff-exclude] ?= ".pc autom4te.cache patches" 5) The environment data, similar to 'bitbake -e recipe': ARCHIVER_MODE[dumpdata] = "1" 6) The recipe (.bb and .inc): ARCHIVER_MODE[recipe] = "1" All of the above can be packed into a .src.rpm package: (when PACKAGES != "") ARCHIVER_MODE[srpm] = "1" [YOCTO #4986] [YOCTO #5113] (From OE-Core rev: e5b20199ddddfa2146dc112c0a81f3fd292258e5) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/site')
0 files changed, 0 insertions, 0 deletions