aboutsummaryrefslogtreecommitdiff
path: root/scripts/linux.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/linux.sh')
-rw-r--r--scripts/linux.sh21
1 files changed, 14 insertions, 7 deletions
diff --git a/scripts/linux.sh b/scripts/linux.sh
index d701216..2bfedd8 100644
--- a/scripts/linux.sh
+++ b/scripts/linux.sh
@@ -10,10 +10,17 @@ cd "linux-$VERSION"
if ! [ -e ./.config ] ; then
cp "${base_dir}/kernel-config" ./.config
fi
-if ! [ -f "$KERNEL_TAR_PKG" ] ; then
- make olddefconfig
- make -j$(nproc) bzImage modules
- make tar-pkg
-fi
-cd "$prefix"
-tar -xvf - < "$KERNEL_TAR_PKG"
+
+for _p in $prefix/boot $prefix/usr/include $prefix/lib/modules ; do
+ if ! [ -d "$_p" ] ; then mkdir -p "$_p"; fi
+done
+
+export INSTALL_PATH="$prefix/boot"
+# export INSTALL_MOD_PATH="$prefix/lib/modules/\$(KERNELRELEASE)"
+export INSTALL_MOD_PATH="$prefix"
+export INSTALL_HDR_PATH="$prefix/usr"
+make olddefconfig
+make -j$(nproc) bzImage modules
+make install
+make modules_install
+make headers_install INSTALL_HDR_PATH="$INSTALL_HDR_PATH"