-
Notifications
You must be signed in to change notification settings - Fork 370
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
Simplify ARCH detection and rework reading /proc/cpuinfo into CPUINFO #9981
base: master
Are you sure you want to change the base?
Conversation
The detection code is useful, I think, since we use minor corrections to what the containers give us to emulate what shows up on actual hardware. It's not just a matter of forcing an ARCH value... |
Isn't it? To me this just seems like leftover code from the days when we couldn't set ARCH via an environment variable, so this can all be replaced by just setting ARCH as armv7l in a container that would otherwise report armv8l. |
The code may be useful, and I'm not comfortable getting rid of it while we are still having architecture specific issues that might be more granular than we assume... |
Do we have any of those issues outstanding? I was under the impression that most of this code wasn't getting used anyways... |
We still don't have aarch64 working!
I think it is premature to assume that when we still have architectures not working properly. And aarch64 user space definitely fits that. That is I think reason enough to keep this plumbing in for now... |
This code is only for containers, though. Thats not particularly related to the aarch64 situation. |
99% of the testing (not just for new architectures) happens in containers... And that goes for aarch64 too. I literally don't have an aarch64 ChromeOS device ... Everything I do is in containers. |
Just to be clear-- all the code around Neither of those variables are used. The only change I'm making is that |
Now that we can set
ARCH
via an environment variable, there's no need to have all the awkward workarounds for containers, as they can simply set the desired architecture.Run the following to get this pull request's changes locally for testing.