From f124af09c4cb959759ba6a319d4cdf9e1d3142d2 Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Sun, 18 Mar 2018 10:31:03 +0000 Subject: [PATCH] Don't clean kernel_module by default to save some nanoseconds --- README.adoc | 9 +++++++++ build | 2 -- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.adoc b/README.adoc index 2a8fc3f..76e93de 100644 --- a/README.adoc +++ b/README.adoc @@ -2766,6 +2766,15 @@ dmesg -T sudo lsmod | grep hello .... +Once you are done with this method, you must clean up the in-tree build objects before you decide to do the right thing and move on to the superior `./build` Buildroot method: + +.... +cd "kernel_module" +./make-host.sh clean +.... + +otherwise they will cause problems. + === Hello host Minimal host build system sanity check example. diff --git a/build b/build index 35e37b0..189c4d6 100755 --- a/build +++ b/build @@ -136,8 +136,6 @@ BR2_ROOTFS_POST_SCRIPT_ARGS=\"$post_script_args\" make O="$out_dir" olddefconfig fi -cd "${root_dir}/kernel_module" -./make-host.sh -j "$j" clean mkdir -p "${root_dir}/9p" cd "${buildroot_dir}" # HOST_QEMU_OPTS is a hack that happens to work because the QEMU package luckly uses += at all times.