linux4.0: install headers into the right location (#1788)
This commit is contained in:
parent
a5ceb6b70a
commit
4017f61e7c
1 changed files with 9 additions and 9 deletions
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
pkgname=linux4.0
|
pkgname=linux4.0
|
||||||
version=4.0.5
|
version=4.0.5
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="linux-${version}"
|
wrksrc="linux-${version}"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://www.kernel.org"
|
homepage="http://www.kernel.org"
|
||||||
|
@ -87,11 +87,11 @@ do_build() {
|
||||||
make ARCH=$arch ${_cross} ${makejobs} ${_args}
|
make ARCH=$arch ${_cross} ${makejobs} ${_args}
|
||||||
}
|
}
|
||||||
do_install() {
|
do_install() {
|
||||||
local arch _args hdrdest
|
local arch subarch _args hdrdest
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686*) arch=i386;;
|
i686*) arch=x86; subarch=i386;;
|
||||||
x86_64*) arch=x86_64;;
|
x86_64*) arch=x86; subarch=x86_64;;
|
||||||
armv7*) arch=arm;;
|
armv7*) arch=arm;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ do_install() {
|
||||||
vinstall System.map 644 boot System.map-${_kernver}
|
vinstall System.map 644 boot System.map-${_kernver}
|
||||||
|
|
||||||
case "$arch" in
|
case "$arch" in
|
||||||
i386|x86_64)
|
x86)
|
||||||
vinstall arch/x86/boot/bzImage 644 boot vmlinuz-${_kernver}
|
vinstall arch/x86/boot/bzImage 644 boot vmlinuz-${_kernver}
|
||||||
;;
|
;;
|
||||||
arm)
|
arm)
|
||||||
|
@ -143,19 +143,19 @@ do_install() {
|
||||||
|
|
||||||
cd ${wrksrc}
|
cd ${wrksrc}
|
||||||
mkdir -p ${hdrdest}/arch/${arch}
|
mkdir -p ${hdrdest}/arch/${arch}
|
||||||
cp -a arch/x86/include ${hdrdest}/arch/${arch}
|
cp -a arch/${arch}/include ${hdrdest}/arch/${arch}
|
||||||
|
|
||||||
# Copy files necessary for later builds, like nvidia and vmware
|
# Copy files necessary for later builds, like nvidia and vmware
|
||||||
cp Module.symvers ${hdrdest}
|
cp Module.symvers ${hdrdest}
|
||||||
cp -a scripts ${hdrdest}
|
cp -a scripts ${hdrdest}
|
||||||
|
|
||||||
mkdir -p ${hdrdest}/arch/${arch}/kernel
|
mkdir -p ${hdrdest}/arch/${arch}/kernel
|
||||||
cp arch/x86/Makefile ${hdrdest}/arch/${arch}
|
cp arch/${arch}/Makefile ${hdrdest}/arch/${arch}
|
||||||
if [ "$arch" = "i386" ]; then
|
if [ "$subarch" = "i386" ]; then
|
||||||
mkdir -p ${hdrdest}/arch/x86
|
mkdir -p ${hdrdest}/arch/x86
|
||||||
cp arch/x86/Makefile_32.cpu ${hdrdest}/arch/x86
|
cp arch/x86/Makefile_32.cpu ${hdrdest}/arch/x86
|
||||||
fi
|
fi
|
||||||
if [ "$arch" = "i386" -o "$arch" = "x86_64" ]; then
|
if [ "$arch" = "x86" ]; then
|
||||||
mkdir -p ${hdrdest}/arch/x86/kernel
|
mkdir -p ${hdrdest}/arch/x86/kernel
|
||||||
cp arch/x86/kernel/asm-offsets.s ${hdrdest}/arch/x86/kernel
|
cp arch/x86/kernel/asm-offsets.s ${hdrdest}/arch/x86/kernel
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue