I have created a "new" Board in Arduino which is only for flashing the bootloader.
Open [arduino-dir]\hardware\tools\avr\etc\avrdude.conf in Editor and search for ATMEGA238P
you'll find this line:
#------------------------------------------------------------
# ATmega328P
#------------------------------------------------------------