Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Grant Edwards <grant.b.edwards@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] How do you add a package subdirectory?
Date: Tue, 24 Apr 2012 22:23:39 +0000 (UTC)	[thread overview]
Message-ID: <jn795b$kbq$1@dough.gmane.org> (raw)

I'm trying to add local packages to 2012.02, and I'd like them to live
in a subdirectory underneath "package" (e.g. package/mycompany). I've
created the "mycompany" directory which contains a Config.in that
declares a submenu that in turn sources the individual package
Config.in files: package/mycompany/foo/Config.in,
package/mycompany/bar/Config.in, etc.

The "mycompany" submenu shows up where it's supposed to, and that menu
has the entries for "foo" and "bar" as it should.  Selecting those
entries sets BR2_PACKAGE_FOO in the .config file as expected.

But, when I actually do the "make", buildroot won't attempt to build
packages "foo" and "bar" unless I create symlinks in the packages
directory that point to the corresponding directories in the mycompany
subdirectory like this:

   package/foo -> mycompany/foo
   package/bar -> mycompany/bar

Inside foo.mk, bar.mk the various settings/commands have the
"mycompany" directory in them, and once buildroot _finds_ the .mk
files, they build fine.

I've searched the existing scripts and .in files for some mechanism
that's used by the other packages that live in subdirectories
underneat packages, but couldn't find anything. As far as I can tell,
I've done everything in my new subdirectory exactly the same way it's
done in the other subdirectories, but it just doesn't work.

How does buildroot know that when BR2_PACKAGE_AUMIX is set it's
supposed to look for package/multimedia/aumix/aumix.mk and not
package/aumix/aumix.mk?

How do I get buildroot to look in package/mycompany for the foo and
bar package directories?

-- 
Grant Edwards               grant.b.edwards        Yow! I'm definitely not
                                  at               in Omaha!
                              gmail.com            

             reply	other threads:[~2012-04-24 22:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-24 22:23 Grant Edwards [this message]
2012-04-25  5:23 ` [Buildroot] How do you add a package subdirectory? Thomas De Schampheleire
2012-04-25 13:02   ` Grant Edwards

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='jn795b$kbq$1@dough.gmane.org' \
    --to=grant.b.edwards@gmail.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