[yocto] Build external module against Yocto kernel

Bruce Ashfield bruce.ashfield at windriver.com
Wed Jan 23 05:48:54 PST 2013


On 13-01-23 12:34 AM, Patrick Turley wrote:
>
> On Jan 22, 2013, at 11:17 PM, Bruce Ashfield <bruce.ashfield at windriver.com> wrote:
>
>> On 13-01-23 12:14 AM, Patrick Turley wrote:
>>> On Jan 22, 2013, at 10:43 PM, Bruce Ashfield<bruce.ashfield at windriver.com>  wrote:
>>>> On 13-01-22 9:26 PM, Patrick Turley wrote:
>>>>> If I just hold down the "Enter" key, I believe all the defaults are taken, and I eventually *do* get hostprogs that execute, but I don't know if they're appropriate to my kernel. (Again, I'm a n00b, so perhaps there's no effect at all.)
>>>>
>>>> This will be fine, the defaults will work. The kernel build infrastructure
>>>> is picking up what it thinks is a change source ->  to config and trying
>>>> to reconcile the differences.
>>>>
>>>> If you throw in a 'make oldconfig' before you do the 'make scripts', does
>>>> that quiet things down a bit ?
>>>
>>> No -- "make oldconfig" caused the very same questions (see below).
>>
>> Aha. of course (now that I think about it), the build was simply triggering
>> old config automatically.
>>
>> silentoldconfig is what I really should have typed :)
>
>
> Nope - still doesn't work.

Argh. I'll have to just run the commands myself and stop spamming the
list with ideas :) It's just a matter of making lkc accept the defaults
(i.e. you could also use allyesconfig, or allnoconfig) or even better
not trigger that config check at all.

Cheers,

Bruce

>
> --------------------
>
> $ sudo make silentoldconfig
>    HOSTCC  scripts/basic/fixdep
>    HOSTCC  scripts/basic/docproc
>    HOSTCC  scripts/kconfig/conf.o
>    HOSTCC  scripts/kconfig/kxgettext.o
>    SHIPPED scripts/kconfig/zconf.tab.c
>    SHIPPED scripts/kconfig/lex.zconf.c
>    SHIPPED scripts/kconfig/zconf.hash.c
>    HOSTCC  scripts/kconfig/zconf.tab.o
>    HOSTLD  scripts/kconfig/conf
> scripts/kconfig/conf --silentoldconfig Kconfig
> *
> * Restart config...
> *
> *
> * General setup
> *
> Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y
> Cross-compiler tool prefix (CROSS_COMPILE) []
> Local version - append to kernel release (LOCALVERSION) []
> Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
> Kernel compression mode
>> 1. Gzip (KERNEL_GZIP)
>    2. Bzip2 (KERNEL_BZIP2) (NEW)
>    3. LZMA (KERNEL_LZMA)
>    4. LZO (KERNEL_LZO)
> choice[1-4?]:
>




More information about the yocto mailing list