diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-15 15:01:45 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-04-15 15:01:45 -0400 |
| commit | 104f042ddbef56e323b61353fceeb5fd3dae5556 (patch) | |
| tree | 3138009b987133ca82c17da4aeb87e97eacc6635 /scripts/linux.sh | |
| parent | 6fa2b7b7011b709d7fd470c3dcaacfe7c10cf28e (diff) | |
| download | min-104f042ddbef56e323b61353fceeb5fd3dae5556.tar.gz min-104f042ddbef56e323b61353fceeb5fd3dae5556.tar.xz | |
Added kernel config and many more scripts
Altered scripts to allow for rebuilding wihout deleting
the `build` folder.
Added ncurses and vim to the build.
Also added initial version of runit
Still need to make sure that get_sources and distfiles are
properly gathered from the script soon
Diffstat (limited to 'scripts/linux.sh')
| -rw-r--r-- | scripts/linux.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/scripts/linux.sh b/scripts/linux.sh new file mode 100644 index 0000000..bbb0477 --- /dev/null +++ b/scripts/linux.sh @@ -0,0 +1,19 @@ +#!/bin/sh +. ./.vars +VERSION=4.16.2 +KERNEL_TAR_PKG="${build_dir}/linux-$VERSION/linux-$VERSION-x86.tar" +cd $build_dir +if ! [ -d "${build_dir}/linux-$VERSION" ] ; then + xz -dc < "${dist_dir}/linux-$VERSION.tar.xz" | tar -xvf - +fi +cd "linux-$VERSION" +if ! [ -e ./.config ] ; then + cp "${base_dir}/kernel-config" ./.config +fi +if ! [ -f "$KERNEL_TAR_PKG" ] ; then + make olddefconfig + make -j8 bzImage modules + make tar-pkg +fi +cd "$prefix" +tar -xvf - < "$KERNEL_TAR_PKG" |
