Jun Yuan Tan 72ccd1f0dd Update Firefox submodule 1 year ago
..
firefox-105.0-1 @ 69f82f5ccf 72ccd1f0dd Update Firefox submodule 1 year ago
patch 49ec4f1a6d Added Firefox 105.0 source and patches 1 year ago
README.md 49ec4f1a6d Added Firefox 105.0 source and patches 1 year ago
mozconfig 49ec4f1a6d Added Firefox 105.0 source and patches 1 year ago

README.md

Firefox RISC-V Build Guide

  1. Download Rust 1.63

    $ curl –proto ‘=https’ –tlsv1.2 -sSf https://sh.rustup.rs | sh $ rustup default 1.63.0

(1.64.0 rust currently have some problems with riscv64)

  1. Download the dependencies needed for build: $ apt-get install libnspr4 libgtk-3-dev

  2. You can either use the source code or git clone: $ cd firefox

    OR

    $ git clone https://salsa.debian.org/mozilla-team/firefox.git -b debian/105.0-1 –depth=1

  3. Apply the following patches:

    $ patch -Np1 -i 0001-Bug-1786638-Return-early-if-we-can-t-fetch-an-intern.patch $ patch -Np1 -i firefox-riscv64-hack.patch $ patch -Np1 -i makotokato-riscv64-support-and-zenithal-backported.patch

  4. Move the mozconfig file into the base directory of the source code:

  5. Build firefox by running:

    $ ./mach vendor rust –ignore-modified $ ./mach build

  6. The output binaries and libraries can be found in ./obj-riscv64-unknown-linux-gnu/dist/bin/