u-boot: support verbose build
authorFelix Fietkau <nbd@nbd.name>
Sat, 29 Aug 2020 20:24:59 +0000 (22:24 +0200)
committerFelix Fietkau <nbd@nbd.name>
Sat, 12 Jun 2021 08:46:39 +0000 (10:46 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
include/u-boot.mk

index ec9fb15b6ce27d51d592331713c6774c87759feb..c0a1e87bf3d61a082bde3c6baba4c7b99007fca3 100644 (file)
@@ -44,7 +44,8 @@ TARGET_DEP = TARGET_$(BUILD_TARGET)$(if $(BUILD_SUBTARGET),_$(BUILD_SUBTARGET))
 UBOOT_MAKE_FLAGS = \
        HOSTCC="$(HOSTCC)" \
        HOSTCFLAGS="$(HOST_CFLAGS) $(HOST_CPPFLAGS) -std=gnu11" \
-       HOSTLDFLAGS="$(HOST_LDFLAGS)"
+       HOSTLDFLAGS="$(HOST_LDFLAGS)" \
+       $(if $(findstring c,$(OPENWRT_VERBOSE)),V=1,V='')
 
 define Build/U-Boot/Target
   $(eval $(call U-Boot/Init,$(1)))