]> code.ossystems Code Review - openembedded-core.git/commit
populate_sdk_base: remove unneeded dirs such as /dev
authorChen Qi <Qi.Chen@windriver.com>
Fri, 7 Jan 2022 02:16:24 +0000 (18:16 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Jan 2022 14:17:31 +0000 (14:17 +0000)
commit9154f71c7267e9731156c1dfd57397103e9e6a2b
tree85de38881a2ecd56e3ad79a6ffeb6852c49e4f69
parent677f5741bd265be49d4a5bb933b3e8d8c4eec653
populate_sdk_base: remove unneeded dirs such as /dev

We met a problem that core-image-tiny-initramfs's SDK cannot be
installed. The error message is like below.

  tar: ./sysroots/core2-64-poky-linux/dev/console: Cannot mknod: Operation not permitted

In fact, the '/dev' direcotry is not needed by SDK. So remove it.

This patches uses a variable, SDK_PRUNE_SYSROOT_DIRS, to hold useless dir entries
so that it could be extended. For example, '/usr/bin' could be added if wanted.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_base.bbclass