Harmonize stages 0 and 2 kernel headers installation
[hvlinux.git] / stage2 / pkg / kernel-headers
index 56fee46..35810b3 100644 (file)
@@ -5,8 +5,10 @@ hvbuild()
     # Install headers
     cd ${LFS_TMP}/${PACKAGE}
 
-    make mrproper
-    make INSTALL_HDR_PATH=dest headers_install
-    cp -rv dest/include/* /usr/include
-    find /usr/include -name .install -or -name ..install.cmd | xargs rm -fv
+    local DESTDIR=/usr/include
+
+    ${HVMAKE} mrproper
+    ${HVMAKE} INSTALL_HDR_PATH=dest headers_install
+    cp -rv dest/include/* ${DESTDIR}
+    find ${DESTDIR} -name .install -or -name ..install.cmd | xargs rm -fv
 }