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

lib/systems/platforms: treat missing cpu version as generic pcBase #107999

Merged
merged 1 commit into from Dec 31, 2020

Conversation

andir
Copy link
Member

@andir andir commented Dec 30, 2020

Motivation for this change

Since 40e7be1 all ARM platforms that didn't have a parsed cpu version
(e.g. arm-none-eabi) would be handled as armv7l-hf-multiplatform which
did break building arm-trusted-platform packages for some targets (e.g.
rk3399).

Using pcBase as fallback, instead of armv7l-hf-multiplatform,
corresponds with the behaviour we had before 40e7be1.

Things done
  • building ubootRockPi4 on aarch64-linux works again

Since 40e7be1 all ARM platforms that didn't have a parsed cpu version
(e.g. arm-none-eabi) would be handled as armv7l-hf-multiplatform which
did break building arm-trusted-platform packages for some targets (e.g.
rk3399).

Using pcBase as fallback, instead of armv7l-hf-multiplatform,
corresponds with the behaviour we had before 40e7be1.
@lheckemann
Copy link
Member

I'm not sure exactly what this entails, but kernelArch isn't set in pcBase. I suspect this will prevent building usable kernels.

@lheckemann
Copy link
Member

Then again, I'm not sure if we have generally usable kernels for armv<8 anyway (as opposed to specific kernels for specific devices), so that may be a moot point.

Note also #107214

@Ericson2314
Copy link
Member

This looks good to me. I was skeptical when I read 40e7be1#commitcomment-45533391, but assuming these specific devices i not "proper" anyways, and just something I did for back compat. Ideally that list should only do the "generic" machines anwyays.

Thanks for fixing.

@Ericson2314 Ericson2314 merged commit 15cb121 into NixOS:master Dec 31, 2020
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.

None yet

3 participants