Skip to content

make: add tasks to count and list drivers#841

Merged
deadprogram merged 2 commits intodevfrom
count-drivers
Feb 25, 2026
Merged

make: add tasks to count and list drivers#841
deadprogram merged 2 commits intodevfrom
count-drivers

Conversation

@deadprogram
Copy link
Member

@deadprogram deadprogram commented Feb 21, 2026

This PR is to add make tasks to count and list drivers. Should be helpful to keep the docs up to date.

$ make drivers-count 
Total drivers: 140 (root: 134, waveshare-epd: 6)

…list of them

Signed-off-by: deadprogram <ron@hybridgroup.com>
Signed-off-by: deadprogram <ron@hybridgroup.com>

drivers-count:
@root_count=$$(find . -mindepth 1 -maxdepth 1 -type d | grep -vE '^\./($(subst $(space),|,$(EXCLUDE_DIRS)))$$' | wc -l); \
epd_count=$$(find ./waveshare-epd -mindepth 1 -maxdepth 1 -type d 2>/dev/null | wc -l); \

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In receipt below, you are checking for existence of ./waveshare-epd dir but here the potential error is dropped to /dev/null - do we actually need to protect against this dir not existing? If so, would be good to unify this ;)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we actually need to protect against this dir not existing?

No, we can be sure it is there.

@deadprogram
Copy link
Member Author

Now merging, thanks for review @b0ch3nski

@deadprogram deadprogram merged commit b480978 into dev Feb 25, 2026
1 check passed
@deadprogram deadprogram deleted the count-drivers branch February 25, 2026 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants