Skip to content

Fix module build on CentOS 9 and 10#561

Open
richgieg wants to merge 2 commits intoDisplayLink:mainfrom
richgieg:fix-centos-9-10-build
Open

Fix module build on CentOS 9 and 10#561
richgieg wants to merge 2 commits intoDisplayLink:mainfrom
richgieg:fix-centos-9-10-build

Conversation

@richgieg
Copy link
Copy Markdown

@richgieg richgieg commented Mar 1, 2026

The evdi module build fails on CentOS Stream 9 and 10 due to some 6.17 kernel changes being backported. This PR adds a CENTOSFLAG to differentiate from ELFLAG because CentOS Stream runs ahead of the other EL kernels (Rocky Linux, AlmaLinux, RHEL) and they don't have the same changes backported yet.

I suppose when the time comes to add the defined(EL9) and defined(EL10) checks for the 6.17 changes to evdi_drm_drv.h‎ and evdi_fb.c, then the defined(CENTOS9) and defined(CENTOS10) checks can be removed because CentOS Stream 9 and 10 also trigger the EL9 and EL10 flags, respectively. But it wouldn't hurt to leave them either.

@synaptics-lspintzyk
Copy link
Copy Markdown
Contributor

FYI @elguero, please approve.

Copy link
Copy Markdown
Contributor

@elguero elguero left a comment

Choose a reason for hiding this comment

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

This is a good addition. It will allow us to know ahead of time what is coming into EL distros. When those changes land for EL, we just need to change the CENTOS flag to EL in those conditionals.

Comment thread module/Makefile Outdated
endif

ifneq (,$(findstring centos,$(ID)))
CENTOSFLAG := -DCENTOS$(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.

I would suggest setting the version the same way that it is being done above on line 12

-DCENTOS$(shell echo $(VERSION_ID) | cut -d. -f1)

Otherwise, the flag looks like this -DEL9 -DCENTOS"9" or -DEL9 -DCENTOS"10"

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.

Also, I tested this patch against CentOS Stream 9 and 10.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Thank you @elguero for your review! I added a commit with the requested change.

Copy link
Copy Markdown
Contributor

@elguero elguero left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM

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.

3 participants