Error message from crossdev: >>> Compiling source in /var/tmp/cross/powerpc-softfloat-linux-uclibc/portage/linux-headers-2.6.11-r6/work/linux-2.6.11 ... QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-powerpc-softfloat-linux-uclibc/linux-headers-2.6.11-r6 QA Notice: USE Flag 'crosscompile_opts_headers-only' not in IUSE for cross-powerpc-softfloat-linux-uclibc/linux-headers-2.6.11-r6 HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/split-include HOSTCC scripts/basic/docproc HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/mconf.o HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf *** *** Can't find default configuration "arch/ppc/configs/pmac32_defconfig"! *** make[1]: *** [pmac32_defconfig] Error 1 make: *** [pmac32_defconfig] Error 2 pmac32_defconfig does not exist on 2.6.11, only pmac_defconfig. The pmac32_defconfig is from toolchain.eclass
(In reply to comment #0) > The pmac32_defconfig is from toolchain.eclass I guess not? # grep -Rni pmac32_defconfig /usr/portage/eclass/ /usr/portage/eclass/kernel-2.eclass:436: powerpc*) K_DEFCONFIG="pmac32_defconfig";;
Ah yes, my mistake.
It's pmac32_defconfig for kernel-2.6.16 and up. For 2.6.15 and lower, it's just defconfig. (Due to the kernel headers merge). We could change it to be something like: # if K_DEFCONFIG isn't set, force to "defconfig" # needed by mips if [[ -z ${K_DEFCONFIG} ]]; then if kernel_is le 2 6 15; then K_DEFCONFIG="defconfig"; else case ${CTARGET} in powerpc64*) K_DEFCONFIG="ppc64_defconfig";; powerpc) K_DEFCONFIG="pmac32_defconfig";; *) K_DEFCONFIG="defconfig";; esac fi fi Is that okay?
In the mean time I fixed that ugly typo in the eclass (missing *) just add the right K_DEFCONFIG line in the ebuild please
I guess that means we add K_DEFCONFIG="defconfig" to all of the ppc/ppc64 keyworded kernel source ebuilds before 2.6.16? I think it's probably easier to do it in the eclass. :p
I appreciate if we can resolve this soon, as it is a blocker to my stage1-test-build. Joe, lu_zero, what holds you back?
I would rather do it in the eclass, while lu_zero wants to do it in the source. Who is right? :) I suppose that since there most likely will not be newer ppc sources with "defconfig", that I can see lu_zero's point, but I'm not sure the duplication of K_DEFCONFIG="defconfig" in the many existing ebuilds is the right thing to do either. Comments?
Any progress?
I like the solution proposed by JoseJX, since it correctly handles all 2.6 kernels -- the correct behavior would be propagated to any ebuilds in overlays as well. It's also nice to look in one place and see what happened to the ppc defconfig (and when it happened -- 2.6.15).
sigh... by 2.6.15 I mean 2.6.16
Created attachment 98938 [details, diff] Patch for the defconfig issue Alright, since nothing has happened, if nobody objects, the attached patch is what I'm applying to the eclass. Please voice your opinion now if you don't agree.
there is a typo in the first if (bad cASe handling) use spaces in the case statement after the ) to line things up, not tabs
oh and the is_kernel statement is incorrect i think ... shouldnt it read "2 6 15"
dostrow fixed it already with the same fix that I had. Feel free to reopen if you're still having problems.