summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLi Wang <li.wang@windriver.com>2020-05-20 15:27:22 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-22 17:07:41 +0100
commit71e141906069c6f754199512741f6e3d5b72fee7 (patch)
treeb1b9be02e9411401c49c7e5af2e4dc76bd1b65fb
parentcd237348221457ec5bd31da19668a68bb911edc8 (diff)
downloadopenembedded-core-71e141906069c6f754199512741f6e3d5b72fee7.tar.gz
openembedded-core-71e141906069c6f754199512741f6e3d5b72fee7.tar.bz2
openembedded-core-71e141906069c6f754199512741f6e3d5b72fee7.zip
linux-modules.tgz: fix file permissions to root
the files of linux-modules should be same permissions with rootfs.tar.bz2, because it is a part of rootfs when used to install. Signed-off-by: Li Wang <li.wang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index 0935196f6f..20a0135fc9 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -711,6 +711,7 @@ kernel_do_deploy() {
else
TAR_ARGS=""
fi
+ TAR_ARGS="$TAR_ARGS --owner=0 --group=0"
tar $TAR_ARGS -cv -C ${D}${root_prefix} lib | gzip -9n > $deployDir/modules-${MODULE_TARBALL_NAME}.tgz
ln -sf modules-${MODULE_TARBALL_NAME}.tgz $deployDir/modules-${MODULE_TARBALL_LINK_NAME}.tgz