[yocto] File system for alternate partition
Bollinger, Seth
Seth.Bollinger at digi.com
Wed Jul 9 06:57:57 PDT 2014
>I'm not sure without digging into it further (which I'm unable to do at
>the
>moment, perhaps someone else can.)
Just as an FYI for anyone who might find this thread interesting, I fixed
the problem by adding another hook into poky/lib/oe/image.py before the
IMAGE_CMD hook.
It defaults to doing nothing, but can be overridden by image recipes to
remove directories that have no value for the particular image.
diff --git a/meta/lib/oe/image.py b/meta/lib/oe/image.py
index c9b9033..c74821f 100644
--- a/meta/lib/oe/image.py
+++ b/meta/lib/oe/image.py
@@ -274,6 +274,7 @@ class Image(ImageDepGraph):
bb.data.update_data(localdata)
localdata.setVar('type', type)
+ cmds.append("\t" + (localdata.getVar("IMAGE_CLEAN_FS",
True) or ""))
cmds.append("\t" + localdata.getVar("IMAGE_CMD", True))
cmds.append(localdata.expand("\tcd ${DEPLOY_DIR_IMAGE}"))
Seth
More information about the yocto
mailing list