Revert "Fixed separate build of linux-vfio-headers package"

This reverts commit 2bc8cf05ec.
This commit is contained in:
Dan Ziemba 2015-07-05 15:23:37 -04:00
parent ada7f489b6
commit bd230f8130

View File

@ -41,8 +41,6 @@ validpgpkeys=(
) )
_kernelname=${pkgbase#linux} _kernelname=${pkgbase#linux}
_KARCH=x86
prepare() { prepare() {
cd "${srcdir}/${_srcname}" cd "${srcdir}/${_srcname}"
@ -120,6 +118,8 @@ _package() {
cd "${srcdir}/${_srcname}" cd "${srcdir}/${_srcname}"
KARCH=x86
# get kernel version # get kernel version
_kernver="$(make LOCALVERSION= kernelrelease)" _kernver="$(make LOCALVERSION= kernelrelease)"
_basekernel=${_kernver%%-*} _basekernel=${_kernver%%-*}
@ -127,7 +127,7 @@ _package() {
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot} mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
cp arch/$_KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}" cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgbase}"
# set correct depmod command for install # set correct depmod command for install
cp -f "${startdir}/${install}" "${startdir}/${install}.pkg" cp -f "${startdir}/${install}" "${startdir}/${install}.pkg"
@ -202,15 +202,15 @@ _package-headers() {
chmod og-w -R "${pkgdir}/usr/lib/modules/${_kernver}/build/scripts" chmod og-w -R "${pkgdir}/usr/lib/modules/${_kernver}/build/scripts"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/.tmp_versions" mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/.tmp_versions"
mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${_KARCH}/kernel" mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/kernel"
cp arch/${_KARCH}/Makefile "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${_KARCH}/" cp arch/${KARCH}/Makefile "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
if [ "${CARCH}" = "i686" ]; then if [ "${CARCH}" = "i686" ]; then
cp arch/${_KARCH}/Makefile_32.cpu "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${_KARCH}/" cp arch/${KARCH}/Makefile_32.cpu "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/"
fi fi
cp arch/${_KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${_KARCH}/kernel/" cp arch/${KARCH}/kernel/asm-offsets.s "${pkgdir}/usr/lib/modules/${_kernver}/build/arch/${KARCH}/kernel/"
# add docbook makefile # add docbook makefile
install -D -m644 Documentation/DocBook/Makefile \ install -D -m644 Documentation/DocBook/Makefile \