]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
populate_sdk_base: remove unneeded dirs such as /dev
authorChen Qi <Qi.Chen@windriver.com>
Mon, 10 Jan 2022 06:17:04 +0000 (22:17 -0800)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 17 Jan 2022 02:29:00 +0000 (10:29 +0800)
commit0211ccb94ecc13ed0f4d3f351baf4f9a39f2ccea
tree25f7fe9430c14071533767ee3e12cd59f77985ef
parentf82c65b3c69738401ecdac354ed65308929cc20f
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.

(From OE-Core rev: 9154f71c7267e9731156c1dfd57397103e9e6a2b)

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