linux6.1: include files necessary for dkms on cross
This commit is contained in:
parent
2a8eff2496
commit
a02ed42133
1 changed files with 10 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'linux6.1'
|
# Template file for 'linux6.1'
|
||||||
pkgname=linux6.1
|
pkgname=linux6.1
|
||||||
version=6.1.55
|
version=6.1.55
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="Linux kernel and modules (${version%.*} series)"
|
short_desc="Linux kernel and modules (${version%.*} series)"
|
||||||
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
|
||||||
license="GPL-2.0-only"
|
license="GPL-2.0-only"
|
||||||
|
@ -169,6 +169,7 @@ do_install() {
|
||||||
cd ${wrksrc}
|
cd ${wrksrc}
|
||||||
# Install required headers to build external modules
|
# Install required headers to build external modules
|
||||||
install -Dm644 Makefile ${hdrdest}/Makefile
|
install -Dm644 Makefile ${hdrdest}/Makefile
|
||||||
|
install -Dm644 Kbuild ${hdrdest}/Kbuild
|
||||||
install -Dm644 kernel/Makefile ${hdrdest}/kernel/Makefile
|
install -Dm644 kernel/Makefile ${hdrdest}/kernel/Makefile
|
||||||
install -Dm644 .config ${hdrdest}/.config
|
install -Dm644 .config ${hdrdest}/.config
|
||||||
for file in $(find . -name Kconfig\*); do
|
for file in $(find . -name Kconfig\*); do
|
||||||
|
@ -210,6 +211,13 @@ do_install() {
|
||||||
cp -a security/selinux/include ${hdrdest}/security/selinux
|
cp -a security/selinux/include ${hdrdest}/security/selinux
|
||||||
mkdir -p ${hdrdest}/tools/include
|
mkdir -p ${hdrdest}/tools/include
|
||||||
cp -a tools/include/tools ${hdrdest}/tools/include
|
cp -a tools/include/tools ${hdrdest}/tools/include
|
||||||
|
if [ -d "arch/${arch}/tools" ]; then
|
||||||
|
cp -a "arch/${arch}/tools" "${hdrdest}/arch/${arch}"
|
||||||
|
fi
|
||||||
|
cp -a kernel/time/timeconst.bc "${hdrdest}/kernel/time"
|
||||||
|
cp -a kernel/bounds.c "${hdrdest}/kernel"
|
||||||
|
mkdir -p "${hdrdest}/arch/x86/entry/syscalls"
|
||||||
|
cp -a arch/x86/entry/syscalls/syscall_32.tbl "${hdrdest}/arch/x86/entry/syscalls"
|
||||||
|
|
||||||
mkdir -p ${hdrdest}/arch/${arch}/kernel
|
mkdir -p ${hdrdest}/arch/${arch}/kernel
|
||||||
cp arch/${arch}/Makefile ${hdrdest}/arch/${arch}
|
cp arch/${arch}/Makefile ${hdrdest}/arch/${arch}
|
||||||
|
@ -222,6 +230,7 @@ do_install() {
|
||||||
cp arch/x86/kernel/asm-offsets.s ${hdrdest}/arch/x86/kernel
|
cp arch/x86/kernel/asm-offsets.s ${hdrdest}/arch/x86/kernel
|
||||||
elif [ "$arch" = "arm64" ]; then
|
elif [ "$arch" = "arm64" ]; then
|
||||||
mkdir -p ${hdrdest}/arch/arm64/kernel
|
mkdir -p ${hdrdest}/arch/arm64/kernel
|
||||||
|
cp arch/arm64/kernel/asm-offsets.s ${hdrdest}/arch/arm64/kernel
|
||||||
cp -a arch/arm64/kernel/vdso ${hdrdest}/arch/arm64/kernel/
|
cp -a arch/arm64/kernel/vdso ${hdrdest}/arch/arm64/kernel/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -283,21 +292,6 @@ do_install() {
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Remove unneeded architectures
|
|
||||||
case "$arch" in
|
|
||||||
i386|x86_64) _args="arm* m* p*";;
|
|
||||||
arm|arm64) _args="x86* m* p*";;
|
|
||||||
powerpc) _args="arm* m* x86* parisc";;
|
|
||||||
mips) _args="arm* x86* p*";;
|
|
||||||
esac
|
|
||||||
for arch in alpha avr32 blackfin cris frv h8300 \
|
|
||||||
ia64 s* um v850 xtensa ${_args}; do
|
|
||||||
rm -rf ${hdrdest}/arch/${arch}
|
|
||||||
done
|
|
||||||
# Keep arch/x86/ras/Kconfig as it is needed by drivers/ras/Kconfig
|
|
||||||
mkdir -p ${hdrdest}/arch/x86/ras
|
|
||||||
cp -a arch/x86/ras/Kconfig ${hdrdest}/arch/x86/ras/Kconfig
|
|
||||||
|
|
||||||
# Extract debugging symbols and compress modules
|
# Extract debugging symbols and compress modules
|
||||||
msg_normal "$pkgver: extracting debug info and compressing modules, please wait...\n"
|
msg_normal "$pkgver: extracting debug info and compressing modules, please wait...\n"
|
||||||
install -Dm644 vmlinux ${DESTDIR}/usr/lib/debug/boot/vmlinux-${_kernver}
|
install -Dm644 vmlinux ${DESTDIR}/usr/lib/debug/boot/vmlinux-${_kernver}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue