[OE-core] [PATCH] lttng: Add tracing group when building lttng-tools

Mehaffey, John John_Mehaffey at mentor.com
Fri Feb 27 02:17:20 UTC 2015


This prevents the "Warning: No tracing group detected" message
from lttng when there is no group 'tracing' while using lttng
on the target.

Signed-off-by: John Mehaffey <mehaf at gedanken.com>
---
 meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb b/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb
index 15125e3..48d1a86 100644
--- a/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb
+++ b/meta/recipes-kernel/lttng/lttng-tools_2.6.0.bb
@@ -30,7 +30,10 @@ SRC_URI = "git://git.lttng.org/lttng-tools.git;branch=stable-2.6 \

 S = "${WORKDIR}/git"

-inherit autotools-brokensep ptest pkgconfig
+inherit autotools-brokensep ptest pkgconfig adduser
+
+USERADD_PACKAGES = "${PN}"
+GROUPADD_PARAM_${PN} = "tracing"

 export KERNELDIR="${STAGING_KERNEL_DIR}"

-- 
1.9.1



More information about the Openembedded-core mailing list