Skip to content

Comments

make: add tasks to count and list drivers#841

Open
deadprogram wants to merge 2 commits intodevfrom
count-drivers
Open

make: add tasks to count and list drivers#841
deadprogram wants to merge 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.

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