diff options
author | Vadim Konovalov <vkonovalov@lucent.com> | 2008-09-08 11:04:09 +0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2008-09-08 08:41:50 +0000 |
commit | 703ae0d81c6fa8390870e592238296822ddb4cfa (patch) | |
tree | 6e928b4a24d1b2fed0c42f7f5a2a2ae6c24c7966 /Cross | |
parent | a653b137d3fcac5227f60038d4f0b7423b758b06 (diff) | |
download | perl-703ae0d81c6fa8390870e592238296822ddb4cfa.tar.gz |
- crosscompilation - step 1 of N+1
Message-ID: <48C49629.4000208@vkonovalov.ru>
p4raw-id: //depot/perl@34317
Diffstat (limited to 'Cross')
-rwxr-xr-x | Cross/build-arm-n770-sh | 25 | ||||
-rwxr-xr-x | Cross/cflags-cross-arm | 2 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux | 1 | ||||
-rw-r--r-- | Cross/config.sh-arm-linux-n770 | 8 |
4 files changed, 29 insertions, 7 deletions
diff --git a/Cross/build-arm-n770-sh b/Cross/build-arm-n770-sh index 75922e5355..b3e6a67ca3 100755 --- a/Cross/build-arm-n770-sh +++ b/Cross/build-arm-n770-sh @@ -35,7 +35,7 @@ cd .. if [[ "x$1" != xnoconf* ]] ; then # do miniperl on HOST -./Configure -des -D prefix=./dummy -Dusedevel +CROSS_NAME= ./Configure -des -D prefix=./dummy -Dusedevel make miniperl make uudmap.h # fake uudmap, which should be on HOST @@ -58,7 +58,7 @@ PERL_CONFIG_SH=Cross/config-${CROSS_NAME}.sh rm cflags-cross-$CROSS_NAME cp Cross/cflags-cross-$CROSS_NAME . rm Makefile-cross-$CROSS_NAME -sh Cross/Makefile-cross-SH +CROSS_NAME=$CROSS_NAME sh Makefile.SH cp Cross/Makefile-cross-$CROSS_NAME . mkdir xlib @@ -67,8 +67,21 @@ mkdir ${XCOREDIR} #??OBJ_EXT=.${CROSS_NAME}o # TODO these -- AR=${CCPREF}ar LD=${CCPREF}ld -make -f Makefile-cross-$CROSS_NAME xconfig.h -make -f Makefile-cross-$CROSS_NAME libperl.${CROSS_NAME}a OBJ_EXT=.${CROSS_NAME}o EXE_EXT=.$CROSS_NAME LIB_EXT=.${CROSS_NAME}a AR=${CCPREF}ar LD=${CCPREF}ld -make -f Makefile-cross-$CROSS_NAME DynaLoader.${CROSS_NAME}o OBJ_EXT=.${CROSS_NAME}o EXE_EXT=.$CROSS_NAME LIB_EXT=.${CROSS_NAME}a AR=${CCPREF}ar LD=${CCPREF}ld -make -f Makefile-cross-$CROSS_NAME perl.${CROSS_NAME} +cmd="make -f Makefile-cross-$CROSS_NAME xconfig.h" +echo "running $cmd" +$cmd + +echo "running $cmd" +cmd="make -f Makefile-cross-$CROSS_NAME libperl.${CROSS_NAME}a OBJ_EXT=.${CROSS_NAME}o EXE_EXT=.$CROSS_NAME LIB_EXT=.${CROSS_NAME}a AR=${CCPREF}ar LD=${CCPREF}ld" +$cmd + +exit + +cmd="make -f Makefile-cross-$CROSS_NAME DynaLoader.${CROSS_NAME}o OBJ_EXT=.${CROSS_NAME}o EXE_EXT=.$CROSS_NAME LIB_EXT=.${CROSS_NAME}a AR=${CCPREF}ar LD=${CCPREF}ld" +echo "running $cmd" +$cmd + +cmd="make -f Makefile-cross-$CROSS_NAME perl.${CROSS_NAME}" +echo "running $cmd" +$cmd diff --git a/Cross/cflags-cross-arm b/Cross/cflags-cross-arm index 9241d01cca..d33b1136de 100755 --- a/Cross/cflags-cross-arm +++ b/Cross/cflags-cross-arm @@ -149,7 +149,7 @@ if test -f .patch; then fi : Can we perhaps use $ansi2knr here - echo "$CROSSCC -c -DPERL_CORE $ccflags $stdflags $optimize $warn $extra" + echo "$CROSSCC -c -DUSE_CROSS_COMPILE -DPERL_CORE $ccflags $stdflags $optimize $warn $extra" eval "$also "'"$CROSSCC -DUSE_CROSS_COMPILE -DPERL_CORE -c $ccflags $stdflags $optimize $warn $extra"' . $TOP/Cross/config-arm.sh diff --git a/Cross/config.sh-arm-linux b/Cross/config.sh-arm-linux index 455ee0e3b4..c88303613d 100644 --- a/Cross/config.sh-arm-linux +++ b/Cross/config.sh-arm-linux @@ -483,6 +483,7 @@ d_tcsetpgrp='define' d_telldir='define' d_telldirproto='define' d_time='define' +d_timegm='define' d_times='define' d_tm_tm_gmtoff='define' d_tm_tm_zone='define' diff --git a/Cross/config.sh-arm-linux-n770 b/Cross/config.sh-arm-linux-n770 index b936f30846..a07fcbbd9a 100644 --- a/Cross/config.sh-arm-linux-n770 +++ b/Cross/config.sh-arm-linux-n770 @@ -483,6 +483,7 @@ d_tcsetpgrp='define' d_telldir='define' d_telldirproto='define' d_time='define' +d_timegm='define' d_times='define' d_tm_tm_gmtoff='define' d_tm_tm_zone='define' @@ -611,6 +612,7 @@ i64type='long long' i8size='1' i8type='char' i_arpainet='define' +i_assert='define' i_bsdioctl='' i_crypt='define' i_db='undef' @@ -623,6 +625,8 @@ i_float='define' i_fp='undef' i_fp_class='undef' i_gdbm='undef' +i_gdbm_ndbm='undef' +i_gdbmndbm='undef' i_grp='define' i_ieeefp='undef' i_inttypes='define' @@ -632,6 +636,7 @@ i_limits='define' i_locale='define' i_machcthr='undef' i_malloc='define' +i_mallocmalloc='undef' i_math='define' i_memory='undef' i_mntent='define' @@ -665,6 +670,7 @@ i_sysmman='define' i_sysmode='undef' i_sysmount='define' i_sysndir='undef' +i_syspoll='define' i_sysparam='define' i_sysresrc='define' i_syssecrt='undef' @@ -806,6 +812,7 @@ nvEUformat='"E"' nvFUformat='"F"' nvGUformat='"G"' nv_preserves_uv_bits='32' +nv_overflows_integers_at='256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0' nveformat='"e"' nvfformat='"f"' nvgformat='"g"' @@ -984,6 +991,7 @@ use64bitall='undef' use64bitint='undef' usecrosscompile='undef' usedl='define' +usedtrace='undef' usefaststdio='define' useithreads='undef' uselargefiles='define' |