Creating custom ESP32 boards

I have a couple of custom ESP32 S3 based boards I am developing and have a custom pins_arduino.h file as well as some customizations to the boards.txt file. Is there a way I can add my boards without having to modify the esp32/hardware/esp32/3.x.x/boards.txt file all the time to include it? I have not found any clear instructions on how to add my own custom boards. I do not want to include these with upstream since these are just for personal use, but it’s a pain every time I update where I have to re-add my own custom variants.

PlatformIO doesn’t read this file in the first place. It uses board JSON definitions. Are you developing for the Arduino IDE? Then that topic is better discussed at https://forum.arduino.cc/.

I am using the Arduino IDE.

Then

Will be your resources to work with, not PlatformIO.