All of lore.kernel.org
 help / color / mirror / Atom feed
* in-tree defconfig
@ 2015-12-09 20:28 Robert Berger
  2015-12-09 23:43 ` Robert Berger
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Berger @ 2015-12-09 20:28 UTC (permalink / raw)
  To: yocto

Hi,

What I wanted to do is to start from an in-tree defconfig like
multi_v7_defconfig instead of a defconfig file in a kernel recipe (which
works).

Maybe we have a different definition of an in-tree defconfig file, but
what I mean is the output of make multi_v7_defconfig, I guess what you
mean is arch/arm/configs/multi_v7_defconfig without running make on it.

After stripping blank and commented lines and sorting everything the
difference is:

-rw-rw-r-- 1 student student 14K Dec  9 22:16
KBUILD_DEFCONFIG-stripped-1-sorted
-rw-rw-r-- 1 student student 42K Dec  9 22:14
make-multi_v7_defconfig-stripped-1-sorted

... and the stuff built with KBUILD_DEFCONFIG does not boot ...

So my question is:"Is there a way to tell the kernel build system to run
make multi_v7_defconfig and use this as a base configuration where
patches and configurations will be added later on?"

If so can you see anything I am obviously doing wrong?

I tried this:

# SRC_URI += " \
#         file://defconfig \
#         "

+# Let's try an in-tree defconfig:
#KERNEL_DEFCONFIG_multi-v7-ml ?= "multi_v7_defconfig"
KBUILD_DEFCONFIG_multi-v7-ml ?= "multi_v7_defconfig"

with the kernel recipe of my meta-layer[1]

That's the meta-layer[2].

Regards,

Robert

[1]
https://github.com/RobertBerger/meta-mainline/blob/jethro-training-v4.1.x/multi-v7-ml/recipes-kernel/linux/linux-yocto-custom.inc
[2]
https://github.com/RobertBerger/meta-mainline/tree/jethro-training-v4.1.x/multi-v7-ml


..."What I look forward to is continued immaturity followed by death." -
Dave Barry

My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: in-tree defconfig
  2015-12-09 20:28 in-tree defconfig Robert Berger
@ 2015-12-09 23:43 ` Robert Berger
  2015-12-10  3:13   ` Daniel.
  2015-12-10 11:13   ` Bruce Ashfield
  0 siblings, 2 replies; 4+ messages in thread
From: Robert Berger @ 2015-12-09 23:43 UTC (permalink / raw)
  To: yocto

Hi,

This seems to do the trick:

https://github.com/RobertBerger/meta-mainline/blob/jethro-training-v4.1.x/multi-v7-ml/recipes-kernel/linux/linux-yocto-custom.inc

Regards,

Robert



..."The scientific name for an animal that doesn't either run from or
fight its enemies is lunch." - Michael Friedman

My public pgp key is available,at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: in-tree defconfig
  2015-12-09 23:43 ` Robert Berger
@ 2015-12-10  3:13   ` Daniel.
  2015-12-10 11:13   ` Bruce Ashfield
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel. @ 2015-12-10  3:13 UTC (permalink / raw)
  To: Robert Berger; +Cc: yocto

Hey Robert,

I've done this by prepending kernel configure task. It just copies the
*_defconfig file to WORKDIR as defconfig.

do_configure_prepend() {
    cp ${S}/arch/arm/configs/my_defconfig ${WORKDIR}/defconfig
}

Regards,
- dhs

2015-12-09 21:43 GMT-02:00 Robert Berger <gmane@reliableembeddedsystems.com>:
> Hi,
>
> This seems to do the trick:
>
> https://github.com/RobertBerger/meta-mainline/blob/jethro-training-v4.1.x/multi-v7-ml/recipes-kernel/linux/linux-yocto-custom.inc
>
> Regards,
>
> Robert
>
>
>
> ..."The scientific name for an animal that doesn't either run from or
> fight its enemies is lunch." - Michael Friedman
>
> My public pgp key is available,at:
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
>
>
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto



-- 
"Do or do not. There is no try"
  Yoda Master


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: in-tree defconfig
  2015-12-09 23:43 ` Robert Berger
  2015-12-10  3:13   ` Daniel.
@ 2015-12-10 11:13   ` Bruce Ashfield
  1 sibling, 0 replies; 4+ messages in thread
From: Bruce Ashfield @ 2015-12-10 11:13 UTC (permalink / raw)
  To: Robert Berger, yocto

On 12/09/2015 06:43 PM, Robert Berger wrote:
> Hi,
>
> This seems to do the trick:
>
> https://github.com/RobertBerger/meta-mainline/blob/jethro-training-v4.1.x/multi-v7-ml/recipes-kernel/linux/linux-yocto-custom.inc
>

That's what I would have suggested. Set the kconfig mode so that in
tree config becomes the baseline.

In the upcoming release, I have an open bugzilla to tweak the way
that this works, and I should be able to detect that in tree
defconfig and make alldefconfig the default for that mode.

Let me know if you have other issues with it.

Bruce

> Regards,
>
> Robert
>
>
>
> ..."The scientific name for an animal that doesn't either run from or
> fight its enemies is lunch." - Michael Friedman
>
> My public pgp key is available,at:
> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1
>
>



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-12-10 11:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09 20:28 in-tree defconfig Robert Berger
2015-12-09 23:43 ` Robert Berger
2015-12-10  3:13   ` Daniel.
2015-12-10 11:13   ` 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.