]> code.ossystems Code Review - openembedded-core.git/commit
package.bbclass: Use hard link for package split instead of copy
authorDongxiao Xu <dongxiao.xu@intel.com>
Mon, 6 Dec 2010 12:26:08 +0000 (20:26 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Tue, 1 Mar 2011 11:46:39 +0000 (11:46 +0000)
commit2c69cb07e97cd46f1cb45f1af06bfbc4ea889499
treeff5e8fb3f1d5ac4e09a76fc4f6fcb1412858414b
parentc7ef433f78d67ddd0da1b7be8c1a8fdc7cf6bac2
package.bbclass: Use hard link for package split instead of copy

When doing package split, we use hard link instead of copy, which can
save about 10% disk space when building poky-image-minimal.

If fail, it will fall back to the copyfile function.

[Updated by Richard to use os.link and avoid an exec() call per file]

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
meta/classes/package.bbclass