Frederik Sdun wrote: > Hi, > > I try to build a custom BSP but ptxdist always bails out: > > OSELAS.BSP-JB-itlp-trunk $ ptxdist go > error: failed to source lib: > /opt/lib/ptxdist-1.99.svn/scripts/lib/ptxd_make_00-init.sh > Work/OSELAS.BSP-JB-itlp-trunk $ ll > /opt/lib/ptxdist-1.99.svn/scripts/lib/ptxd_make_00-init.sh > -rw-r--r-- 1 student student 6018 2009-11-20 09:15 > /opt/lib/ptxdist-1.99.svn/scripts/lib/ptxd_make_00-init.sh > > I'm using a custom toolchain with quite old packages, but this seems to > be a general problem.
The toolchain is probably compiled without sysroot support. I assumed that nowadays all toolchains come with sysroot support, so ptxdist tries to figure it out, but fails without a proper error message. IIRC Ladis got the same problem, he commented out the part looking for the sysroot, you can try this patch, too: diff --git a/scripts/lib/ptxd_make_00-init.sh b/scripts/lib/ptxd_make_00-init.sh index 245b431..8d8cc9c 100644 --- a/scripts/lib/ptxd_make_00-init.sh +++ b/scripts/lib/ptxd_make_00-init.sh @@ -226,10 +226,10 @@ ptxd_init_cross_env() { ptxd_make_init() { ptxd_init_arch && - if ptxd_get_ptxconf PTXCONF_LIBC > /dev/null && - ! ptxd_get_ptxconf PTXCONF_BUILD_TOOLCHAIN > /dev/null; then - ptxd_init_sysroot_toolchain || return - fi && +# if ptxd_get_ptxconf PTXCONF_LIBC > /dev/null && +# ! ptxd_get_ptxconf PTXCONF_BUILD_TOOLCHAIN > /dev/null; then +# ptxd_init_sysroot_toolchain || return +# fi && ptxd_init_ptxdist_path && ptxd_init_cross_env > > If i source /opt/lib/ptxdist-1.99.svn/scripts/lib/ptxd_make_00-init.sh > manually, i get some of these errors: > ptxd_get_ptxconf: command not found > > after a few greps i figured out that the missing command is defined in > libptxdist.sh. Sourcing it by hand returns no error: > > OSELAS.BSP-JB-itlp-trunk $ source > /opt/lib/ptxdist-1.99.svn/scripts/libptxdist.sh > OSELAS.BSP-JB-itlp-trunk $ echo $? > 0 > > Any ideas how to fix this? cheers, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Linux Solutions for Science and Industry | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
signature.asc
Description: OpenPGP digital signature
-- ptxdist mailing list ptxdist@pengutronix.de