Whamcloud - gitweb
Of course, we need to work outside of $DO_SRC == 1.
authorbrian <brian>
Tue, 4 Apr 2006 22:33:32 +0000 (22:33 +0000)
committerbrian <brian>
Tue, 4 Apr 2006 22:33:32 +0000 (22:33 +0000)
build/lbuild

index 3ac9cdf..48dfd97 100755 (executable)
@@ -697,9 +697,9 @@ unpack_lustre
 if [ -z "$LINUX" ] ; then
     load_target
 
 if [ -z "$LINUX" ] ; then
     load_target
 
-    if (( $DO_SRC )) ; then
-        unpack_linux
-        if [ "$SERIES" ] ; then
+    if [ "$SERIES" ] ; then
+        if (( $DO_SRC )) ; then
+            unpack_linux
             patch_linux
             pack_linux
             clean_linux
             patch_linux
             pack_linux
             clean_linux
@@ -708,11 +708,13 @@ if [ -z "$LINUX" ] ; then
             clean_lustre
 
             build_kernel
             clean_lustre
 
             build_kernel
-        else
-            # can't build a kernel if we have no series for it (i.e. patchless)
-            LINUX=$(pwd)/linux
-            build_lustre
         fi
         fi
+    else
+        # can't build a kernel if we have no series for it (i.e. patchless)
+        # but we still need the headers
+        unpack_linux
+        LINUX=$(pwd)/linux
+        build_lustre
     fi
 else
     build_lustre
     fi
 else
     build_lustre