Skip to content

Commit

Permalink
espressif: quiet git commands and improve build logging
Browse files Browse the repository at this point in the history
Add `--quiet` to git commands to avoid unnecessary logging during
the operation and add summarized logs to show progress.
  • Loading branch information
tmedicci authored and xiaoxiang781216 committed Jul 28, 2023
1 parent e38b4b2 commit 8673e65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions arch/risc-v/src/espressif/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ ifndef ESP_HAL_3RDPARTY_URL
endif

chip/$(ESP_HAL_3RDPARTY_REPO):
$(Q) echo "Cloning: Espressif HAL for 3rd Party Platforms"
$(Q) git clone $(ESP_HAL_3RDPARTY_URL) chip/$(ESP_HAL_3RDPARTY_REPO)
$(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) checkout $(ESP_HAL_3RDPARTY_VERSION)
$(Q) echo "Cloning Espressif HAL for 3rd Party Platforms"
$(Q) git clone --quiet $(ESP_HAL_3RDPARTY_URL) chip/$(ESP_HAL_3RDPARTY_REPO)
$(Q) echo "Espressif HAL for 3rd Party Platforms: ${ESP_HAL_3RDPARTY_VERSION}"
$(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) checkout --quiet $(ESP_HAL_3RDPARTY_VERSION)

# Silent preprocessor warnings

Expand Down
14 changes: 7 additions & 7 deletions arch/xtensa/src/esp32s3/Wireless.mk
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@ ifndef ESP_HAL_3RDPARTY_URL
endif

chip/$(ESP_HAL_3RDPARTY_REPO):
$(Q) echo "Cloning: ESP Wireless Drivers"
$(Q) git clone $(ESP_HAL_3RDPARTY_URL) chip/$(ESP_HAL_3RDPARTY_REPO)
$(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) checkout $(ESP_HAL_3RDPARTY_VERSION)
$(Q) echo "Cloning Espressif HAL for 3rd Party Platforms"
$(Q) git clone --quiet $(ESP_HAL_3RDPARTY_URL) chip/$(ESP_HAL_3RDPARTY_REPO)
$(Q) echo "Espressif HAL for 3rd Party Platforms: checking out to ${ESP_HAL_3RDPARTY_VERSION}"
$(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) checkout --quiet $(ESP_HAL_3RDPARTY_VERSION)

# Silent preprocessor warnings

CFLAGS += -Wno-undef -Wno-unused-variable

context:: chip/$(ESP_HAL_3RDPARTY_REPO)
$(Q) echo "ESP Wireless Drivers: ${ESP_HAL_3RDPARTY_VERSION}"
$(Q) echo "Initializing submodules.."
$(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) submodule update --init --depth=1 components/mbedtls/mbedtls components/esp_phy/lib components/esp_wifi/lib
$(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO)/components/mbedtls/mbedtls reset --hard
$(Q) echo "Espressif HAL for 3rd Party Platforms: initializing submodules..."
$(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO) submodule --quiet update --init --depth=1 components/mbedtls/mbedtls components/esp_phy/lib components/esp_wifi/lib
$(Q) git -C chip/$(ESP_HAL_3RDPARTY_REPO)/components/mbedtls/mbedtls reset --quiet --hard
$(Q) echo "Applying patches..."
$(Q) cd chip/$(ESP_HAL_3RDPARTY_REPO)/components/mbedtls/mbedtls && git apply ../../../nuttx/patches/components/mbedtls/mbedtls/*.patch

Expand Down

0 comments on commit 8673e65

Please sign in to comment.