On Thu, Jan 20, 2011 at 11:44:17AM +0100, Daniel Kriesten wrote:
> Hi,
> 
> so here comes the second question ...
> 
> where do you build your projects? Within the BSP directory, or do you do "out 
> of tree" build, ordered by ptxconfig?
> 
> BSP-build/
> +---uclibc/
> |     +---platform-a/
> |     |     +---...
> |     +---platform-b/
> |           +---...
> +---glibc/
> |     +---platform-a/
> |     |     +---...
> |     +---platform-b/
> |           +---...
> ...
> 
> In case of out of tree builds, will ptxdist find the patches (BSP/patches/*), 
> rules (BSP/rules) and projectroot (BSP/projectroot/*) ?

1. all platform builds are always in the BSP toplevel directory.
2. whether you use glibc or uclibc is defined in the platformconfig

so it'll look like this:

BSP/
+---platform-a-glibc/
+---platform-a-uclibc/
+---platform-b-glibc/
+---platform-b-uclibc/
+---projectroot/
+---config/
      +---ptxconfig-qt
      +---ptxconfig-x11
      +---<platform-a>/
      |        +---platformconfig-glibc
      |        +---platformconfig-uclibc
      |        +---kernelconfig
      +---<platform-b>/
               +---platformconfig-glibc
               +---platformconfig-uclibc
               +---kernelconfig

Note: right now you cannot build one platform with multiple ptxconfigs in
the same BSP. Well maybe you could do something like this in
platformconfig-glibc:
PTXCONF_PLATFORM="b-glibc-${PTXDIST_PTXCONFIG##*-}"

you would get platform-a-glibc-qt when using ptxconfig-qt but I'm not sure
if this really works, and if it will work with future versions...

Regards,
Michael

-- 
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
[email protected]

Reply via email to