Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] BR2_EXTERNAL - Broken in 2015.08.01????
Date: Thu, 5 Nov 2015 23:05:45 +0100	[thread overview]
Message-ID: <20151105230545.581bf875@free-electrons.com> (raw)
In-Reply-To: <CAN34foyu5iSPur6c7gNKsB+b6AZgkrbqQ8fP5CKH6jt_GYjTjw@mail.gmail.com>

Dear Stephen Beckwith,

On Thu, 5 Nov 2015 16:57:56 -0500, Stephen Beckwith wrote:

>    After some more poking around, I was successful in getting the desired
> build to work.  Here is what I found:
> 1)  Typing "make" @ the top level does not seem to build the BR2_EXTERNAL
> code.  Is there something missing here?  Or is this by design? (based upon
> the fact that this code is not a "normal auto-something package") ??

No, this is not by design. "make" should build all packages you have
enabled in your configuration. If some packages don't get built even if
they are enabled in the configuration, it's because you didn't comply
with the naming conventions.

Package "foo" *must*:

 * Be implemented in package/foo/foo.mk
 * Have its Config.in option named BR2_PACKAGE_FOO
 * Use FOO_ as the prefix for all variables in foo.mk

> Questions:
> 1)  Can I have "layered" Config.in files in the BR2_EXTERNAL tree?  Or does
> it all have to be done in one? (currently, it is layered)

I'm not sure what you mean by "layered", but you definitely don't have
to put everything in one Config.in file, it can source other Config.in
files, like in Buildroot itself.

Have you read the documentation at
http://buildroot.org/downloads/manual/manual.html#customize-dir-structure ?
Also, read
http://free-electrons.com/doc/training/buildroot/buildroot-slides.pdf
starting from slide 230.

> 2)  Do I need to have a <directory>.mk for sub-directories, if they do
> nothing?  If I specify the correct path to find the <pkg>.mk from
> external.mk, is that OK?

Yes, it is OK. In fact, we suggest that external.mk should contain
something like:

include $(sort $(wildcard $(BR2_EXTERNAL)/package/*/*.mk))

> 3)  is the <PKG>_VERSION in the <pkg>.mk used in any way other than the
> build folder directory?

Yes, it is generally used to define <pkg>_SOURCE, either explicitly (in
your .mk file) or implicitly (if not provided in your .mk file).

I.e:

FOO_VERSION = 0.3.2
FOO_SOURCE = foo-$(FOO_VERSION).tar.xz

Or, when you don't explicitly give a value for FOO_SOURCE, the package
infrastructure will automatically give it the value
'<pkg>-$(FOO_VERSION).tar.gz'.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2015-11-05 22:05 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-05 13:16 [Buildroot] BR2_EXTERNAL - Broken in 2015.08.01???? Stephen Beckwith
2015-11-05 13:29 ` Thomas Petazzoni
2015-11-05 21:57   ` Stephen Beckwith
2015-11-05 22:05     ` Thomas Petazzoni [this message]
2015-11-06 14:12       ` Stephen Beckwith
2015-11-06 14:41         ` Thomas Petazzoni
2015-11-06 15:22           ` Stephen Beckwith
2015-11-06 15:54             ` Thomas Petazzoni
2015-11-06 16:04               ` Stephen Beckwith
2015-11-06 16:51                 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151105230545.581bf875@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox