* [ptxdist] Makefile in subfolder of rules directory?
@ 2011-10-07 12:35 Gavin Schenk
2011-10-07 13:08 ` Juergen Beisert
0 siblings, 1 reply; 5+ messages in thread
From: Gavin Schenk @ 2011-10-07 12:35 UTC (permalink / raw)
To: ptxdist
Hi,
I want to share some packages over different projects managed by SVN.
This packages are common to my company, but not very usefull for the community e.g. testsoftware for our testing department.
The idea is to checkout a common folder from SVN as external into the projects rules folder.
My folderstructure looks something like this:
projectdirectory
|
---rules
| |
| ---common //<-- this folder is checked out from svn as external
| | |
| | common.in
| | common.make
| | Kconfig
| |
| ---projectspecific.in
| ---projectspecific.make
|
---Kconfig //<- here rules/common/Kconfig is sourced
The menustructure in ptxdist is shown correctly, but it seems that Makefiles in subfolders are not recognized by ptxdist?
I am not that familiar in depth with ptxdist source. Can you please support me with some hints how we can accomplish this?
Thanks and Regards,
Gavin Schenk
--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Makefile in subfolder of rules directory?
2011-10-07 12:35 [ptxdist] Makefile in subfolder of rules directory? Gavin Schenk
@ 2011-10-07 13:08 ` Juergen Beisert
2011-10-10 16:31 ` Gavin Schenk
0 siblings, 1 reply; 5+ messages in thread
From: Juergen Beisert @ 2011-10-07 13:08 UTC (permalink / raw)
To: ptxdist
Gavin Schenk wrote:
> I want to share some packages over different projects managed by SVN.
> This packages are common to my company, but not very usefull for the
> community e.g. testsoftware for our testing department.
>
> The idea is to checkout a common folder from SVN as external into the
> projects rules folder.
>
> My folderstructure looks something like this:
>
> projectdirectory
>
> ---rules
>
> | ---common //<-- this folder is checked out from svn as external
> |
> | | common.in
> | | common.make
> | | Kconfig
> |
> | ---projectspecific.in
> | ---projectspecific.make
>
> ---Kconfig //<- here rules/common/Kconfig is sourced
>
> The menustructure in ptxdist is shown correctly, but it seems that
> Makefiles in subfolders are not recognized by ptxdist?
>
> I am not that familiar in depth with ptxdist source. Can you please support
> me with some hints how we can accomplish this?
Take a look into the results of a:
$ ptxdist newpackage src-make-prog
And maybe reading
http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf
could help you (section 4.2).
Regards,
Juergen
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Makefile in subfolder of rules directory?
2011-10-07 13:08 ` Juergen Beisert
@ 2011-10-10 16:31 ` Gavin Schenk
2011-10-10 21:21 ` Robert Schwebel
0 siblings, 1 reply; 5+ messages in thread
From: Gavin Schenk @ 2011-10-10 16:31 UTC (permalink / raw)
To: ptxdist
Hello Juergen,
>> ...
>> The menustructure in ptxdist is shown correctly, but it seems that
>> Makefiles in subfolders are not recognized by ptxdist?
>> ...
>
> Take a look into the results of a:
>
> $ ptxdist newpackage src-make-prog
>
> And maybe reading
> http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf
> could help you (section 4.2).
Today we reviewed your hints and had a close look to the result of
ptxdist newpackage src-make-prog, but still have issues with it. Maybe
my question was too imprecise.
It is possible to put the in-files into subdirectories e.g.
project/rules/somedir/test.in!
But in this example the corresponding makefile in
project/rules/somedir/test.make is not recognized by ptxdist.
It seems to me, that ptxdist only scans project/rules but not any
subdirs for makefiles.
As a workaround/solution we use lndir to create a set of symbolic links
to our common packages in project/rules.
Thanks for your help!
Regards,
Gavin Schenk
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Makefile in subfolder of rules directory?
2011-10-10 16:31 ` Gavin Schenk
@ 2011-10-10 21:21 ` Robert Schwebel
2011-10-10 21:53 ` Gavin Schenk
0 siblings, 1 reply; 5+ messages in thread
From: Robert Schwebel @ 2011-10-10 21:21 UTC (permalink / raw)
To: ptxdist
On Mon, Oct 10, 2011 at 06:31:41PM +0200, Gavin Schenk wrote:
> Today we reviewed your hints and had a close look to the result of
> ptxdist newpackage src-make-prog, but still have issues with it.
> Maybe my question was too imprecise.
>
> It is possible to put the in-files into subdirectories e.g.
> project/rules/somedir/test.in!
> But in this example the corresponding makefile in
> project/rules/somedir/test.make is not recognized by ptxdist.
>
> It seems to me, that ptxdist only scans project/rules but not any
> subdirs for makefiles.
Right, and this is by design.
Why do you want to use a sub directory? The strategy is usually to put
any project-local .in and .make files into rules/. Any file put there
should be generic enough to be used in any config/platform to be used
with the project, so I cannot imagine a good reason for splitting up
into sub directories.
rsc
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ptxdist] Makefile in subfolder of rules directory?
2011-10-10 21:21 ` Robert Schwebel
@ 2011-10-10 21:53 ` Gavin Schenk
0 siblings, 0 replies; 5+ messages in thread
From: Gavin Schenk @ 2011-10-10 21:53 UTC (permalink / raw)
To: ptxdist
> On Mon, Oct 10, 2011 at 06:31:41PM +0200, Gavin Schenk wrote:
>> Today we reviewed your hints and had a close look to the result of
>> ptxdist newpackage src-make-prog, but still have issues with it.
>> Maybe my question was too imprecise.
>>
>> It is possible to put the in-files into subdirectories e.g.
>> project/rules/somedir/test.in!
>> But in this example the corresponding makefile in
>> project/rules/somedir/test.make is not recognized by ptxdist.
>>
>> It seems to me, that ptxdist only scans project/rules but not any
>> subdirs for makefiles.
>
> Right, and this is by design.
>
> Why do you want to use a sub directory? The strategy is usually to put
> any project-local .in and .make files into rules/. Any file put there
> should be generic enough to be used in any config/platform to be used
> with the project, so I cannot imagine a good reason for splitting up
> into sub directories.
>
> rsc
The only reason is that I want to share the .in and .make files using
subversion, by checking out a common rules-folder as external into the
project. Changes to this external are visible to all colleagues
immediately, the external can be sticked to a version, switched to
trunk, tag, branch or whatever one need.
My solution is to check out the common_rules beside the projects
rules-folder and copy the common_rules content, using lndir, into the
rules-folder. That meets all requirements, I only have to update the
symbolic links after an update from subversion.
Thanks and Regards,
Gavin
--
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-10 21:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-07 12:35 [ptxdist] Makefile in subfolder of rules directory? Gavin Schenk
2011-10-07 13:08 ` Juergen Beisert
2011-10-10 16:31 ` Gavin Schenk
2011-10-10 21:21 ` Robert Schwebel
2011-10-10 21:53 ` Gavin Schenk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox