]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
Makefile: Fix build verbosity for V=0
authorStefan Jumarea <stefanjumarea02@gmail.com>
Tue, 22 Aug 2023 17:35:16 +0000 (20:35 +0300)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:32:28 +0000 (19:32 +0300)
When setting `V=0`, we expect the verbosity level to be reduced, and
only the build output to be printed, not the build commands.
Set `Q = @` by default, in case `V != 0` is set, set `Q` appropriately.

Signed-off-by: Stefan Jumarea <stefanjumarea02@gmail.com>
GitHub-Fixes: #676
Reviewed-by: Razvan Virtan <virtanrazvan@gmail.com>
Reviewed-by: Robert Kuban <robert.kuban@opensynergy.com>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1066

Makefile

index 3af8beeeb9e7fb1f91718f1997a2e7c209829273..52cacb7bad9298be540df7046571587803de1844 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -83,14 +83,15 @@ export CDPATH :=
 
 # To put more focus on warnings, be less verbose as default
 # Use 'make V=1' to see the full commands
+# Set KBUILD_VERBOSE and Q to quiet mode
+KBUILD_VERBOSE := 0
+Q := @
+
 ifeq ("$(origin V)", "command line")
   BUILD_VERBOSE = $(V)
 endif
 ifndef BUILD_VERBOSE
   BUILD_VERBOSE = 0
-  # Set KBUILD_VERBOSE and Q to quiet mode
-  KBUILD_VERBOSE := 0
-  Q := @
 endif
 
 ifneq ($(BUILD_VERBOSE),0)