All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [Bug 7508] New: Use of BR2_EXTERNAL and dependencies to existing packages
@ 2014-10-04 10:37 bugzilla at busybox.net
  2014-10-20 19:10 ` [Buildroot] [Bug 7508] " bugzilla at busybox.net
  2015-04-10 15:19 ` bugzilla at busybox.net
  0 siblings, 2 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2014-10-04 10:37 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=7508

           Summary: Use of BR2_EXTERNAL and dependencies to existing
                    packages
           Product: buildroot
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at buildroot.uclibc.org
        ReportedBy: espenfk at gmail.com
                CC: buildroot at uclibc.org
   Estimated Hours: 0.0


Hello.

I use BR2_EXTERNAL to add my own components to Buildroot. One of the components
are needed for post-processing the u-boot, Linux, and rootfs images (a host
tool in other words). I therefore, in the my-component.mk file pointed to
indirectly by BR2_EXTERNAL, added my component to LINUX_DEPENDENCIES,
UBOOT_DEPENDENCIES, and ROOTFS_POST_BUILD_SCRIPT. But my tool is not built
before either. Why?

Well the answer is in the Makefile, line 378 and forward. Since the external.mk
in line 392 is processed after boot, linux, and fs, values added to for
instance LINUX_DEPENDENCIES in the external file have no effect on the Linux
dependencies.

I come around it by adding the necessary dependencies in a package override
file since this is processed in line 382, which is ok, but not optimal.

The behaviour is probably by design, but then the documentation lack some
details that cost me some hours hard-core buildroot debugging.

One solution, that will not break current builds, is to add a configuration
variable where one can set that the external.mk file is read before all the
package, boot, linux, system , and fs files, but default it does as now.

Sp1

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 7508] Use of BR2_EXTERNAL and dependencies to existing packages
  2014-10-04 10:37 [Buildroot] [Bug 7508] New: Use of BR2_EXTERNAL and dependencies to existing packages bugzilla at busybox.net
@ 2014-10-20 19:10 ` bugzilla at busybox.net
  2015-04-10 15:19 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2014-10-20 19:10 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=7508

--- Comment #1 from Thomas De Schampheleire <patrickdepinguin@gmail.com> 2014-10-20 19:10:17 UTC ---
I do not understand your use case. You say that the tool is needed for
post-processing linux, uboot, etc. So why do you need to build it _before_
these targets?

It is not a good idea to try and manipulate variables of other packages from a
given package. We will definitely not try to support this as it can break in
many ways. 

If you add a config option for this tool, you can select it explicitly and it
will be built at a right moment. Have you tried this?

If this does not work for you, please describe your use case in more detail.
Thanks.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

* [Buildroot] [Bug 7508] Use of BR2_EXTERNAL and dependencies to existing packages
  2014-10-04 10:37 [Buildroot] [Bug 7508] New: Use of BR2_EXTERNAL and dependencies to existing packages bugzilla at busybox.net
  2014-10-20 19:10 ` [Buildroot] [Bug 7508] " bugzilla at busybox.net
@ 2015-04-10 15:19 ` bugzilla at busybox.net
  1 sibling, 0 replies; 3+ messages in thread
From: bugzilla at busybox.net @ 2015-04-10 15:19 UTC (permalink / raw)
  To: buildroot

https://bugs.busybox.net/show_bug.cgi?id=7508

Thomas Petazzoni <thomas.petazzoni@free-electrons.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #2 from Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 2015-04-10 15:19:54 UTC ---
More details were asked about the use case approximately 6 months ago, with no
feedback for Espen. Therefore, I'm closing this bug now. Please re-open with
more details if needed.

-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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

end of thread, other threads:[~2015-04-10 15:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-04 10:37 [Buildroot] [Bug 7508] New: Use of BR2_EXTERNAL and dependencies to existing packages bugzilla at busybox.net
2014-10-20 19:10 ` [Buildroot] [Bug 7508] " bugzilla at busybox.net
2015-04-10 15:19 ` bugzilla at busybox.net

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.