Portar aplicaciones a DSLinux

Una vez compilado DSLinux y el toolchain, desde el directorio ../trunk ejecutar

/media/hdb1/trunk % make xsh
make[1]: se ingresa al directorio `/media/hdb1/trunk'
Spawning cross-compilation shell. Happy hacking! :-)
Type exit to get out of here
YOU CANNOT COMPILE ALL OF DSLinux FROM THIS SHELL!
It is suitable only for porting applications and libraries.
------ Environment: ----------------------------------------------------
CC = ucfront-gcc arm-linux-elf-gcc
CFLAGS = -O2 -g -fomit-frame-pointer -fno-common -fno-builtin -Wall
-mswp-byte-writes -DCONFIG_NDS_ROM8BIT -mcpu=arm946e-s -mfpu=fpe3 -DEMBED -D__PIC__ -fpic
-msingle-pic-base -Dlinux -D__linux__ -Dunix -D__uClinux__
LD = arm-linux-elf-ld
LDFLAGS = -Wl,-elf2flt -D__PIC__ -fpic -msingle-pic-base -mswp-byte-writes
------------------------------------------------------------------------
-xsh- w >


Este comando proporciona un nuevo shell (bastante incómodo
de usar) con un entorno preparado para la compilación cruzada.

Ejemplo:
(Descargar el código fuente en user/ y desde trunk/ ejecutar make xsh)

-xsh- w > cd /user/bitchx
-xsh- w
> ./configure --prefix=/usr --host=${CROSS}
-xsh- w > make
-xsh- w > cd source
-xsh- w > file BitchX
BitchX: BFLT executable - version 4 gotpic
-xsh- w > file BitchX.gdb
BitchX.gdb: ELF 32-bit LSB executable, ARM, version 1, statically linked, not
stripped

exit para salir del shell y volver a ../trunk

A continuación habría que copiar el ejcutable al directorio linux/usr/bin
generado por la compilación de DSLinux y, si fuera el caso,
los archivos de configuración a sus respectivos directorios.

No hay comentarios: