modify bootloader

Hi. Can you help me? I need to modify optiboot bootloader this way:

  • if digitalRead(A0) is LOW (jumper on), then after turn on atmega328p directly jump (through bootloader) to my program (bootloader not wait for UART, not flash LED, botloader "not works").
  • if digitalRead(A0) is HIGH (jumper off, input_pullup), then after turn on atmega328p bootloader works.
    Can you create HEX file to me? I use atmega328p, 16MHz external crystal and Arduino IDE (classical arduino uno configuration). Thanks.

(deleted)

Or why do you need a boot loader at all ? Just use an ISP to to load your sketch.
Here is an excellent description of the whole process: