This is an automated email from the ASF dual-hosted git repository. jerzy pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/mynewt-core.git
The following commit(s) were added to refs/heads/master by this push: new b35063657 spiflash: Add dependency to stats when needed b35063657 is described below commit b3506365790c44d87685fe0dfb290fdccc89e6d2 Author: Jerzy Kasenberg <jerzy.kasenb...@codecoup.pl> AuthorDate: Thu Jul 24 20:17:22 2025 +0200 spiflash: Add dependency to stats when needed When SPIFLASH_STAT was set to 1 code tries to include stats/stats.h but direct dependency was not there. It worked if other packages included stats. Now code compiles when SPIFLASH_STAT is 1 and nothing else wanted stats. Signed-off-by: Jerzy Kasenberg <je...@apache.org> --- hw/drivers/flash/spiflash/pkg.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/drivers/flash/spiflash/pkg.yml b/hw/drivers/flash/spiflash/pkg.yml index 4a8dc7932..a42727dd5 100644 --- a/hw/drivers/flash/spiflash/pkg.yml +++ b/hw/drivers/flash/spiflash/pkg.yml @@ -26,3 +26,6 @@ pkg.keywords: pkg.deps: - "@apache-mynewt-core/hw/hal" - "@apache-mynewt-core/hw/drivers/flash/spiflash/chips" + +pkg.deps.SPIFLASH_STAT: + - "@apache-mynewt-core/sys/stats"