I know in general how to apply patch. But the patch I need to apply is for RISC-V makefile; in crosstool-ng there seem to be no Makefile for RISC-V. I think in crosstool-ng you can configure RISC-V options using 'ct-ng menuconfig' once you configured then one need to use ct-ng build to to build compiler. The crosstool-ng will build compiler using the config options, I think there is no Makefile as such for RISC-V. However, I might be wrong. On Mon, Jun 15, 2020 at 7:33 PM Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: > On Mon, 15 Jun 2020 at 15:00, Vijay Holimath via Gcc-help > <gcc-help@xxxxxxxxxxx> wrote: > > > > Hello All, > > > > I need to apply this patch: > > > https://github.com/bespoke-silicon-group/bsg_manycore/blob/master/software/riscv-tools/newlib.patch > > for > > RISC-V and build compiler using crosstool-ng. Can you please tell me how > to > > do it? > > That has nothing to do with GCC. Try searching the web for "how to > apply a patch". >