diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-19 00:13:39 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-04-19 00:13:39 -0400 |
| commit | db54ef567f4c724299ad1830d574052170247e04 (patch) | |
| tree | 23cb53b4d9eadf99cd014c31e926fe6d1c4cc2c2 /scripts/linux.sh | |
| parent | d0bd2d53b1186300abd32822276e992d1359a92a (diff) | |
| parent | 38de9074ff1effefa08bfc71471a97cd0658c10c (diff) | |
| download | min-db54ef567f4c724299ad1830d574052170247e04.tar.gz min-db54ef567f4c724299ad1830d574052170247e04.tar.xz | |
Merged in changes from my desktop
Diffstat (limited to 'scripts/linux.sh')
| -rw-r--r-- | scripts/linux.sh | 21 |
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" |
