summaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
Diffstat (limited to 'repo')
-rw-r--r--repo/linux/linux.xibuild6
-rw-r--r--repo/system/kmod.xibuild12
2 files changed, 11 insertions, 7 deletions
diff --git a/repo/linux/linux.xibuild b/repo/linux/linux.xibuild
index 2121288..8c3ba6f 100644
--- a/repo/linux/linux.xibuild
+++ b/repo/linux/linux.xibuild
@@ -19,7 +19,7 @@ build () {
package () {
local kernver="$(<version)"
- local modulesdir="$PKG_DEST/usr/lib/modules/$kernver"
+ local modulesdir="$PKG_DEST/usr/lib/modules/$PKG_VER"
echo "Installing boot image..."
mkdir -pv $PKG_DEST/boot
@@ -41,5 +41,9 @@ install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true
# End /etc/modprobe.d/usb.conf
EOF
+
+ echo "Installing modules..."
+ make INSTALL_MOD_PATH="$PKG_DEST/usr" INSTALL_MOD_STRIP=1 modules_install
+ rm "$modulesdir"/{source,build}
}
diff --git a/repo/system/kmod.xibuild b/repo/system/kmod.xibuild
index 5fe34d6..b28afc3 100644
--- a/repo/system/kmod.xibuild
+++ b/repo/system/kmod.xibuild
@@ -20,10 +20,10 @@ build () {
package () {
make DESTDIR=$PKG_DEST install
mkdir -p /usr/bin
- ln -sfv kmod $PKG_DERT/usr/bin/depmod
- ln -sfv kmod $PKG_DERT/usr/bin/insmod
- ln -sfv kmod $PKG_DERT/usr/bin/modinfo
- ln -sfv kmod $PKG_DERT/usr/bin/modprobe
- ln -sfv kmod $PKG_DERT/usr/bin/rmmod
- ln -sfv kmod $PKG_DEST/usr/bin/lsmod
+ ln -sv kmod $PKG_DERT/usr/bin/depmod
+ ln -sv kmod $PKG_DERT/usr/bin/insmod
+ ln -sv kmod $PKG_DERT/usr/bin/modinfo
+ ln -sv kmod $PKG_DERT/usr/bin/modprobe
+ ln -sv kmod $PKG_DERT/usr/bin/rmmod
+ ln -sv kmod $PKG_DEST/usr/bin/lsmod
}