Lines Matching full:build

6 		dnl # Setup the kernel build environment.
34 dnl # which interfaces are available. By invoking the kernel build system
286 dnl # source (source) and prebuilt (build) files. Additionally, there are
287 dnl # `source` and `build` symlinks in `/lib/modules/$(KERNEL_VERSION)`
299 dnl # - `/lib/modules/$(uname -r)/{source,build}` respectively, if exist.
301 dnl # - If only `/lib/modules/$(uname -r)/build` exists, it is assumed
302 dnl # to be both source and build directory.
306 dnl # `build` symlinks/directories. If module directory contains only
307 dnl # `build` component, it is assumed to be both source and build
312 dnl # to `sort -V` is assumed to be both source and build directory.
322 [Path to kernel build objects]),
325 AC_MSG_CHECKING([kernel source and build directories])
330 test -e "/lib/modules/$(uname -r)/build"], [
332 build="/lib/modules/$(uname -r)/build"
333 ], [test -e "/lib/modules/$(uname -r)/build"], [
334 build="/lib/modules/$(uname -r)/build"
335 src="$build"
340 if test -e "$d/source" && test -e "$d/build"; then
342 build="$d/build"
346 if test -e "$d/build"; then
347 src="$d/build"
348 build="$d/build"
357 build="$src"
366 AS_IF([test -n "$build" && test -e "$build"], [
367 kernelbuild=$(readlink -e "$build")
381 AC_MSG_CHECKING([kernel build directory])
387 *** location of the kernel source and build with the '--with-linux=PATH' and
428 *** Cannot build against kernel version $kernsrcver.
453 *** Cannot build against kernel version $kernsrcver.
476 Even if it appears to build and run correctly, there may be bugs that
525 [Path to qat build objects]),
543 AC_MSG_CHECKING([qat build directory])
545 qatbuild="${qatsrc}/build"
588 test -d build/$2 || mkdir -p build/$2
589 cat - <<_ACEOF >build/$2/$2.h
598 test -d build/$2 || mkdir -p build/$2
599 cat confdefs.h - <<_ACEOF >build/$2/$2.c
609 dnl # $3 - additional build flags
612 test -d build || mkdir -p build
613 test -d build/$1 || mkdir -p build/$1
615 file=build/$1/Makefile
617 dnl # Example command line to manually build source.
619 # Example command line to manually build source
620 # make modules -C $LINUX_OBJ $ARCH_UM M=$PWD/build/$1
631 AS_IF([test "x$2" = "xyes"], [echo "obj-m += $1/" >>build/Makefile], [])
661 test -d build/$1 && rm -Rf build/$1
662 test -f build/Makefile && sed '/$1/d' build/Makefile
668 dnl # $1 - build dir
683 build kernel modules with LLVM/CLANG toolchain])
686 AC_ARG_VAR([KERNEL_ARCH], [Architecture to build kernel modules for])
694 -C $LINUX_OBJ $ARCH_UM M=$PWD/$1 >$1/build.log 2>&1])
704 ZFS_LINUX_COMPILE([$2], [test -f $2/build.log], [
706 mv $2/build.log $2/build.log.$1
717 dnl # be an incremental build if the objects have already been built.
720 ZFS_LINUX_COMPILE([$2], [test -f $2/build.log], [
722 cat $2/build.log >>build/build.log.$1
732 dnl # Phase 1) attempt to build the object files for all of the tests
739 dnl # This allows us efficiently build the test cases in parallel while
740 dnl # remaining resilient to build failures which are expected when
748 ZFS_LINUX_TEST_COMPILE([$1], [build])
769 build/Makefile.compile.$1); do
771 AS_IF([test -f build/$name/$name.o], [
774 [build/$name])
775 echo "obj-n += $dir" >>build/Makefile
777 echo "obj-m += $dir" >>build/Makefile
780 echo "obj-n += $dir" >>build/Makefile
784 ZFS_LINUX_TEST_MODPOST([$1], [build])
787 build/Makefile.compile.$1); do
789 AS_IF([test -f build/$name/$name.o], [
790 touch build/$name/$name.ko
832 AS_IF([test -d build/$1], [
833 AS_IF([test -f build/$1/$1.ko], [$2], [$3])
868 AS_IF([ ! test -f build/$1/$1.ko], [
890 [m4_ifvaln([$5], [-I$PWD/build/conftest], [])])
891 ZFS_LINUX_COMPILE([build/conftest], [$2], [$3], [$4], [], [])
911 [test -f build/conftest/conftest.o], [$3], [$4])
916 [test -f build/conftest/conftest.ko], [$3], [$4])
984 [test -f build/conftest/conftest.o], [$3], [$4], [$5])
989 [test -f build/conftest/conftest.ko], [$3], [$4], [$5])