[OE-core] [PATCHv3 0/5] Add dummy tools to help identify needed dependencies
Richard Purdie
richard.purdie at linuxfoundation.org
Thu Mar 9 00:44:23 UTC 2017
On Thu, 2017-03-09 at 00:18 +0000, Richard Purdie wrote:
> How badly do people dislike the patch below?
>
> From: Richard Purdie <richard.purdie at linuxfoundation.org>
> Subject: bitbake/oe-core: Filter contents of PATH
>
> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>
> diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
> index d6bcfa3..dbb74dd 100644
> --- a/bitbake/lib/bb/utils.py
> +++ b/bitbake/lib/bb/utils.py
> @@ -1526,3 +1526,13 @@ class LogCatcher(logging.Handler):
> self.messages.append(bb.build.logformatter.format(record))
> def contains(self, message):
> return (message in self.messages)
> +
> +def setup_native_bindir(dest, toolsvar, d):
> + tools = d.getVar(toolsvar).split()
> + path = os.environ.get("PATH")
> + mkdirhier(dest)
> + for tool in tools:
> + desttool = os.path.join(dest, tool)
> + if not os.path.exists(desttool):
> + srctool = which(path, tool)
> + os.symlink(srctool, desttool)
> diff --git a/meta/conf/layer.conf b/meta/conf/layer.conf
> index 87c235f..21265ed 100644
> --- a/meta/conf/layer.conf
> +++ b/meta/conf/layer.conf
> @@ -59,3 +59,14 @@ SIGGEN_EXCLUDE_SAFE_RECIPE_DEPS += " \
> oprofile->virtual/kernel \
> "
>
> +NATIVETOOLS = " \
> + bash sh cut sed gcc ld git rm install which find xargs cat true
> mktemp \
> + grep tar gzip touch cp mv basename dirname tr getopt sort awk
> head tail \
> + mkdir patch uniq perl python chmod python3 ar strip expr ls make
> as \
> + ranlib egrep echo chown cpio tee wc wget bzip2 stat date rmdir
> od diff \
> + md5sum unlzma dd chrpath file pod2man gunzip python2.7 ln g++ [
> \
> + taskset \
Adding "false true uname test hostname nm objdump objcopy cmp printf
env" gets this going much further. taskset is only above as I have
local patches in my build which use it for other experiments and I
added it just to get things working.
Cheers,
Richard
More information about the Openembedded-core
mailing list