diff options
author | Dave Brolley <brolley@redhat.com> | 2009-09-18 18:17:15 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-09-18 18:17:15 -0400 |
commit | a6a2869a0f4f784bab36410722f6161eab0f4503 (patch) | |
tree | 251da07c5e0741499401fc55eaf353f57a4062f4 /stap-env | |
parent | f6efd18a0bcae7697651f794fd2d2ebcf66faf62 (diff) | |
download | systemtap-steved-a6a2869a0f4f784bab36410722f6161eab0f4503.tar.gz systemtap-steved-a6a2869a0f4f784bab36410722f6161eab0f4503.tar.xz systemtap-steved-a6a2869a0f4f784bab36410722f6161eab0f4503.zip |
stap-start-server(->stap-serverd) now accept -r -R -I -B and -a options for cross compilation.
Server correctly advertises itself wrt -r and -a.
Fix bug in stap-server: fatal function was potentially recursive.
Diffstat (limited to 'stap-env')
-rwxr-xr-x | stap-env | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -40,3 +40,29 @@ fi stap_signing_db=$stap_sysconfdir/systemtap/staprun stap_certfile=stap.cert stap_old_certfile=stap-server.cert + +function get_arch { + # PR4186: Copy logic from coreutils uname (uname -i) to squash + # i?86->i386. Actually, copy logic from linux top-level Makefile + # to squash uname -m -> $(SUBARCH). + + local machine=`uname -m` + machine=`expr "$machine" : '\(...\).*'` + case $machine in + i48) machine="i386" ;; + i58) machine="i386" ;; + i68) machine="i386" ;; + sun) machine="sparc64" ;; + arm) machine="arm" ;; + sa1) machine="arm" ;; + s39) machine="s390" ;; + ppc) machine="powerpc" ;; + mip) machine="mips" ;; + sh2) machine="sh" ;; + sh3) machine="sh" ;; + sh4) machine="sh" ;; + *) machine="unknown" ;; + esac + + echo $machine +} |