Ensure fidlc and fidlgen are built, for instance
fidlc
fidlgen
fx set-petal garnet fx clean-build x64
Then run the regen.sh script, e.g.
regen.sh
./regen.sh
It is safe to run the script from anywhere.