* [Buildroot] TOP_SRCDIR: Where is it defined?
@ 2013-03-29 20:16 ANDY KENNEDY
2013-04-04 11:49 ` Arnout Vandecappelle
0 siblings, 1 reply; 2+ messages in thread
From: ANDY KENNEDY @ 2013-03-29 20:16 UTC (permalink / raw)
To: buildroot
Within the pkg-generic file, TOP_SRCDIR is used to define
$(PKG)_DIR_PREFIX:
buildroot-2013.02$ grep -R "TOP_SRCDIR" .
grep: ./system/skeleton/dev/log: No such file or directory
grep: ./system/skeleton/etc/resolv.conf: No such file or directory
./package/pkg-generic.mk:$(2)_DIR_PREFIX = $(if $(4),$(4),$(TOP_SRCDIR)/package)
This would be a problem only for some entity (which didn't set $4 to
$(call pkgparentdir)) directly calling inner-generic-package as
generic-package does do the call to pkgparentdir.
I'm just thinking this should be changed, however, I'm clueless about
the vision the developer who added this had in mind for TOP_SRCDIR, so
I have no suggestion how to change it.
FWIW,
Andy
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] TOP_SRCDIR: Where is it defined?
2013-03-29 20:16 [Buildroot] TOP_SRCDIR: Where is it defined? ANDY KENNEDY
@ 2013-04-04 11:49 ` Arnout Vandecappelle
0 siblings, 0 replies; 2+ messages in thread
From: Arnout Vandecappelle @ 2013-04-04 11:49 UTC (permalink / raw)
To: buildroot
On 29/03/13 21:16, ANDY KENNEDY wrote:
> Within the pkg-generic file, TOP_SRCDIR is used to define
> $(PKG)_DIR_PREFIX:
>
> buildroot-2013.02$ grep -R "TOP_SRCDIR" .
> grep: ./system/skeleton/dev/log: No such file or directory
> grep: ./system/skeleton/etc/resolv.conf: No such file or directory
> ./package/pkg-generic.mk:$(2)_DIR_PREFIX = $(if $(4),$(4),$(TOP_SRCDIR)/package)
You're right, TOP_SRCDIR is never defined, and never has been. The
whole condition can be removed.
> This would be a problem only for some entity (which didn't set $4 to
> $(call pkgparentdir)) directly calling inner-generic-package as
> generic-package does do the call to pkgparentdir.
But since nobody should be calling the inner- macros, this shouldn't be
a problem :-)
Regards,
Arnout
> I'm just thinking this should be changed, however, I'm clueless about
> the vision the developer who added this had in mind for TOP_SRCDIR, so
> I have no suggestion how to change it.
>
> FWIW,
> Andy
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
>
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286500
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-04 11:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-29 20:16 [Buildroot] TOP_SRCDIR: Where is it defined? ANDY KENNEDY
2013-04-04 11:49 ` Arnout Vandecappelle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox