This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new cf9dd1c65 lvgl: silent download and unpack
cf9dd1c65 is described below

commit cf9dd1c65309da6d4e60beeea7e0842f14251d8b
Author: Karel Kočí <[email protected]>
AuthorDate: Wed Feb 22 16:03:31 2023 +0100

    lvgl: silent download and unpack
    
    This introduces changes from NuttX commit
    03b164f59ce40a3f5677b0588af2aee8d9697bf6.
---
 graphics/lvgl/Makefile | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/graphics/lvgl/Makefile b/graphics/lvgl/Makefile
index 8ae2753b7..912f87908 100644
--- a/graphics/lvgl/Makefile
+++ b/graphics/lvgl/Makefile
@@ -94,19 +94,22 @@ LVGL_VERSION = $(patsubst "%",%,$(strip 
$(CONFIG_LVGL_VERSION)))
 LVGL_TARBALL = v$(LVGL_VERSION).zip
 
 LVGL_UNPACKNAME = lvgl
-UNPACK ?= unzip -o
+UNPACK ?= unzip -o $(if $(V),,-q)
+CURL ?= curl -L -O $(if $(V),,-Ss)
 
 LVGL_UNPACKDIR =  $(WD)/$(LVGL_UNPACKNAME)
 
 $(LVGL_TARBALL):
-       $(Q) echo "Downloading: $(LVGL_TARBALL)"
-       $(Q) curl -O -L $(CONFIG_GRAPH_LVGL_URL)/$(LVGL_TARBALL)
+       $(ECHO_BEGIN)"Downloading: $(LVGL_TARBALL)"
+       $(Q) $(CURL) $(CONFIG_GRAPH_LVGL_URL)/$(LVGL_TARBALL)
+       $(ECHO_END)
 
 $(LVGL_UNPACKNAME): $(LVGL_TARBALL)
-       $(Q) echo "Unpacking: $(LVGL_TARBALL) -> $(LVGL_UNPACKNAME)"
+       $(ECHO_BEGIN)"Unpacking: $(LVGL_TARBALL) -> $(LVGL_UNPACKNAME)"
        $(Q) $(UNPACK) $(LVGL_TARBALL)
        $(Q) mv lvgl-$(LVGL_VERSION) $(LVGL_UNPACKNAME)
        $(Q) touch $(LVGL_UNPACKNAME)
+       $(ECHO_END)
 
 # Download and unpack tarball if no git repo found
 ifeq ($(wildcard $(LVGL_UNPACKNAME)/.git),)

Reply via email to