Lines 527-547
Link Here
|
527 |
'--extra-cflags=-mfpu=vfpv3-d16', |
527 |
'--extra-cflags=-mfpu=vfpv3-d16', |
528 |
]) |
528 |
]) |
529 |
else: |
529 |
else: |
530 |
if host_arch != 'arm': |
|
|
531 |
configure_flags['Common'].extend([ |
532 |
'--enable-cross-compile', |
533 |
'--target-os=linux', |
534 |
'--extra-cflags=--target=arm-linux-gnueabihf', |
535 |
'--extra-ldflags=--target=arm-linux-gnueabihf', |
536 |
'--sysroot=' + os.path.join( |
537 |
CHROMIUM_ROOT_DIR, 'build/linux/debian_sid_arm-sysroot'), |
538 |
'--extra-cflags=-mtune=cortex-a8', |
539 |
# NOTE: we don't need softfp for this hardware. |
540 |
'--extra-cflags=-mfloat-abi=hard', |
541 |
# For some reason configure drops this... |
542 |
'--extra-cflags=-O2', |
543 |
]) |
544 |
|
545 |
if target_arch == 'arm-neon': |
530 |
if target_arch == 'arm-neon': |
546 |
configure_flags['Common'].extend([ |
531 |
configure_flags['Common'].extend([ |
547 |
'--enable-neon', |
532 |
'--enable-neon', |
Lines 553-568
Link Here
|
553 |
'--extra-cflags=-mfpu=vfpv3-d16', |
538 |
'--extra-cflags=-mfpu=vfpv3-d16', |
554 |
]) |
539 |
]) |
555 |
elif target_arch == 'arm64': |
540 |
elif target_arch == 'arm64': |
556 |
if target_os != 'android': |
|
|
557 |
configure_flags['Common'].extend([ |
558 |
'--enable-cross-compile', |
559 |
'--cross-prefix=/usr/bin/aarch64-linux-gnu-', |
560 |
'--target-os=linux', |
561 |
'--extra-cflags=--target=aarch64-linux-gnu', |
562 |
'--extra-ldflags=--target=aarch64-linux-gnu', |
563 |
'--sysroot=' + os.path.join( |
564 |
CHROMIUM_ROOT_DIR, 'build/linux/debian_sid_arm64-sysroot'), |
565 |
]) |
566 |
configure_flags['Common'].extend([ |
541 |
configure_flags['Common'].extend([ |
567 |
'--arch=aarch64', |
542 |
'--arch=aarch64', |
568 |
'--enable-armv8', |
543 |
'--enable-armv8', |
Lines 584-598
Link Here
|
584 |
# Required to avoid errors about dynamic relocation w/o -fPIC. |
559 |
# Required to avoid errors about dynamic relocation w/o -fPIC. |
585 |
'--extra-ldflags=-z notext', |
560 |
'--extra-ldflags=-z notext', |
586 |
]) |
561 |
]) |
587 |
if target_os == 'linux': |
|
|
588 |
configure_flags['Common'].extend([ |
589 |
'--enable-cross-compile', |
590 |
'--target-os=linux', |
591 |
'--sysroot=' + os.path.join( |
592 |
CHROMIUM_ROOT_DIR, 'build/linux/debian_sid_mips-sysroot'), |
593 |
'--extra-cflags=--target=mipsel-linux-gnu', |
594 |
'--extra-ldflags=--target=mipsel-linux-gnu', |
595 |
]) |
596 |
elif target_arch == 'mips64el': |
562 |
elif target_arch == 'mips64el': |
597 |
# These flags taken from android chrome build with target_cpu='mips64el' |
563 |
# These flags taken from android chrome build with target_cpu='mips64el' |
598 |
configure_flags['Common'].extend([ |
564 |
configure_flags['Common'].extend([ |
Lines 611-629
Link Here
|
611 |
'--disable-mips64r2', |
577 |
'--disable-mips64r2', |
612 |
'--enable-msa', |
578 |
'--enable-msa', |
613 |
]) |
579 |
]) |
614 |
if target_os == 'linux': |
|
|
615 |
configure_flags['Common'].extend([ |
616 |
'--enable-cross-compile', |
617 |
'--target-os=linux', |
618 |
'--sysroot=' + os.path.join( |
619 |
CHROMIUM_ROOT_DIR, 'build/linux/debian_sid_mips64el-sysroot'), |
620 |
'--enable-mips64r2', |
621 |
'--disable-mips64r6', |
622 |
'--disable-msa', |
623 |
'--extra-cflags=-mcpu=mips64r2', |
624 |
'--extra-cflags=--target=mips64el-linux-gnuabi64', |
625 |
'--extra-ldflags=--target=mips64el-linux-gnuabi64', |
626 |
]) |
627 |
else: |
580 |
else: |
628 |
print( |
581 |
print( |
629 |
'Error: Unknown target arch %r for target OS %r!' % (target_arch, |
582 |
'Error: Unknown target arch %r for target OS %r!' % (target_arch, |