Cleaning recipes after build in Yocto
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I know to reduce the disk space, we need to add INHERIT += "rm_work" in the local.conf, I added in local.conf, but it is still not deleting the files after building the recipe.
bitbake -e core-image-minimal | grep ^INHERIT
INHERIT=" multilib_global rm_work poky-sanity uninative package_rpm buildstats image-mklibs image-prelink debian devshell sstate license remove-libtool blacklist sanity"
INHERIT_BLACKLIST="blacklist"
INHERIT_DISTRO="debian devshell sstate license remove-libtool"
I verified by looking at log.task_order of a particular recipe, what I am missing here.
do_fetch (12251): log.do_fetch.12251
do_prepare_recipe_sysroot (12440): log.do_prepare_recipe_sysroot.12440
do_unpack (13072): log.do_unpack.13072
do_patch (14329): log.do_patch.14329
do_configure (15730): log.do_configure.15730
do_compile (4380): log.do_compile.4380
do_mkimage (10675): log.do_mkimage.10675
do_install (10749): log.do_install.10749
do_package (11298): log.do_package.11298
do_packagedata (6787): log.do_packagedata.6787
do_package_write_rpm (27291): log.do_package_write_rpm.27291
build embedded-linux yocto
|
show 5 more comments
I know to reduce the disk space, we need to add INHERIT += "rm_work" in the local.conf, I added in local.conf, but it is still not deleting the files after building the recipe.
bitbake -e core-image-minimal | grep ^INHERIT
INHERIT=" multilib_global rm_work poky-sanity uninative package_rpm buildstats image-mklibs image-prelink debian devshell sstate license remove-libtool blacklist sanity"
INHERIT_BLACKLIST="blacklist"
INHERIT_DISTRO="debian devshell sstate license remove-libtool"
I verified by looking at log.task_order of a particular recipe, what I am missing here.
do_fetch (12251): log.do_fetch.12251
do_prepare_recipe_sysroot (12440): log.do_prepare_recipe_sysroot.12440
do_unpack (13072): log.do_unpack.13072
do_patch (14329): log.do_patch.14329
do_configure (15730): log.do_configure.15730
do_compile (4380): log.do_compile.4380
do_mkimage (10675): log.do_mkimage.10675
do_install (10749): log.do_install.10749
do_package (11298): log.do_package.11298
do_packagedata (6787): log.do_packagedata.6787
do_package_write_rpm (27291): log.do_package_write_rpm.27291
build embedded-linux yocto
Do you have exceptions usingRM_WORK_EXCLUDE += "zbar"
? Otherwise it should work. Else trycleansstate
for that recipe and re-try it!
– Parthiban
Nov 24 '18 at 7:32
No I don't have any EXCLUDE defined in local.conf
– md.jamal
Nov 24 '18 at 7:40
Looks strange. All of your recipes are not cleaned or just one?
– Parthiban
Nov 24 '18 at 7:42
All are not cleaned
– md.jamal
Nov 24 '18 at 7:42
1
Not sure. Trybitbake -c listtasks <recipe name>
. If it doesn't showdo_rm_work
task, then inherit rm_work somehow overridden or removed. Intel layers are always complex!
– Parthiban
Nov 24 '18 at 7:54
|
show 5 more comments
I know to reduce the disk space, we need to add INHERIT += "rm_work" in the local.conf, I added in local.conf, but it is still not deleting the files after building the recipe.
bitbake -e core-image-minimal | grep ^INHERIT
INHERIT=" multilib_global rm_work poky-sanity uninative package_rpm buildstats image-mklibs image-prelink debian devshell sstate license remove-libtool blacklist sanity"
INHERIT_BLACKLIST="blacklist"
INHERIT_DISTRO="debian devshell sstate license remove-libtool"
I verified by looking at log.task_order of a particular recipe, what I am missing here.
do_fetch (12251): log.do_fetch.12251
do_prepare_recipe_sysroot (12440): log.do_prepare_recipe_sysroot.12440
do_unpack (13072): log.do_unpack.13072
do_patch (14329): log.do_patch.14329
do_configure (15730): log.do_configure.15730
do_compile (4380): log.do_compile.4380
do_mkimage (10675): log.do_mkimage.10675
do_install (10749): log.do_install.10749
do_package (11298): log.do_package.11298
do_packagedata (6787): log.do_packagedata.6787
do_package_write_rpm (27291): log.do_package_write_rpm.27291
build embedded-linux yocto
I know to reduce the disk space, we need to add INHERIT += "rm_work" in the local.conf, I added in local.conf, but it is still not deleting the files after building the recipe.
bitbake -e core-image-minimal | grep ^INHERIT
INHERIT=" multilib_global rm_work poky-sanity uninative package_rpm buildstats image-mklibs image-prelink debian devshell sstate license remove-libtool blacklist sanity"
INHERIT_BLACKLIST="blacklist"
INHERIT_DISTRO="debian devshell sstate license remove-libtool"
I verified by looking at log.task_order of a particular recipe, what I am missing here.
do_fetch (12251): log.do_fetch.12251
do_prepare_recipe_sysroot (12440): log.do_prepare_recipe_sysroot.12440
do_unpack (13072): log.do_unpack.13072
do_patch (14329): log.do_patch.14329
do_configure (15730): log.do_configure.15730
do_compile (4380): log.do_compile.4380
do_mkimage (10675): log.do_mkimage.10675
do_install (10749): log.do_install.10749
do_package (11298): log.do_package.11298
do_packagedata (6787): log.do_packagedata.6787
do_package_write_rpm (27291): log.do_package_write_rpm.27291
build embedded-linux yocto
build embedded-linux yocto
asked Nov 24 '18 at 7:02
md.jamalmd.jamal
5081523
5081523
Do you have exceptions usingRM_WORK_EXCLUDE += "zbar"
? Otherwise it should work. Else trycleansstate
for that recipe and re-try it!
– Parthiban
Nov 24 '18 at 7:32
No I don't have any EXCLUDE defined in local.conf
– md.jamal
Nov 24 '18 at 7:40
Looks strange. All of your recipes are not cleaned or just one?
– Parthiban
Nov 24 '18 at 7:42
All are not cleaned
– md.jamal
Nov 24 '18 at 7:42
1
Not sure. Trybitbake -c listtasks <recipe name>
. If it doesn't showdo_rm_work
task, then inherit rm_work somehow overridden or removed. Intel layers are always complex!
– Parthiban
Nov 24 '18 at 7:54
|
show 5 more comments
Do you have exceptions usingRM_WORK_EXCLUDE += "zbar"
? Otherwise it should work. Else trycleansstate
for that recipe and re-try it!
– Parthiban
Nov 24 '18 at 7:32
No I don't have any EXCLUDE defined in local.conf
– md.jamal
Nov 24 '18 at 7:40
Looks strange. All of your recipes are not cleaned or just one?
– Parthiban
Nov 24 '18 at 7:42
All are not cleaned
– md.jamal
Nov 24 '18 at 7:42
1
Not sure. Trybitbake -c listtasks <recipe name>
. If it doesn't showdo_rm_work
task, then inherit rm_work somehow overridden or removed. Intel layers are always complex!
– Parthiban
Nov 24 '18 at 7:54
Do you have exceptions using
RM_WORK_EXCLUDE += "zbar"
? Otherwise it should work. Else try cleansstate
for that recipe and re-try it!– Parthiban
Nov 24 '18 at 7:32
Do you have exceptions using
RM_WORK_EXCLUDE += "zbar"
? Otherwise it should work. Else try cleansstate
for that recipe and re-try it!– Parthiban
Nov 24 '18 at 7:32
No I don't have any EXCLUDE defined in local.conf
– md.jamal
Nov 24 '18 at 7:40
No I don't have any EXCLUDE defined in local.conf
– md.jamal
Nov 24 '18 at 7:40
Looks strange. All of your recipes are not cleaned or just one?
– Parthiban
Nov 24 '18 at 7:42
Looks strange. All of your recipes are not cleaned or just one?
– Parthiban
Nov 24 '18 at 7:42
All are not cleaned
– md.jamal
Nov 24 '18 at 7:42
All are not cleaned
– md.jamal
Nov 24 '18 at 7:42
1
1
Not sure. Try
bitbake -c listtasks <recipe name>
. If it doesn't show do_rm_work
task, then inherit rm_work somehow overridden or removed. Intel layers are always complex!– Parthiban
Nov 24 '18 at 7:54
Not sure. Try
bitbake -c listtasks <recipe name>
. If it doesn't show do_rm_work
task, then inherit rm_work somehow overridden or removed. Intel layers are always complex!– Parthiban
Nov 24 '18 at 7:54
|
show 5 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53455960%2fcleaning-recipes-after-build-in-yocto%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53455960%2fcleaning-recipes-after-build-in-yocto%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Do you have exceptions using
RM_WORK_EXCLUDE += "zbar"
? Otherwise it should work. Else trycleansstate
for that recipe and re-try it!– Parthiban
Nov 24 '18 at 7:32
No I don't have any EXCLUDE defined in local.conf
– md.jamal
Nov 24 '18 at 7:40
Looks strange. All of your recipes are not cleaned or just one?
– Parthiban
Nov 24 '18 at 7:42
All are not cleaned
– md.jamal
Nov 24 '18 at 7:42
1
Not sure. Try
bitbake -c listtasks <recipe name>
. If it doesn't showdo_rm_work
task, then inherit rm_work somehow overridden or removed. Intel layers are always complex!– Parthiban
Nov 24 '18 at 7:54