mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 02:47:13 +08:00
linux 3.6.6 wil be next kernel, though no move to /usr/lib at this time
This commit is contained in:
parent
1f753785c4
commit
42646f2219
@ -114,7 +114,7 @@ build() {
|
||||
####################
|
||||
|
||||
# build!
|
||||
make ${MAKEFLAGS} LOCALVERSION= bzImage modules
|
||||
make ${MAKEFLAGS} bzImage modules
|
||||
}
|
||||
|
||||
package_linux() {
|
||||
@ -133,10 +133,10 @@ package_linux() {
|
||||
KARCH=x86
|
||||
|
||||
# get kernel version
|
||||
_kernver="$(make LOCALVERSION= kernelrelease)"
|
||||
_kernver="$(make kernelrelease)"
|
||||
|
||||
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware,boot}
|
||||
make LOCALVERSION= INSTALL_MOD_PATH="${pkgdir}" modules_install
|
||||
make INSTALL_MOD_PATH="${pkgdir}" modules_install
|
||||
cp arch/$KARCH/boot/bzImage "${pkgdir}/boot/vmlinuz-${pkgname}"
|
||||
|
||||
# add vmlinux
|
||||
@ -173,7 +173,7 @@ package_linux() {
|
||||
depmod -b "$pkgdir" -F System.map "$_kernver"
|
||||
|
||||
# Move module /lib -> /usr/lib
|
||||
mv "$pkgdir/lib" "$pkgdir/usr"
|
||||
#mv "$pkgdir/lib" "$pkgdir/usr"
|
||||
}
|
||||
|
||||
package_linux-headers() {
|
||||
|
@ -10,7 +10,7 @@ export PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
|
||||
post_install () {
|
||||
# updating module dependencies
|
||||
echo ">>> Updating module dependencies. Please wait ..."
|
||||
depmod -b /usr ${KERNEL_VERSION}
|
||||
depmod ${KERNEL_VERSION}
|
||||
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
|
||||
mkinitcpio -p linux${KERNEL_NAME}
|
||||
|
||||
@ -40,7 +40,7 @@ post_upgrade() {
|
||||
|
||||
# updating module dependencies
|
||||
echo ">>> Updating module dependencies. Please wait ..."
|
||||
depmod -b /usr ${KERNEL_VERSION}
|
||||
depmod ${KERNEL_VERSION}
|
||||
echo ">>> Generating initial ramdisk, using mkinitcpio. Please wait..."
|
||||
mkinitcpio -p linux${KERNEL_NAME}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user