Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] How do you add a package subdirectory?
@ 2012-04-24 22:23 Grant Edwards
  2012-04-25  5:23 ` Thomas De Schampheleire
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Edwards @ 2012-04-24 22:23 UTC (permalink / raw)
  To: buildroot

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            

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

end of thread, other threads:[~2012-04-25 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-24 22:23 [Buildroot] How do you add a package subdirectory? Grant Edwards
2012-04-25  5:23 ` Thomas De Schampheleire
2012-04-25 13:02   ` Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox