mozconfig-linux-arm 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Based on Win64 mozconfig
  2. CROSS_COMPILE=1
  3. ac_add_options --enable-application=browser
  4. # Based on Win64 mozconfig
  5. ac_add_options --target=arm-linux-gnueabihf
  6. ac_add_options --with-toolchain-prefix=arm-linux-gnueabihf-
  7. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-arm
  8. mk_add_options MOZ_APP_DISPLAYNAME="Tor Browser"
  9. mk_add_options MOZILLA_OFFICIAL=1
  10. mk_add_options BUILD_OFFICIAL=1
  11. # From Mozilla MDN "Cross-compiling Mozilla" docs
  12. ac_add_options --prefix=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf
  13. # Failed attempt to prevent host includes from showing up
  14. #CROSS_SYSROOT=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf
  15. #export CFLAGS="-isysroot $CROSS_SYSROOT"
  16. #export CXXFLAGS="-isysroot $CROSS_SYSROOT"
  17. #export CPPFLAGS="-isysroot $CROSS_SYSROOT"
  18. # New attempt to prevent host includes from showing up... passes configure but seems to break sqlite?
  19. #CROSS_SYSROOT=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf
  20. #FLAGS="-include $CROSS_SYSROOT/include/features.h"
  21. #export CFLAGS="$FLAGS"
  22. #export CXXFLAGS="$FLAGS"
  23. #export CPPFLAGS="$FLAGS"
  24. # Try to fix missing X libraries in configure
  25. ac_add_options --x-libraries=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/lib
  26. # And do the same for missing X headers
  27. ac_add_options --x-includes=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/include
  28. # From Mozilla MDN "Compiling 32-bit Firefox on a Linux 64-bit OS" docs
  29. # Should fix "error: Can't find header fontconfig/fcfreetype.h"
  30. #ac_add_options --disable-freetypetest
  31. #mk_add_options USE_FC_FREETYPE=0
  32. #ac_add_options --disable-pango
  33. # Trying random stuff here
  34. mk_add_options MOZ_TREE_FREETYPE=1
  35. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  36. export PKG_CONFIG_PATH=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/pkgconfig
  37. #export CPPFLAGS="-I/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/include -I/usr/include -I/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/include"
  38. #export CFLAGS="-I/usr/include/arm-linux-gnueabihf"
  39. #mk_add_options CPPFLAGS="$CPPFLAGS"
  40. #mk_add_options CFLAGS=$CFLAGS
  41. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  42. FIX_LINK_LDFLAGS="-L/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/lib -Wl,-rpath-link=/var/tmp/dist/gcc-cross/arm-linux-gnueabihf/lib"
  43. export LDFLAGS="$FIX_LINK_LDFLAGS"
  44. LDFLAGS="$FIX_LINK_LDFLAGS"
  45. export WRAP_LDFLAGS="$FIX_LINK_LDFLAGS"
  46. mk_add_options LDFLAGS="$FIX_LINK_LDFLAGS"
  47. # TODO: what does this do???
  48. #ac_add_options --host=i686-linux-gnu
  49. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  50. #export ac_cv_have_usable_wchar_option_v2="no"
  51. #ac_add_options --enable-mobile-optimize
  52. #ac_add_options --enable-system-ffi
  53. ac_add_options --enable-optimize
  54. #ac_add_options --disable-optimize
  55. ac_add_options --enable-official-branding
  56. # Let's support GTK3 for ESR60
  57. ac_add_options --enable-default-toolkit=cairo-gtk3
  58. ac_add_options --enable-tor-browser-update
  59. ac_add_options --enable-signmar
  60. ac_add_options --enable-verify-mar
  61. ac_add_options --disable-tests
  62. ac_add_options --disable-debug
  63. ac_add_options --disable-debug-symbols
  64. ac_add_options --disable-maintenance-service
  65. ac_add_options --disable-crashreporter
  66. ac_add_options --disable-webrtc
  67. # Let's make sure no preference is enabling either Adobe's or Google's CDM.
  68. ac_add_options --disable-eme
  69. #ac_add_options --disable-ctypes
  70. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  71. # https://bugzilla.mozilla.org/show_bug.cgi?id=1452128 comment #32 says --disable-elf-hack is needed when cross-compiling ESR 60 for arm32 targets
  72. ac_add_options --disable-elf-hack
  73. #ac_add_options --enable-libjpeg-turbo
  74. # From https://wiki.mozilla.org/Mobile/Fennec/RaspberryPi/mozconfig2
  75. #ac_add_options --with-arm-kuser
  76. #ac_add_options --with-thumb=toolchain-default
  77. #ac_add_options --with-arch=armv6
  78. #ac_add_options --with-float-abi=hard
  79. #ac_add_options --with-thumb=no
  80. #ac_add_options --with-fpu=vfp
  81. # From https://archlinuxarm.org/packages/armv7h/firefox/files/PKGBUILD
  82. ac_add_options --enable-optimize="-g -O2 -fno-schedule-insns"
  83. ac_add_options --disable-stylo