Apologies in advance for this newb first post but I feel a bit lost in this FreeBSD world...
I've successfully installed a FreeBSD-12.1 VM and followed the Setting up a build system (https://github.com/opnsense/tools#setting-up-a-build-system) steps. That all went fine.
Then I found a post in the forums that said to run something like:
make prefetch-packages,base,kernel VERSION=20.7.1
which also seemed to work.
Next I ran:
cd /usr/core
git checkout -b my-new-branch
and made a simple change (just as a test), added and committed it, but now I don't know what's next.
I saw something about needing to set COREBRANCH=my-new-branch?
So my questions:
- How do I rebuild core so it picks up my change(s) (ideally without having to rebuild anything else)?
- Once there's a new core, how do I go about testing the changes? Do I need to keep re-installing OPNsense from an image, or is there a more efficient way? (The files I'm changing are just .php and .inc files, in case that makes things easier?)
Thanks for any help.
Ah, thanks!
This approach does seem easier. ;)
The only other thing I had to do was run:
opnsense-update -t opnsense-devel
before I could run make upgrade.
Thanks again!