Lines Matching refs:ARCH
28 # $SRC/android-N/include --> $DST/android-N/arch-A/usr/include
29 # $SRC/android-N/arch-A/include --> $DST/android-N/arch-A/usr/include
30 # $SRC/android-N/arch-A/lib --> $DST/android-N/arch-A/usr/lib
34 # $SRC/android-N/arch-A/symbols --> $DST/android-N/arch-A/usr/lib
101 --arch=*)
143 echo " --arch=<list> List of CPU architectures [$ARCHS]"
192 # We support both --arch and --abi for backwards compatibility reasons
193 # --arch is the new hotness, --abi is deprecated.
200 echo "WARNING: --abi=<names> is deprecated. Use --arch=<names> instead!"
203 echo "ERROR: You can't use both --abi and --arch with different values!"
228 for ARCH in $ARCHS; do
229 eval CHECK_$ARCH=no
232 for ARCH in $ARCHS; do
233 DIR="$SRCDIR/platforms/android-$PLATFORM/arch-$ARCH"
236 eval CHECK_$ARCH=yes
247 for ARCH in $ARCHS; do
248 CHECK=`var_value CHECK_$ARCH`
249 log " $ARCH check: $CHECK"
252 BAD_ARCHS=$ARCH
254 BAD_ARCHS="$BAD_ARCHS $ARCH"
333 local ARCH LIBRARY SYMBOL_FILE
334 ARCH=$1
337 SYMBOL_FILE=$PROGDIR/unwanted-symbols/$ARCH/$LIBRARY.functions.txt
345 local ARCH LIBRARY SYMBOL_FILE
346 ARCH=$1
349 SYMBOL_FILE=$PROGDIR/unwanted-symbols/$ARCH/$LIBRARY.variables.txt
357 local ARCH=$1
360 if [ "$(arch_in_unknown_archs $ARCH)" = "yes" ]; then
372 dump "ERROR: $ARCH toolchain not installed: $CC"
437 local ARCH=$1
444 CC=$(get_default_compiler_for_arch $ARCH)" $FLAGS"
458 funcs=$(remove_unwanted_function_symbols $ARCH libgcc.a $funcs)
459 funcs=$(remove_unwanted_function_symbols $ARCH $LIB $funcs)
460 vars=$(remove_unwanted_variable_symbols $ARCH $LIB $vars)
463 log "Generating $ARCH shared library for $LIB ($numfuncs functions + $numvars variables)"
478 local ARCH=$2
491 CC=$(get_default_compiler_for_arch $ARCH)" $FLAGS"
529 log "Generating $ARCH C runtime object: $DST_FILE"
533 -I$SRCDIR/../../bionic/libc/arch-$ARCH/include \
556 local ARCH=$2
557 local HEADER="platforms/android-$API/arch-$ARCH/usr/include/android/api-level.h"
600 # if $SRC/android-$PLATFORM/arch-$ARCH exists
601 # $SRC/android-$PLATFORM/include --> $DST/android-$PLATFORM/arch-$ARCH/usr/include
602 # $SRC/android-$PLATFORM/arch-$ARCH/include --> $DST/android-$PLATFORM/arch-$ARCH/usr/include
603 # $SRC/android-$PLATFORM/arch-$ARCH/lib --> $DST/android-$PLATFORM/arch-$ARCH/usr/lib
608 for ARCH in $ARCHS; do
609 # Find first platform for this arch
614 SYSROOT_DST=$PLATFORM_DST/arch-$ARCH/usr
615 # Skip over if there is no arch-specific file for this platform
619 ! -d "$SRCDIR/$PLATFORM_SRC/arch-$ARCH" ]; then
620 log "Skipping: \$SRC/$PLATFORM_SRC/arch-$ARCH"
624 log "Populating \$DST/platforms/android-$PLATFORM/arch-$ARCH"
653 # Now copy over all non-arch specific include files
655 copy_src_directory $PLATFORM_SRC/arch-$ARCH/include $SYSROOT_DST/include "$ARCH system headers"
657 generate_api_level "$PLATFORM" "$ARCH" "$DSTDIR"
662 if [ "$ARCH" = "x86_64" ]; then
664 copy_src_directory $PLATFORM_SRC/arch-$ARCH/lib $SYSROOT_DST/lib "x86 sysroot libs"
665 copy_src_directory $PLATFORM_SRC/arch-$ARCH/lib64 $SYSROOT_DST/lib64 "x86_64 sysroot libs"
666 copy_src_directory $PLATFORM_SRC/arch-$ARCH/libx32 $SYSROOT_DST/libx32 "x32 sysroot libs"
668 copy_src_directory $PLATFORM_SRC/arch-$ARCH/lib $SYSROOT_DST/lib "$ARCH sysroot libs"
672 PLATFORM_SRC_ARCH=$PLATFORM_SRC/arch-$ARCH/src
680 if [ "$(arch_in_unknown_archs $ARCH)" != "yes" ]; then
681 if [ "$ARCH" = "x86_64" ]; then
683 gen_crt_objects $PLATFORM $ARCH platforms/common/src $PLATFORM_SRC_ARCH $SYSROOT_DST/lib "-m32"
684 gen_crt_objects $PLATFORM $ARCH platforms/common/src $PLATFORM_SRC_ARCH $SYSROOT_DST/lib64 "-m64"
685 gen_crt_objects $PLATFORM $ARCH platforms/common/src $PLATFORM_SRC_ARCH $SYSROOT_DST/libx32 "-mx32"
687 gen_crt_objects $PLATFORM $ARCH platforms/common/src $PLATFORM_SRC_ARCH $SYSROOT_DST/lib
692 if [ "$ARCH" = "x86_64" ]; then
694 gen_shared_libraries $ARCH $PLATFORM_SRC/arch-$ARCH/symbols $SYSROOT_DST/lib "-m32"
695 gen_shared_libraries $ARCH $PLATFORM_SRC/arch-$ARCH/symbols $SYSROOT_DST/lib64 "-m64"
696 gen_shared_libraries $ARCH $PLATFORM_SRC/arch-$ARCH/symbols $SYSROOT_DST/libx32 "-mx32"
698 gen_shared_libraries $ARCH $PLATFORM_SRC/arch-$ARCH/symbols $SYSROOT_DST/lib
702 if [ "$ARCH" = "x86_64" ]; then
704 copy_src_directory $PLATFORM_SRC/arch-$ARCH/lib-bootstrap/lib $SYSROOT_DST/lib "x86 sysroot libs (boostrap)"
705 copy_src_directory $PLATFORM_SRC/arch-$ARCH/lib-bootstrap/lib64 $SYSROOT_DST/lib64 "x86_64 sysroot libs (boostrap)"
706 copy_src_directory $PLATFORM_SRC/arch-$ARCH/lib-bootstrap/libx32 $SYSROOT_DST/libx32 "x32 sysroot libs (boostrap)"
708 copy_src_directory $PLATFORM_SRC/arch-$ARCH/lib-bootstrap $SYSROOT_DST/lib "$ARCH sysroot libs (boostrap)"