Summary: | linux kernel powerpc has braindead `uname -m` code | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nick Pollitt <npollitt> |
Component: | Current packages | Assignee: | PPC Porters <ppc> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | dberkholz, ferdy, joakim.tjernlund, ppc64, toolchain |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
crossdev info log
crossdev linux-headers log first try linux-ppc-defconfig.patch Yet another solution ebuild fix |
Description
Nick Pollitt
2006-07-31 14:45:49 UTC
Created attachment 93149 [details]
crossdev info log
Created attachment 93150 [details]
crossdev linux-headers log
this is because the new ppc code in the kernel is just plain stupid arch/powerpc/Makefile: KBUILD_DEFCONFIG := $(shell uname -m)_defconfig i'll let the ppc team figure out how they wish to deretardize this my guess, instead of the ugly cp defconfig hack you have now in the linux-headers, you patch the makefile to see if the defconfig exists and if it doesnt, have it fall back to a sane defconfig file The makefile or the eclass... Created attachment 93500 [details, diff]
first try
First try, untested
Created attachment 93529 [details, diff]
linux-ppc-defconfig.patch
that patch wont work ... `uname -m` returns like 'x86_64' on amd64
try this instead ... you should be able to remove the stupid defconfig stuff from the linux-headers ebuild as well with it
on amd64 aren't you supposed to have CROSS_COMPILE set? yes ... so i read the patch slightly wrong ... trying to gather information out of CROSS_COMPILE is still wrong though, the user configuration settings are all that should matter maybe it's my turn to misread, but CONFIG_PPC64 isn't part of .config so you won't have it while you always know what you want if you set the cross compiler to a certain value? Created attachment 94758 [details, diff]
Yet another solution
Upstream won't accept the patch, rationale:
- there are different defconfigs for ppc32
- you should provide a defconfig yourself if you are cross compiling.
Created attachment 94759 [details, diff]
ebuild fix
typo in the previous one...
we want to move this crap out of the ebuilds, not expand upon it *** Bug 145261 has been marked as a duplicate of this bug. *** Fixed by adding some logic in the eclass |