Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions module/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@
# more details.
#

include /etc/os-release
ifneq ($(wildcard /etc/os-release),)
-include /etc/os-release
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Since you are doing the check above for the existence of the os-release file, then you don't need the - before the include. I mean, no harm, it is just redundant.

endif

ifneq (,$(findstring rhel,$(ID_LIKE)))
ELFLAG := -DEL$(VERSION_ID)
ifneq (,$(VERSION_ID))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why are we adding a check for $VERSION_ID? If ID_LIKE is not set because there is no os-release file, then this block would be skipped anyways.

ELFLAG := -DEL$(VERSION_ID)
endif
endif

Raspbian := $(shell grep -Eic 'raspb(erry|ian)' /proc/cpuinfo /etc/os-release 2>/dev/null )
Expand Down