From patchwork Thu Jan 24 08:16:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [05/12] volatiles.bbclass: add recipe Date: Thu, 24 Jan 2013 08:16:45 -0000 From: Qi.Chen@windriver.com X-Patchwork-Id: 43253 Message-Id: To: Cc: Zhenfeng.Zhao@windriver.com From: Chen Qi All recipes that need to tweak their directories need to inherit this class and set VOLATILE_DIR, VOLATILE_LINK and VOLATILE_PKGS. [YOCTO #3406] Signed-off-by: Chen Qi --- meta/classes/volatiles.bbclass | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 meta/classes/volatiles.bbclass diff --git a/meta/classes/volatiles.bbclass b/meta/classes/volatiles.bbclass new file mode 100644 index 0000000..f27e598 --- /dev/null +++ b/meta/classes/volatiles.bbclass @@ -0,0 +1,11 @@ +# This bbclass is for read-only-rootfs support. All recipes that may tweak their +# own directories in order to run correctly in a read-only rootfs enviroment +# should inherit this class and set VOLATILE_DIR, VOLATILE_LINK, VOLATILE_PKGS. + +# For each package, the net result is a read-only specific conf file generated +# and packaged, which has the name of readonly-${VOLATILESPN}. + +# All these config files are then parsed by populate-volatile.sh to create proper +# directories and links. + +inherit ${@base_contains('DISTRO_FEATURES','sysvinit','volatiles_sysvinit','',d)}