Skip to content

Commit

Permalink
added nanopb library and adjusted make files to ignore nanopb library…
Browse files Browse the repository at this point in the history
… in linting/formatting. (#434)

* added nanopb library

* added quick-lint ignore
  • Loading branch information
ShiCheng-Lu authored Sep 11, 2021
1 parent 50ed21f commit 7419fe3
Show file tree
Hide file tree
Showing 10 changed files with 3,977 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $(foreach lib,$(VALID_LIBRARIES),$(call include_lib,$(lib)))
# Includes all projects so make can find their targets
$(foreach proj,$(VALID_PROJECTS),$(call include_proj,$(proj)))

IGNORE_CLEANUP_LIBS := CMSIS FreeRTOS STM32F0xx_StdPeriph_Driver unity FatFs mu-gen
IGNORE_CLEANUP_LIBS := CMSIS FreeRTOS STM32F0xx_StdPeriph_Driver unity FatFs mu-gen nanopb
IGNORE_CLEANUP_PROJS := bootloader/protogen
# This uses regex
IGNORE_PY_FILES := ./lint.py ./libraries/unity $(VENV_DIR)
Expand All @@ -226,7 +226,7 @@ FIND_PATHS := $(addprefix -o -path $(LIB_DIR)/,$(IGNORE_CLEANUP_LIBS)) $(addpref
FIND := find $(PROJECT_DIR) $(LIBRARY_DIR) \
\( $(wordlist 2,$(words $(FIND_PATHS)),$(FIND_PATHS)) \) -prune -o \
-iname "*.[ch]" -print
FIND_MOD_NEW := git diff origin/master --name-only --diff-filter=ACMRT -- '*.c' '*.h' ':(exclude)*.mako.*' ':(exclude)projects/bootloader/protogen'
FIND_MOD_NEW := git diff origin/master --name-only --diff-filter=ACMRT -- '*.c' '*.h' ':(exclude)*.mako.*' ':(exclude)projects/bootloader/protogen' ':(exclude)libraries/nanopb'
# ignore MU since it has a different pylint
FIND_MOD_NEW_PY := git diff origin/master --name-only --diff-filter=ACMRT -- '*.py' ':(exclude)mu/*.py' ':(exclude)$(VENV_DIR)/*'
FIND_MOD_NEW_MU_PY := git diff origin/master --name-only --diff-filter=ACMRT -- 'mu/*.py' ':(exclude)$(VENV_DIR)/*'
Expand Down
6 changes: 6 additions & 0 deletions libraries/nanopb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This library contains the .h and .c files for nanopb

https://github.com/nanopb

# nanopb

Loading

0 comments on commit 7419fe3

Please sign in to comment.