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

Figure out kldxref on cross builds #28

Open
artemist opened this issue Mar 14, 2024 · 5 comments
Open

Figure out kldxref on cross builds #28

artemist opened this issue Mar 14, 2024 · 5 comments

Comments

@artemist
Copy link
Member

FreeBSD will not load module dependencies unless it has a linker.hints file in the modules directory. We can do this during build on native builds, but there seems to be no way to compile the required kldxref tool with compat for cross-builds.

We should figure out how to make a service that runs kldxref on first boot, or decide to not care about cross builds.

@rhelmot
Copy link
Collaborator

rhelmot commented Mar 14, 2024

first boot services are easy with rc - the system keeps a "first boot sentinel" and will automatically only run services tagged firstboot when it is missing, then automatically creates the sentinel.

@artemist
Copy link
Member Author

True, the problem is that we would want to put linker.hints with the kernel modules, which is in the store

@rhelmot
Copy link
Collaborator

rhelmot commented Mar 14, 2024

on one hand! we already have services which cannot build cross, it's "the entire graphical system"

on the other hand! we should really care about cross!

@rhelmot
Copy link
Collaborator

rhelmot commented Mar 14, 2024

maybe just do #12 and suffer

@artemist
Copy link
Member Author

My current solution is to only run kldxref on native builds, and you don't get dependencies on cross builds, not optimal but it's easy.

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

No branches or pull requests

2 participants