esaulenka / ghidra_v850

Ghidra support for Renesas V850 MCUs
MIT License
60 stars 25 forks source link

How to build + install on Windows? #15

Closed brandonros closed 3 years ago

brandonros commented 3 years ago

I don't have GNU make installed on Windows. What would the sleigh.bat commands be?

esaulenka commented 3 years ago

You can compile sleigh in the same way, as before (see issue https://github.com/esaulenka/ghidra_v850/issues/13). The only difference is there is second processor rules. So, you should run sleigh.bat twice: with v850e2.slaspec and with v850e3.slaspec

nihalot commented 3 years ago

hi, I compiled both and then copied data folder to $(GHIDRA_HOME)/Ghidra/Extensions but the processor module is not showing up when I load a bin file. What am I missing?

esaulenka commented 3 years ago

@nihalot, you should copy whole folder (starting from v850) to Extension. You must get the following:

$(GHIDRA_HOME)
    Ghidra
        Extensions
             extension name, v850 for example
                 data
                       languages
                            set of v850 files
                 Module.manifest
                 extension.properties

Also, fork of this extension already included in latest Ghidra release. If you want to use my version, first delete Ghidra/Processors/V850

nihalot commented 3 years ago

I didn't get Module.manifest or extension.properties when I built this. I'm on win10 if that's relevant

Thanks for the tip, I tried the official release and I can't set "r5". It's shown as "r4r5(64)" in set register menu. Otherwise seems fine

esaulenka commented 3 years ago

Module.manifest and extension.properties are in root folder in my project. Sleigh compiler only produces .sla file from .slaspec (and .sinc includes). r5 called tp (text pointer). Another shortcuts can be found here.