diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2013-04-27 05:32:07 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-02 17:41:53 +0100 |
commit | c51e8b4532361b11fe73c28613653c0f5aaf566b (patch) | |
tree | 5d692ff27be5a1ec6cf858cc7b9ae6f044cbeb8e /meta/classes/sstate.bbclass | |
parent | 3dfbedbddeef009bef8da3c18a1eaa8293e22940 (diff) | |
download | poky-c51e8b4532361b11fe73c28613653c0f5aaf566b.tar.gz |
sstate.bbclass: make hard links for staging files
Make hard links for staging files instead of copy to save the disk space
(3G will be saved for a core-image-sato build), and it doesn't affect
much on the build time.
The following directories are affected:
1) The sysroot
2) The DEPLOY_DIR
3) The pkgdata
[YOCTO #4372]
(From OE-Core rev: 5853e0f482b22258c909268fe71673a29e31989b)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 79d38304fd..77ec402704 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -198,7 +198,7 @@ def sstate_install(ss, d): | |||
198 | # Run the actual file install | 198 | # Run the actual file install |
199 | for state in ss['dirs']: | 199 | for state in ss['dirs']: |
200 | if os.path.exists(state[1]): | 200 | if os.path.exists(state[1]): |
201 | oe.path.copytree(state[1], state[2]) | 201 | oe.path.copyhardlinktree(state[1], state[2]) |
202 | 202 | ||
203 | for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or '').split(): | 203 | for postinst in (d.getVar('SSTATEPOSTINSTFUNCS', True) or '').split(): |
204 | bb.build.exec_func(postinst, d) | 204 | bb.build.exec_func(postinst, d) |