顯示具有 ARM 標籤的文章。 顯示所有文章
顯示具有 ARM 標籤的文章。 顯示所有文章

2010年8月24日 星期二

Build openssl for ARM

雖然網路上可以搜尋到很多人提供的方法跟經驗分享,在此我還是紀錄一下我自己的使用經驗
步驟:
1. ./Configure linux-generic32 no-shared --prefix=/path/to/your/prefer/openssl/path
2. 修改Makefile as below
  modify CC = /path/to/your/gcc/for/arm
               AR = /path/to/your/ar/for/arm
               RANLIB = /path/to/your/ranlib/for/arm
3. make
4. (Optional) make install
ps. 如果想要build成static版本, 可以修改Makefile裡面的CFLAGS,加入 -static

After step 3, the openssl executable file will be generated in apps/ folder
之後就可以把openssl copy到 target machine上去執行

2010年5月14日 星期五

建構strace for ARM

steps:
1. 從 http://sourceforge.net/projects/strace/files/strace/ 下載strace source code, 目前最新版為4.5.20 (strace-4.5.20.tar.bz2)
2. tar -jxv -f strace-4.5.20.tar.bz2
3. ./configure --host=arm-linux CC=arm-linux-gcc LD=arm-linux-ld   ,  配置makefile
4. make CFLAGS="-static"   , 產生靜態可執行檔
5. (可做可不做) arm-linux-strip strace  ,  縮減strace的size

完成, 之後就可以把strace copy到ARM 的 linux平台上執行了