kernel.spec: adjust module.lds path for build out-of-tree module
module.lds is moved from arch/{arch}/kernel/module.lds to
scripts/module.lds by commit 596b0474d3d9 in linux 5.10,
so adjust the path.
Signed-off-by: Xie XiuQi <xiexiuqi@huawei.com>
This commit is contained in:
parent
bd61029a31
commit
8881dc97f4
11
kernel.spec
11
kernel.spec
@ -531,9 +531,16 @@ if [ -d arch/%{Arch}/include ]; then
|
||||
fi
|
||||
cp -a include $RPM_BUILD_ROOT/lib/modules/%{KernelVer}/build/include
|
||||
|
||||
if [ -f arch/%{Arch}/kernel/module.lds ]; then
|
||||
cp -a --parents arch/%{Arch}/kernel/module.lds $RPM_BUILD_ROOT/lib/modules/%{KernelVer}/build/
|
||||
fi
|
||||
|
||||
# module.lds is moved to scripts by commit 596b0474d3d9 in linux 5.10.
|
||||
if [ -f scripts/module.lds ]; then
|
||||
cp -a --parents scripts/module.lds $RPM_BUILD_ROOT/lib/modules/%{KernelVer}/build/
|
||||
fi
|
||||
|
||||
%ifarch aarch64
|
||||
# Needed for systemtap
|
||||
cp -a --parents arch/arm64/kernel/module.lds $RPM_BUILD_ROOT/lib/modules/%{KernelVer}/build/
|
||||
cp -a --parents arch/arm/include/asm $RPM_BUILD_ROOT/lib/modules/%{KernelVer}/build/
|
||||
%endif
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user