Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Unified Diff: examples/tools/thttpd-2.25b/nacl-thttpd-2.25b.sh

Issue 11636027: Add ARM toolchain support. (Closed) Base URL: git@github.com:samclegg/naclports.git@sbc
Patch Set: revert .c file change Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « examples/tools/thttpd-2.25b/gen_nmf.sh ('k') | examples/tutorials/life/life-stage-4/Makefile » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/tools/thttpd-2.25b/nacl-thttpd-2.25b.sh
diff --git a/examples/tools/thttpd-2.25b/nacl-thttpd-2.25b.sh b/examples/tools/thttpd-2.25b/nacl-thttpd-2.25b.sh
index f48922d344556f49f05f4a80e87d55b5b31a0d07..37cb87360a08ff61f4e97784bfa5ba5e0f2d7d97 100755
--- a/examples/tools/thttpd-2.25b/nacl-thttpd-2.25b.sh
+++ b/examples/tools/thttpd-2.25b/nacl-thttpd-2.25b.sh
@@ -43,7 +43,7 @@ CustomBuildStep() {
export CC=${NACLCC}
export NACLXX=${NACLCXX}
export CXX=${NACLCXX}
- if [ ${NACL_PACKAGES_BITSIZE} == "pnacl" ] ; then
+ if [ ${NACL_ARCH} = "pnacl" ] ; then
export NACL_CCFLAGS="-O3 -g"
export NACL_LDFLAGS="-O0 -static"
fi
@@ -66,32 +66,34 @@ CustomInstallStep() {
install ${START_DIR}/peppermount_helper.js ${PUBLISH_DIR}
install ${START_DIR}/json2min.js ${PUBLISH_DIR}
BUILD_DIR=${NACL_PACKAGES_REPOSITORY}/${PACKAGE_NAME}
- cp ${BUILD_DIR}/thttpd ${BUILD_DIR}/thttpd_x86-${NACL_PACKAGES_BITSIZE}.nexe
- install ${BUILD_DIR}/thttpd_x86-${NACL_PACKAGES_BITSIZE}.nexe \
- ${PUBLISH_DIR}/thttpd_x86-${NACL_PACKAGES_BITSIZE}.nexe
+ cp ${BUILD_DIR}/thttpd ${BUILD_DIR}/thttpd_${NACL_ARCH}.nexe
+ install ${BUILD_DIR}/thttpd_${NACL_ARCH}.nexe \
+ ${PUBLISH_DIR}/thttpd_${NACL_ARCH}.nexe
ChangeDir ${PUBLISH_DIR}
local NACL_LIB_PATH=$NACL_TOOLCHAIN_ROOT/x86_64-nacl
- local NACL_COMPLEMENT_BITSIZE=64
- if [ ${NACL_PACKAGES_BITSIZE} == "64" ]; then
- NACL_COMPLEMENT_BITSIZE=32
+ local NACL_COMPLEMENT_ARCH="x86_64"
+ local NACL_COMPLEMENT_LIBDDIR="lib64"
+ if [ ${NACL_ARCH} = "x86_64" ]; then
+ NACL_COMPLEMENT_ARCH="i686"
+ NACL_COMPLEMENT_LIBDIR="lib32"
fi
- if [ -f thttpd_x86-${NACL_COMPLEMENT_BITSIZE}.nexe ]; then
+ if [ -f thttpd_${NACL_COMPLEMENT_ARCH}.nexe ]; then
$NACL_SDK_ROOT/tools/create_nmf.py \
- -L$NACL_LIB_PATH/usr/lib$NACL_COMPLEMENT_BITSIZE \
- -L$NACL_LIB_PATH/lib$NACL_COMPLEMENT_BITSIZE \
- -L$NACL_LIB_PATH/usr/lib$NACL_PACKAGES_BITSIZE \
- -L$NACL_LIB_PATH/lib$NACL_PACKAGES_BITSIZE \
+ -L$NACL_LIB_PATH/usr/lib$NACL_COMPLEMENT_LIBDIR \
+ -L$NACL_LIB_PATH/lib$NACL_COMPLEMENT_LIBDIR \
+ -L$NACL_LIB_PATH/usr/$NACL_LIBDIR \
+ -L$NACL_LIB_PATH/$NACL_LIBDIR \
-D$NACL_BIN_PATH/x86_64-nacl-objdump \
-o thttpd.nmf -s . \
- thttpd_x86-${NACL_COMPLEMENT_BITSIZE}.nexe \
- thttpd_x86-${NACL_PACKAGES_BITSIZE}.nexe
+ thttpd_${NACL_ARCH}.nexe \
+ thttpd_${NACL_COMPLEMENT_ARCH}.nexe
else
$NACL_SDK_ROOT/tools/create_nmf.py \
- -L$NACL_LIB_PATH/usr/lib$NACL_PACKAGES_BITSIZE \
- -L$NACL_LIB_PATH/lib$NACL_PACKAGES_BITSIZE \
+ -L$NACL_LIB_PATH/usr/$NACL_LIBDIR \
+ -L$NACL_LIB_PATH/$NACL_LIBDIR \
-D$NACL_BIN_PATH/x86_64-nacl-objdump \
-o thttpd.nmf -s . \
- thttpd_x86-${NACL_PACKAGES_BITSIZE}.nexe
+ thttpd_${NACL_ARCH}.nexe
fi
DefaultTouchStep
}
« no previous file with comments | « examples/tools/thttpd-2.25b/gen_nmf.sh ('k') | examples/tutorials/life/life-stage-4/Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698