Bug 10584 - rm_work.bbclass: reduce maximum amount of disk space required for a build
Summary: rm_work.bbclass: reduce maximum amount of disk space required for a build
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 2.3
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.3
Assignee: Patrick Ohly
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks: 10799
  Show dependency tree
 
Reported: 2016-11-02 15:01 UTC by Patrick Ohly
Modified: 2017-01-27 12:18 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Ohly 2016-11-02 15:01:17 UTC
rm_work.bbclass is not as efficient as it could be: because do_rm_work runs only after do_build of the current recipe and all recipes it depends on, recipes do not get cleaned as soon as possible. As a result, building OE-core with just 20GB times of disk space fails because required spaces exceeds that temporarily.

With enhancements it is possible to build OE-core with less than 20GB. Proof-of-concept code is in https://github.com/pohly/poky/commits/rmwork

Open question: a clean way of injecting do_rm_work into recipes is needed, which might depend on bitbake enhancements.