* Problem building the linux kernel outside source directory for mips
@ 2013-06-02 13:26 Michael Stickel
2013-06-02 20:23 ` Bruce Ashfield
0 siblings, 1 reply; 4+ messages in thread
From: Michael Stickel @ 2013-06-02 13:26 UTC (permalink / raw)
To: yocto
Hi,
I am new to yocto, so I don't know if this is the right list.
I tried to build a kernel for the MTX-1 platform that uses an AU1500
which is a MIPS32 based SoC.
After some work I got the standard kernel (3.8.4) used in poky 9 to work.
But I encountered some problems:
In poky-dylan-9.0.0/meta/recipes-kernel/linux/linux-yocto.inc the
builddir is set to
"${WORKDIR}/linux-${MACHINE}-${LINUX_KERNEL_TYPE}-build", but
KERNEL_EXTRA_ARGS does not contain O="${B}". How is the the out of
source build of the kernel meant to work?
The task do_kernel_configme trashed my kernel config. This may be
because defconfig is copied to ${B}/.config and do_kernel_configme is
executed in ${S} and does not find .config.
Is the intended behavior of the out of source build for the kernel
documented.
BTW: The kernel works and boots the core-image-minimal with usb USB
Storage as rootfs.
Best regards
Michael
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Problem building the linux kernel outside source directory for mips
2013-06-02 13:26 Problem building the linux kernel outside source directory for mips Michael Stickel
@ 2013-06-02 20:23 ` Bruce Ashfield
2013-06-03 18:54 ` Michael Stickel
0 siblings, 1 reply; 4+ messages in thread
From: Bruce Ashfield @ 2013-06-02 20:23 UTC (permalink / raw)
To: Michael Stickel; +Cc: yocto
On 13-06-02 09:26 AM, Michael Stickel wrote:
> Hi,
>
> I am new to yocto, so I don't know if this is the right list.
This will work, we also have the linux-yocto@yoctoproject.org kernel
mailing list.
>
> I tried to build a kernel for the MTX-1 platform that uses an AU1500
> which is a MIPS32 based SoC.
> After some work I got the standard kernel (3.8.4) used in poky 9 to work.
> But I encountered some problems:
>
> In poky-dylan-9.0.0/meta/recipes-kernel/linux/linux-yocto.inc the
> builddir is set to
> "${WORKDIR}/linux-${MACHINE}-${LINUX_KERNEL_TYPE}-build", but
> KERNEL_EXTRA_ARGS does not contain O="${B}". How is the the out of
> source build of the kernel meant to work?
Can you elaborate on this ? Are you actually seeing a problem, or
just wondering about the glue ? If it's the glue, kernel-yocto.bbclass
sets:
KBUILD_OUTPUT = "${B}"
For the desired source/binary split.
>
> The task do_kernel_configme trashed my kernel config. This may be
> because defconfig is copied to ${B}/.config and do_kernel_configme is
> executed in ${S} and does not find .config.
Same question as above. This is basic functionality and kernel_configme
is aware of the source/binary split, and has been doing this since
yocto 0.9.
Can you define "trashed" ?
>
> Is the intended behavior of the out of source build for the kernel
> documented.
Everything should be in the kernel-dev manual and the other yocto
project documentation. There's not that much to document, since the
functionality has been unchanged for quite some time and works behind
the scenes for a linux-yocto* based build.
Cheers,
Bruce
>
> BTW: The kernel works and boots the core-image-minimal with usb USB
> Storage as rootfs.
>
> Best regards
> Michael
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Problem building the linux kernel outside source directory for mips
2013-06-02 20:23 ` Bruce Ashfield
@ 2013-06-03 18:54 ` Michael Stickel
2013-06-03 19:29 ` Bruce Ashfield
0 siblings, 1 reply; 4+ messages in thread
From: Michael Stickel @ 2013-06-03 18:54 UTC (permalink / raw)
To: yocto
On 02/06/13 22:23, Bruce Ashfield wrote:
> Can you define "trashed" ?
My defconfig is for mips and the .config file was for x86.
But I will dig into the documentation you mentioned first and try to
find out what I did wrong and come back later.
Best Regards
Michael
PS: Sorry for the PM, wrong address.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Problem building the linux kernel outside source directory for mips
2013-06-03 18:54 ` Michael Stickel
@ 2013-06-03 19:29 ` Bruce Ashfield
0 siblings, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2013-06-03 19:29 UTC (permalink / raw)
To: Michael Stickel; +Cc: yocto
On 13-06-03 02:54 PM, Michael Stickel wrote:
> On 02/06/13 22:23, Bruce Ashfield wrote:
>> Can you define "trashed" ?
>
> My defconfig is for mips and the .config file was for x86.
Hmmm. That should definitely not happen, unless the wrong BSP description
is being picked up and built. Is this the qemumips BSP, or something
custom ?
>
> But I will dig into the documentation you mentioned first and try to
> find out what I did wrong and come back later.
>
Sounds good. I'll wait to hear more.
Cheers,
Bruce
>
> Best Regards
> Michael
> PS: Sorry for the PM, wrong address.
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-06-03 19:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-02 13:26 Problem building the linux kernel outside source directory for mips Michael Stickel
2013-06-02 20:23 ` Bruce Ashfield
2013-06-03 18:54 ` Michael Stickel
2013-06-03 19:29 ` Bruce Ashfield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.