Compiling a custom Arduino Micro bootloader

I am trying to compile my own Arduino Micro bootloader so I can change the bootloader LED pin and the PID/VID values. I have copied the files in Hardware/arduino/avr/bootloaders/caterina and downloaded the LUFA library. I can compile the bootloader from the makefile and flash it to the board. The LED reassignment works but the board shows up as an Arduino Leonardo with corresponding PID/VID values when in bootloader mode. I can't work out where it is getting these PID/VIDs and the name from, any help would be greatly appreciated.

I think it might have something to do with the line in the makefile "BOARD = USER" but I don't know where the board drivers are located that it is using?

Post diffs of your Makefile?, ie:

> diff -u Makefile~ Makefile
--- Makefile~	2017-10-02 15:37:16.000000000 -0700
+++ Makefile	2018-02-13 18:43:50.000000000 -0800
@@ -50,7 +50,7 @@
 # reuse of this VID by others is forbidden by USB-IF
 # official Arduino LLC VID
 # VID = 0x2341
-
+VID = 0xFFFF
 
 # USB product ID (PID)
 # official Leonardo PID
@@ -59,6 +59,7 @@
 # PID = 0x0037
 # official Esplora PID
 # PID = 0x003C
+PID = 0x0036
 
 # MCU name
 MCU = atmega32u4
@@ -127,8 +128,8 @@
 
 
 # Path to the LUFA library
-LUFA_PATH = ../../../../../../LUFA/LUFA-111009
-
+#LUFA_PATH = ../../../../../../LUFA/LUFA-111009
+LUFA_PATH = ../LUFA-111009
 
 # LUFA library compile-time options and predefined tokens
 LUFA_OPTSĀ  = -D USB_DEVICE_ONLY

I just came back to this problem, all fixed now. I simply hadn't run a make clean before make build, after cleaning and building it compiles as expected. Thanks!