On 2017-07-18, Bernard Mentink <[email protected]> wrote: > Hi all, > > This is my first time on OpenBSD and am really loving it. I had my HP > Pavilion desktop booting into a Gnome3 desktop in no time (.. had so many > issues trying to boot FreeBSD, gave up) > > My question is regarding compiling Linux code. I have some tools for > programming FPGA's which I would really like to do on BSD, i.e the likes of > IceStorm tools and Yosys ... etc > They are not in the Repo or in Ports so don't have much option but to try > and compile from linux .... which failed of course with lot's of errors the > first time I tried. > > Is there any guidelines for porting this stuff?
Start by using the ports infrastructure as it handles some things automatically. Between the ports section of the faq, comments in ports/infrastructure/Makefile.template, and cribbing from existing ports it shouldn't be too tricky to get something that downloads and starts trying to compile - if you then run into problems, send a tar.gz of your work to ports@ with a description and build logs and see if someone can help (logs might give enough a clue to make suggestions, but having the ports bits will make it easy to replicate your work if we need to dig deeper). If the programs you're interested in are ported to FreeBSD or pkgsrc you might be able to borrow ideas or patches from there too.

