[Pdbg] [PATCH] README: instructions for cross compiling

Joel Stanley joel at jms.id.au
Thu Apr 12 10:54:15 AEST 2018


Signed-off-by: Joel Stanley <joel at jms.id.au>
---
 README.md | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/README.md b/README.md
index 419af7f8d72d..4c00db5b450f 100644
--- a/README.md
+++ b/README.md
@@ -15,6 +15,16 @@ generated using autoreconf. This can be done by running `./bootstrap.sh` in the
 top level directory. Static linking is supported and can be performed by adding
 `CFLAGS=-static` to the command line passed to configure.
 
+### Cross compiling for BMC (ARM)
+
+```
+apt-get install gcc-arm-linux-gnueabi
+./bootstrap.sh
+./configure --host=arm-linux-gnueabi CFLAGS="-static"
+make
+rsync pdbg root at bmc:/usr/local/bin
+```
+
 ## Usage
 
 Several backends are supported depending on which system you are using and are
-- 
2.17.0



More information about the Pdbg mailing list