X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Flinux;h=a3ee9f59243976113822d33030fd2a8011c7103b;hb=29db7d168ced2d524076370f72a9140521b11105;hp=71e7574d8c6e9cdc97cd4530d8cf53b38b85201d;hpb=3605ab38ca7604b1fe43c3bce5e4963730a85d39;p=hvlinux.git diff --git a/stage2/pkg/linux b/stage2/pkg/linux index 71e7574..a3ee9f5 100644 --- a/stage2/pkg/linux +++ b/stage2/pkg/linux @@ -1,10 +1,14 @@ #!/bin/bash -HV_NO_CONFIGURE_SCRIPT=1 - hvbuild() { - # The kernel sources were already copied into /usr/src in stage0 + # Check if kernel sources from stage0 are still in /usr/src. + # If not, recopy them. + if [ ! -d /usr/src/${PACKAGE} ]; then + cp -a ${LFS_TMP}/${PACKAGE} /usr/src + fi + + # Install headers cd /usr/src/${PACKAGE} make mrproper make headers_check