[PATCH 10/12] dropbear: inherit volatiles to support read-only rootfs

Qi.Chen
2013-01-24T08:32:34Z

From: Chen Qi <Qi.Chen@windriver.com>

Inherit volatiles.bbclass to support read-only rootfs.

[YOCTO #3406]

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
meta/recipes-core/dropbear/dropbear.inc | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/dropbear/dropbear.inc b/meta/recipes-core/dropbear/dropbear.inc
index 3a39c95..efc685c 100644
--- a/meta/recipes-core/dropbear/dropbear.inc
+++ b/meta/recipes-core/dropbear/dropbear.inc
@@ -2,7 +2,7 @@ DESCRIPTION = "Dropbear is a lightweight SSH and SCP implementation"
HOMEPAGE = "http://matt.ucc.asn.au/dropbear/dropbear.html"
SECTION = "console/network"

-INC_PR = "r2"
+INC_PR = "r3"

# some files are from other projects and have others license terms:
# public domain, OpenSSH 3.5p1, OpenSSH3.6.1p2, PuTTY
@@ -26,11 +26,14 @@ PAM_SRC_URI = "file://dropbear-enable-pam.patch \
file://dropbear-configuration-file.patch \
file://dropbear"

-inherit autotools update-rc.d
+inherit autotools update-rc.d volatiles

INITSCRIPT_NAME = "dropbear"
INITSCRIPT_PARAMS = "defaults 10"

+VOLATILE_DIR = "/var/volatile/lib/dropbear"
+VOLATILE_LINK = "/var/lib/dropbear"
+
CFLAGS_prepend = " -I. "
LD = "${CC}"

--
1.7.9.5