From: Hugo Villeneuve Date: Sat, 27 Dec 2014 05:08:58 +0000 (-0500) Subject: Harmonize stages 0 and 2 kernel headers installation X-Git-Url: http://gitweb.hugovil.com/?p=hvlinux.git;a=commitdiff_plain;h=83b488f70078ac91921bca488c396c805b388e45 Harmonize stages 0 and 2 kernel headers installation --- diff --git a/stage0/hv-install-2 b/stage0/hv-install-2 index 0fd794c..53694b2 100755 --- a/stage0/hv-install-2 +++ b/stage0/hv-install-2 @@ -6,7 +6,7 @@ source ../functions/main init_log_file if [ x"${INSTALL_GLIBC}" == x"1" ]; then - ipkg -m noac ${KERNEL} + ipkg -m noac -l "kernel-headers" -s "kernel-headers" ${KERNEL} fi ipkg ${GMP} "\ diff --git a/stage0/pkg/kernel-headers b/stage0/pkg/kernel-headers new file mode 100644 index 0000000..6a67dad --- /dev/null +++ b/stage0/pkg/kernel-headers @@ -0,0 +1,15 @@ +#!/bin/bash + +hvbuild() +{ + # Install headers + cd ${LFS_TMP}/${PACKAGE} + + local DESTDIR=${TOOLS_DIR}/include + install -dv ${DESTDIR} + + ${HVMAKE} mrproper + ${HVMAKE} ARCH=${CLFS_ARCH} INSTALL_HDR_PATH=dest headers_install + cp -rv dest/include/* ${DESTDIR} + find ${DESTDIR} -name .install -or -name ..install.cmd | xargs rm -fv +} diff --git a/stage0/pkg/linux b/stage0/pkg/linux deleted file mode 100644 index 19781c7..0000000 --- a/stage0/pkg/linux +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash - -hvbuild() -{ - cd ${LFS_TMP}/${PACKAGE} - - ${HVMAKE} mrproper - ${HVMAKE} ARCH=${CLFS_ARCH} INSTALL_HDR_PATH=dest headers_install - install -dv ${TOOLS_DIR}/include - cp -rv dest/include/* ${TOOLS_DIR}/include -} diff --git a/stage2/pkg/kernel-headers b/stage2/pkg/kernel-headers index 56fee46..35810b3 100644 --- a/stage2/pkg/kernel-headers +++ b/stage2/pkg/kernel-headers @@ -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 }