Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: DKMS RPM #125

Merged
merged 10 commits into from
Jan 31, 2024
Merged

refactor: DKMS RPM #125

merged 10 commits into from
Jan 31, 2024

Conversation

jerzyjamroz
Copy link
Contributor

@jerzyjamroz jerzyjamroz commented Jan 29, 2024

@mdavidsaver , I did refactoring as follows:

  • dkms changed to dkms-rpm - it will distinguish once we add dkms-deb or Yocto build.
  • The package will be named: mrfioc2-dkms.
  • The control variables are exposed now so it is easier to configure the package (it can be adjusted in the future once more builds are added.)
  • Version 3 (plus arch and dist tags) of the kmod added.
  • FIXME: - minimal update just with one printk (it requires more time to review all).
  • The failing kernel-build was removed from the push action (it has to be executed manually now). It avoids too many error messages.
  • The packages are planned to be released probably together with the release (not done yet).

@jerzyjamroz
Copy link
Contributor Author

@lucmaga , just the lookup to our conversation.

@jerzyjamroz jerzyjamroz force-pushed the dkms-rpm branch 4 times, most recently from 96a2a72 to e490696 Compare January 30, 2024 09:32
@@ -0,0 +1,2 @@
# UDEV rule giving access to MRF device
KERNEL=="uio*", ATTR{name}=="mrf-pci", GROUP="@@DRV_GROUP@@", MODE="0660", RUN+="/bin/chmod g+rw %S%p/resource0 && /bin/logger UDEV rule giving access to MRF device %S%p"
Copy link
Contributor

Choose a reason for hiding this comment

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

@jerzyjamroz , does that chmod is necessary ? My understanding is that the MODE defined should change the permission

Copy link
Contributor Author

Choose a reason for hiding this comment

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

chmod changes other resource but there is an issue in Centos7, I leave this for eventual future improvement, mostly for the Yocto test.

# Specify the group for the MRF driver user here

# NOTE: group root can be adjusted by the configuration tool
DRV_GROUP := root
Copy link
Contributor

Choose a reason for hiding this comment

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

Does make sense to have the default group as root ? I would except that root is not the common case, as the users might access the driver with common users

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is an open question. I think it can be configured by any configuration tool after the installation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Group "mrf" and "660" implemented.

@gabrielfedel
Copy link
Contributor

One last question, would that change generate an automatic rpm on the CI ?

@jerzyjamroz jerzyjamroz merged commit 4382d06 into epics-modules:master Jan 31, 2024
3 checks passed
@jerzyjamroz jerzyjamroz deleted the dkms-rpm branch January 31, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants