星期五, 8月 21, 2015

How to corss compile cdrecord for ARM?

http://bylnote.blogspot.tw/2011/08/how-to-corss-compile-cdrecord-for-arm.html

Here are the steps to cross compile cdrecord version 3.00:

(1) Modify RULES/cc-gcc.rul:
  - replace gcc to arm-none-linux-gnueabi-gcc, g++ to arm-none-linux-gnueabi-g++
  - if you want to build statically link program, add -static to LDFLAGS.

(2) Compile by using "CCOM=gcc ARCH=armv5teb OSNAME=linux make":
  - This will use RULES/armv5teb-linux-gcc.rul to build the program.

(3) Modify libschily/findbytes.c because SIZE_LONG is not defined:
  - Defined SIZE_LONG == 4 or just keep magic_mask = 0x7EFEFEFFL(Comment out others part)

(4) Check if automatically generate file incs/armv5teb-linux-gcc/align.h exist.
  - align.h is not exist if use gcc but exist if use cc. I don't know why.