Showing posts with label compiler. Show all posts
Showing posts with label compiler. Show all posts

Sunday, May 27, 2012

Компиляция busybox под mips

  1. tar -xvf ../cross-compiler-mips.tar.bz2
  2. tar -xvf ../busybox-1.20.0.tar.bz2
  3. cd busybox-1.20.0/
  4. CROSS_COMPILE="$PWD/../cross-compiler-mips/bin/mips-"
  5. LDFLAGS="--static" make CROSS_COMPILE="$CROSS_COMPILE" defconfig
  6. LDFLAGS="--static" make CROSS_COMPILE="$CROSS_COMPILE" all
  7. LDFLAGS="--static" make CROSS_COMPILE="$CROSS_COMPILE" install
P.S.: Образ для виртуальной машины, чтобы проверить можно скачать здесь.

Saturday, May 5, 2012

Компиляция strace под mips

  1. tar -xvf ../cross-compiler-mips.tar.bz2
  2. tar -xvf ../strace-4.7.tar.xz
  3. cd strace-4.7/
  4. export PATH=$PATH:../cross-compiler-mips/bin/
  5. CFLAGS=-I../cross-compiler-mips/include/ CC=mips-gcc LDFLAGS=-static ./configure --host=mips-linux && make LDFLAGS=-static
  6. mips-strip -v --strip-unneeded strace -o strace-stripped ; ls -l strace-stripped; file strace-stripped