Skip to contentSkip to conversation

image.bbclass: prevent rm_work to remove native RSS

PATCH In review Ed Bartosh 2 participants 2 messages Apr 10, 2017

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

PATCH 1/1 image.bbclass: prevent rm_work to remove native RSS

Added recipe-sysroot-native directory to RM_WORK_EXCLUDE_ITEMS for image recipes.

This should keep qemu and other useful tools in the native sysroot of the image recipe even if rm_work is enabled.

[YOCTO #11266]
[YOCTO #11193]

---
 meta/classes/image.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/image.bbclass +2 -0
index 405fd73..7165bb4 100644
@@ -17,6 +17,8 @@ RRECOMMENDS += "${PACKAGE_INSTALL_ATTEMPTONLY}"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
+RM_WORK_EXCLUDE_ITEMS += " recipe-sysroot-native"
+
 TESTIMAGECLASS = "${@base_conditional('TEST_IMAGE', '1', 'testimage-auto', '', d)}"
 inherit ${TESTIMAGECLASS}
 
Signature · 1 line
2.1.4
#1 lore raw
Quoted 19 lines · Ed Bartosh

Added recipe-sysroot-native directory to RM_WORK_EXCLUDE_ITEMS for image recipes.

This should keep qemu and other useful tools in the native sysroot of the image recipe even if rm_work is enabled.

[YOCTO #11266]
[YOCTO #11193]

---
 meta/classes/image.bbclass | 2 ++
 1 file changed, 2 insertions(+)
meta/classes/image.bbclass +0 -0
index 405fd73..7165bb4 100644

meta/classes/image.bbclass RRECOMMENDS += "${PACKAGE_INSTALL_ATTEMPTONLY}" · line 20

Quoted 4 lines
meta/classes/image.bbclass +1 -0
@@ -17,6 +17,8 @@ RRECOMMENDS += "${PACKAGE_INSTALL_ATTEMPTONLY}"
 
 INHIBIT_DEFAULT_DEPS = "1"
 
+RM_WORK_EXCLUDE_ITEMS += " recipe-sysroot-native"

Either _append with a space or += without a space.

Quoted 12 lines
meta/classes/image.bbclass +1 -1
+
 TESTIMAGECLASS = "${@base_conditional('TEST_IMAGE', '1', 'testimage-auto', '', d)}"
 inherit ${TESTIMAGECLASS}
 
--

2.1.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core