mirror of
https://git.yoctoproject.org/poky
synced 2026-02-21 08:59:41 +01:00
kernel-devsrc: do not copy Module.symvers file during install
When CONFIG_MODULES is not enabled in kernel config - Module.symvers generation is not done, which causes the file not to be created. This fails later in do_install() due to the fact that copy command in executed for non-existing Module.symvers file. Check for Module.symvers existence before copy command in executed. (From OE-Core rev: d4416bd7f8823ddd7bf25f286649a12f13b0fabc) Signed-off-by: Oleksandr Ocheretnyi <oocheret@cisco.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit deacceac6461400037b152260c8edbc819f6309a) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
16b4a5c2cb
commit
8cd10efa78
@@ -72,7 +72,9 @@ do_install() {
|
||||
(
|
||||
cd ${B}
|
||||
|
||||
cp Module.symvers $kerneldir/build
|
||||
if [ -s Module.symvers ]; then
|
||||
cp Module.symvers $kerneldir/build
|
||||
fi
|
||||
cp System.map* $kerneldir/build
|
||||
if [ -s Module.markers ]; then
|
||||
cp Module.markers $kerneldir/build
|
||||
|
||||
Reference in New Issue
Block a user