Blob
- Date:
- Message:
- build: fix for non-standard uname The scratchbox-based SDK for maemo cross-compilation (for Nokia N800 and N900) has a non-standard uname command which doesn't support the '-p' option. This patch allows INSTALL to work anyway, by issuing 'uname -m' if 'uname -m -p' fails. R=rsc CC=plan9port.codebot http://codereview.appspot.com/4554041
- Actions:
- History | Blame | Raw File
1 #!/bin/sh3 # run this in the src directory4 SYSNAME=`uname` export SYSNAME5 OBJTYPE=`(uname -m -p 2>/dev/null || uname -m) | sed '6 s;.*i[3-6]86.*;386;;7 s;.*i86pc.*;386;;8 s;.*amd64.*;x86_64;;9 s;.*x86_64.*;x86_64;;10 s;.*armv.*;arm;g;11 s;.*powerpc.*;power;g;12 s;.*PowerMacintosh.*;power;g;13 s;.*macppc.*;power;g;14 s;.*ppc64.*;power;g;15 s;.*ppc.*;power;g;16 s;.*alpha.*;alpha;g;17 s;.*sun4u.*;sun4u;g;18 '` export OBJTYPE19 sh -x mkmk.sh