Hello,
You cannot change the location of the generated code, but you can export the source files to any location you wish.
Use the right click -> Export option to bring up the tool:

Under 'S32 Configuration Tools', select the 'Export Source Files' option for the tool you wish (only Pins, Clocks, and Peripherals supported for this).

Now you can specify any location you want.
Best regards,
Mike