From 293fa519d1c883e5a65ac298c1011ab95fb96499 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Wed, 16 Jun 2010 11:16:23 -0700 Subject: linux-libc-headers-native: Add, make it a dependency for most native recipes On some host distributions the provided linux kernel headers are too old to compile utilities we need. Given that we need these utilities to run things on the target the best solution is to provide linux-libc-headers-native. Rather than get things into an inconsistent state, we make linux-libc-headers-native be a default dependency. Acked-by: Leon Woestenberg Signed-off-by: Tom Rini --- classes/base.bbclass | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'classes') diff --git a/classes/base.bbclass b/classes/base.bbclass index e0f9184f58..e26a45e756 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -75,6 +75,12 @@ def base_dep_prepend(d): if (bb.data.getVar('HOST_SYS', d, 1) != bb.data.getVar('BUILD_SYS', d, 1)): deps += " virtual/${TARGET_PREFIX}gcc virtual/libc " + elif bb.data.inherits_class('native', d) and \ + bb.data.getVar('PN', d, True) not in \ + ("linux-libc-headers-native", "quilt-native", + "unifdef-native", "shasum-native", + "stagemanager-native", "coreutils-native"): + deps += " linux-libc-headers-native" return deps DEPENDS_prepend="${@base_dep_prepend(d)} " -- cgit v1.2.3