2007/1/1, Kelvin Xu <[EMAIL PROTECTED]>:
Dear all,

I have some questions regarding the transferring of binaries compiled using
ScratchBox.
1) In order to test the complied binaries on the target board, all i need to
do is copy the files from the ScratchBox Target directory to the respective
directories in my RFS of my target board? Do i need change any links,
whatsoever?

No, the target directory is ready to go as-is[1]. The only things that
have differences (apart from purely virtual filesystems like proc and
sysfs) are /tmp and /dev. Both are mounted from the host computer.
Now, tmp is not a broblem (as you can't rely on it anyway), but dev
has some implications.

2) Is there anyway to direct Scratchbox to place all the complied binaries
directly to my target board RFS which is mounted on the host system using
NFS?

A useful trick is to do that the other way (mount the sb target
directory directly to the device), but as said, this needs
targets/target_name/dev to be populated by hand. I guess you could
mount the RFS over the scratchbox target dir, but it will also mean
that anything installed goes there...

If the packages are nice and support setting DESTDIR during install,
one might also do this by mounting the RFS somewhere accessible inside
the sb target and do a 'make install DESTDIR=/tmp/foo', but this has
the same problem as above.

The usual way to solve it is to use a script that generates the rootfs
(ie. strips the cruft away).

--
Kalle Vahlman, [EMAIL PROTECTED]
Powered by http://movial.fi
Interesting stuff at http://syslog.movial.fi
_______________________________________________
Scratchbox-users mailing list
Scratchbox-users@lists.scratchbox.org
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-users

Reply via email to