summaryrefslogtreecommitdiff
path: root/Cross/build-arm-n770-sh
diff options
context:
space:
mode:
authorVadim Konovalov <vkonovalov@lucent.com>2007-06-09 21:41:44 +0200
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-06-11 08:28:57 +0000
commit608969de9d8f7b5ff63543f0fb8b9f3bee668da2 (patch)
treed5b6cdb81d04cbcb9f88c43744235be1447ec6a5 /Cross/build-arm-n770-sh
parentfa06c9c1dceeb58bb75c4cd7ac36d5aaac6840a6 (diff)
downloadperl-608969de9d8f7b5ff63543f0fb8b9f3bee668da2.tar.gz
cross-compilation for linux
From: "Konovalov, Vadim Vladimirovich \(Vadim\)** CTR **" <vkonovalov@alcatel-lucent.com> Message-ID: <D16F05D0CAAA234BA2B753B80DE6100D278EBC@DEEXC1U02.de.lucent.com> p4raw-id: //depot/perl@31362
Diffstat (limited to 'Cross/build-arm-n770-sh')
-rwxr-xr-xCross/build-arm-n770-sh9
1 files changed, 4 insertions, 5 deletions
diff --git a/Cross/build-arm-n770-sh b/Cross/build-arm-n770-sh
index a43236e945..75922e5355 100755
--- a/Cross/build-arm-n770-sh
+++ b/Cross/build-arm-n770-sh
@@ -3,6 +3,8 @@
# this approach is like Perl-CE cross-compiling, and allows
# for full TARGET perl (as opposed to renamed miniperl)
+# to skip Configure/build for HOST miniperl, pass "noconf" argument to this script
+
# some trick is different, however - the file extension for objects files
# are choosen to be .${CROSS_NAME}, .armo in our case
@@ -31,8 +33,7 @@ cp config.sh-arm-linux-n770 config-${CROSS_NAME}.sh
# following should be done better:
cd ..
-if false
-then
+if [[ "x$1" != xnoconf* ]] ; then
# do miniperl on HOST
./Configure -des -D prefix=./dummy -Dusedevel
make miniperl
@@ -57,10 +58,8 @@ 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
+sh Cross/Makefile-cross-SH
cp Cross/Makefile-cross-$CROSS_NAME .
-# makefile hack-patching TODO generation from Makefile.SH
-#./miniperl -pi.bak -w0777ne "s{^(CCCMD.*?)cflags}{\$1cflags-cross-$CROSS_NAME}gm" Makefile-cross-$CROSS_NAME
mkdir xlib
mkdir xlib/$CROSS_NAME