LibFFI
Jump to navigation
Jump to search
LibFFI
LibFFI is a library that provides an interface to execute low-level functions. It is mostly used by scripting or higher-level languages, such as Python, Dalvik, etc.
- Status: Submission pending
- Project Website: http://sourceware.org/libffi/
- Repository (website): https://github.com/czankel/xtensa-ffi
- Repository (git): git://github.com/czankel/xtensa-ffi.git
Prerequisites
- Cross toolchain, for example the one created by buildroot. See Buildroot Build Instructions for further details.
Build Instructions
Clone the GitHub repository and check out the xtensa branch:
git clone git://github.com/czankel/xtensa-ffi.git cd xtensa-ffi git checkout xtensa
Configure and build the library. Make sure that the compiler is in the 'PATH'
export PATH=<path-to-xtensa-linux-gcc>:$PATH ./configure --host=xtensa-linux make
The resulting libraries are in the .libs directory.
Test-suite
LibFFI comes with an extensive test-suite based on Dejagnu.
Using Telnet
load_generic_config "unix"; set_board_info hostname "lx60" set_board_info compiler "/share/publish/xtensa/buildroot/cross/stable/dc232b/usr/bin/xtensa-linux-gcc" set_board_info connect "telnet" set_board_info file_transfer "ftp" set_board_info shell_prompt "\\$ " set_board_info protocol "telnet" set_board_info telnet_username "test" set_board_info telnet_password "test" set_board_info ftp_username "test" set_board_info ftp_password "test"