X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage2%2Fpkg%2Flinux;h=a3ee9f59243976113822d33030fd2a8011c7103b;hb=45772460c845b10a51eda6db02496c7967cda377;hp=2065bf0bf0912bd444bb63926e3fa7cdbd5e9c0a;hpb=b5bfb2006502b57fab234345a2393fd04e6d55ad;p=hvlinux.git diff --git a/stage2/pkg/linux b/stage2/pkg/linux index 2065bf0..a3ee9f5 100644 --- a/stage2/pkg/linux +++ b/stage2/pkg/linux @@ -2,7 +2,13 @@ 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