1.å¦ä½äº¤åç¼è¯perl
å¦ä½äº¤åç¼è¯perl
å ä¸è½½Perlæºç ï¼/projects/perlcross.berlios/files/ï¼ ä¸è½½çæ¬æ¯ï¼perl-5..0-cross-0.3.tar.gzåå«è§£åè¿ä¸ªæ件å°åä¸ä¸ªç®å½ä¸ï¼
1å¨ubuntuä¸å®è£ perlbrewï¼
sudo apt-get install perlbrewperlbrew init
source ~/perl5/perlbrew/etc/bashrc
perlbrew install perl-5..1
23
4
5
çå¾ perlbrewå®è£ å®æ¯ï¼
23
1
å并 两个解ååºæ¥çperlç®å½,项目android studio源码导出è¿å ¥perl-5..1çCrossç®å½ä¸ï¼
cp -rfv perl-5..0/* perl-5..1/cd perl-5..1/Cross
21
æ件å 容å¦ä¸æ³¨æå äºæå·çå 容ï¼
### Target Arch** ARCH = arm
**#ARCH = i-pc
#ARCH = sh4
#ARCH = mips
#ARCH = mipsel
#ARCH = ppc
## Specific arm
**#CONFIG_TARGET_ARM_SAX0 = 1
**#CONFIG_TARGET_ARM_XSCALE = 1
### Target OS
**OS = linux
**#OS = solaris2.8
1ä¿®æ¹perlçconfigæ件
gedit Cross/config ##æè vi gedit Cross/config 23
4
5
6
7
8
9
ä¸é¢å ç²åä½è¡¨ç¤ºæ³¨æçæè ä¿®æ¹çï¼
ä¿®æ¹å½åç®å½ï¼Crossç®å½ï¼ä¸çMakefileæ件ï¼
å æ¹åä¸ä¸ç®å½å 容çæéï¼
chmod /Cross/
*ä¿®æ¹çMakefileæ件å 容ï¼
export TOPDIR=${ shell pwd}include $(TOPDIR)/config
export CFLAGS
** export SYS=arm-linux
**** export CROSS=/stuff/bitbake/bin/tmp/sysroots/i- linux/usr/armv7a/bin/arm-angstrom-linux-gnueabi-
**** export LD_LIBRARY=/stuff/bitbake/bin/tmp/sysroots/i-linux/usr/lib:$(LD_LIBRARY_PATH)
**export FULL_OPTIMIZATION = -fexpensive-optimizations -fomit-frame-pointer -O2
export OPTIMIZATION = -O2
export CC = arm-angstrom-linux-gnueabi-gcc
export CXX = arm-angstrom-linux-gnueabi-g++
export LD = arm-angstrom-linux-gnueabi-ld
export STRIP = arm-angstrom-linux-gnueabi-strip
export AR = arm-angstrom-linux-gnueabi-ar
export RANLIB = arm-angstrom-linux-gnueabi-ranlib
make CC=arm-angstrom-linux-gnueabi-gcc ARCH=arm patch
make CC=arm-angstrom-linux-gnueabi-gcc ARCH=arm perl
ç¼è¯ä¼åºéï¼ä½æ¯æ²¡å ³ç³»ï¼ä¼å¨æ ¹ç®å½çæperlå¯æ§è¡æ件ï¼