hardkernel / linux

Linux kernel source tree
Other
427 stars 408 forks source link

UBUNTU: SAUCE: (no-up) add compat_uts_machine= kernel command line override #282

Closed virtuald closed 7 years ago

virtuald commented 7 years ago

I have the same problem that they have, I want to use my odroid-c2 as a build server to build armv7l artifacts.

BugLink: http://bugs.launchpad.net/bugs/1520627

We wish to use the arm64 buildds to build armhf binaries in 32bit chroots. To make this work we need uname to return armv7l machine type. To achieve this add a kernel command line override for the 32bit machine type. Add compat_uts_machine= to allow the LINUX32 personality to return that type for uname.

virtuald commented 7 years ago

Patch is from https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/wily/commit/?h=master-next&id=3decfaaa263a9e20ff1aeeb8756d629a7a1f9365

OtherCrashOverride commented 7 years ago

The bug reports states the issue is "breakage from poorly-written build scripts that misdetect the architecture".

The kernel should never lie to user space. This results in developers creating workarounds for your workaround. The Windows OS "version" API is a good example of this. It is causing many projects headaches since its reports are based on conditional factors in the same way as what is being proposed.

Therefore, I suggest this patch is better suited for private, not global, use. It currently appears specific to a specific project/use case.

mdrjr commented 7 years ago

Yeah, not going to happen this patch.