diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2018-04-19 00:11:14 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2018-04-19 00:11:14 -0400 |
| commit | 38de9074ff1effefa08bfc71471a97cd0658c10c (patch) | |
| tree | 23a2d9b90c4e6fc8136ea05daa697cc36a94ca9c /scripts/linux.sh | |
| parent | 25a1cb19b213f7825fcc080a29991beeb70f6b93 (diff) | |
| download | min-38de9074ff1effefa08bfc71471a97cd0658c10c.tar.gz min-38de9074ff1effefa08bfc71471a97cd0658c10c.tar.xz | |
Attempts to build zlib, libressl, dropbear, and...
openssh with musl using the host's toolchain.
I'm going to be moving to a toolchain specific to this
system.
Also changed how the kernel is installed, so it makes more sense.
Fixed missing sources for many projects
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" |
