From 9ef4526a2f6cdd2e708e7cfc37845a04749665dd Mon Sep 17 00:00:00 2001
From: Ryan <fauxpark@gmail.com>
Date: Tue, 18 Aug 2020 13:02:01 +1000
Subject: [PATCH] Remove unused CORTEX_VTOR_INIT (#10053)

---
 keyboards/cannonkeys/ortho48/rules.mk                        | 1 -
 keyboards/cannonkeys/ortho60/rules.mk                        | 1 -
 keyboards/cannonkeys/ortho75/rules.mk                        | 1 -
 keyboards/cannonkeys/practice60/rules.mk                     | 1 -
 keyboards/cannonkeys/practice65/rules.mk                     | 1 -
 keyboards/converter/siemens_tastatur/rules.mk                | 1 -
 keyboards/ergodox_infinity/rules.mk                          | 5 -----
 .../bluepill/ld/STM32F103x8_stm32duino_bootloader.ld         | 3 ---
 keyboards/handwired/onekey/bluepill/rules.mk                 | 1 -
 keyboards/handwired/z150/rules.mk                            | 1 -
 keyboards/infinity60/rules.mk                                | 5 -----
 keyboards/wolfmarkclub/wm1/ld/wm1_f103.ld                    | 3 ---
 keyboards/wolfmarkclub/wm1/rules.mk                          | 1 -
 keyboards/zvecr/split_blackpill/rules.mk                     | 1 -
 platforms/chibios/ld/STM32F103x8_stm32duino_bootloader.ld    | 3 ---
 15 files changed, 29 deletions(-)

diff --git a/keyboards/cannonkeys/ortho48/rules.mk b/keyboards/cannonkeys/ortho48/rules.mk
index f2fc3e128e..5e18d91ca4 100644
--- a/keyboards/cannonkeys/ortho48/rules.mk
+++ b/keyboards/cannonkeys/ortho48/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 
diff --git a/keyboards/cannonkeys/ortho60/rules.mk b/keyboards/cannonkeys/ortho60/rules.mk
index aaa14c2dbe..80b31a12f4 100644
--- a/keyboards/cannonkeys/ortho60/rules.mk
+++ b/keyboards/cannonkeys/ortho60/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 
diff --git a/keyboards/cannonkeys/ortho75/rules.mk b/keyboards/cannonkeys/ortho75/rules.mk
index fe9cec84c1..ae196fd850 100644
--- a/keyboards/cannonkeys/ortho75/rules.mk
+++ b/keyboards/cannonkeys/ortho75/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 
diff --git a/keyboards/cannonkeys/practice60/rules.mk b/keyboards/cannonkeys/practice60/rules.mk
index 3959137368..3713b6078d 100644
--- a/keyboards/cannonkeys/practice60/rules.mk
+++ b/keyboards/cannonkeys/practice60/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 
diff --git a/keyboards/cannonkeys/practice65/rules.mk b/keyboards/cannonkeys/practice65/rules.mk
index d6d2b3fe7e..5fd4892dc5 100644
--- a/keyboards/cannonkeys/practice65/rules.mk
+++ b/keyboards/cannonkeys/practice65/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 
diff --git a/keyboards/converter/siemens_tastatur/rules.mk b/keyboards/converter/siemens_tastatur/rules.mk
index bc5875962b..03e6b0f49d 100644
--- a/keyboards/converter/siemens_tastatur/rules.mk
+++ b/keyboards/converter/siemens_tastatur/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 
diff --git a/keyboards/ergodox_infinity/rules.mk b/keyboards/ergodox_infinity/rules.mk
index 31bc20454c..29e5c6dd73 100644
--- a/keyboards/ergodox_infinity/rules.mk
+++ b/keyboards/ergodox_infinity/rules.mk
@@ -13,11 +13,6 @@ MCU = MK20DX256
 #   - MK20DX256BLDR8 for Infinity ErgoDox with Kiibohd bootloader
 MCU_LDSCRIPT = MK20DX256BLDR8
 
-# Vector table for application
-# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
-# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
-OPT_DEFS += -DCORTEX_VTOR_INIT=0x00002000
-
 BOOTLOADER = dfu
 
 # Build Options
diff --git a/keyboards/handwired/bluepill/ld/STM32F103x8_stm32duino_bootloader.ld b/keyboards/handwired/bluepill/ld/STM32F103x8_stm32duino_bootloader.ld
index f9bfe9c005..23e44bd63a 100644
--- a/keyboards/handwired/bluepill/ld/STM32F103x8_stm32duino_bootloader.ld
+++ b/keyboards/handwired/bluepill/ld/STM32F103x8_stm32duino_bootloader.ld
@@ -16,9 +16,6 @@
 
 /*
  * ST32F103xB memory setup for use with the maplemini bootloader.
- * You will have to
- * 	#define CORTEX_VTOR_INIT 0x5000
- * in your projects chconf.h
  */
 MEMORY
 {
diff --git a/keyboards/handwired/onekey/bluepill/rules.mk b/keyboards/handwired/onekey/bluepill/rules.mk
index 83a81a56b1..66ce517445 100644
--- a/keyboards/handwired/onekey/bluepill/rules.mk
+++ b/keyboards/handwired/onekey/bluepill/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 
diff --git a/keyboards/handwired/z150/rules.mk b/keyboards/handwired/z150/rules.mk
index 08bd7908eb..fd1d382033 100644
--- a/keyboards/handwired/z150/rules.mk
+++ b/keyboards/handwired/z150/rules.mk
@@ -1,7 +1,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 STM32_BOOTLOADER_ADDRESS = 0x80000000
diff --git a/keyboards/infinity60/rules.mk b/keyboards/infinity60/rules.mk
index 579eab0f3f..e6b234d821 100644
--- a/keyboards/infinity60/rules.mk
+++ b/keyboards/infinity60/rules.mk
@@ -21,11 +21,6 @@ MCU_LDSCRIPT = MK20DX128BLDR4
 #   - MCHCK_K20 for Infinity KB
 BOARD = MCHCK_K20
 
-# Vector table for application
-# 0x00000000-0x00001000 area is occupied by bootlaoder.*/
-# The CORTEX_VTOR... is needed only for MCHCK/Infinity KB
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x00001000
-
 BOOTLOADER = dfu
 
 # Build Options
diff --git a/keyboards/wolfmarkclub/wm1/ld/wm1_f103.ld b/keyboards/wolfmarkclub/wm1/ld/wm1_f103.ld
index 41362282bc..3959f395ac 100644
--- a/keyboards/wolfmarkclub/wm1/ld/wm1_f103.ld
+++ b/keyboards/wolfmarkclub/wm1/ld/wm1_f103.ld
@@ -16,9 +16,6 @@
 
 /*
  * STM32F103xC memory setup for use with the WM1 mass-storage device bootloader.
- * You will have to change:
- * 	OPT_DEFS = -DCORTEX_VTOR_INIT=0x10000
- * in your board's rules.mk
  */
 MEMORY
 {
diff --git a/keyboards/wolfmarkclub/wm1/rules.mk b/keyboards/wolfmarkclub/wm1/rules.mk
index 14ddab26d9..fcd4da1aff 100644
--- a/keyboards/wolfmarkclub/wm1/rules.mk
+++ b/keyboards/wolfmarkclub/wm1/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - mass storage bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x10000
 MCU_LDSCRIPT = wm1_f103
 BOARD = STM32_F103_STM32DUINO
 
diff --git a/keyboards/zvecr/split_blackpill/rules.mk b/keyboards/zvecr/split_blackpill/rules.mk
index 95d901ee06..151ed15d84 100644
--- a/keyboards/zvecr/split_blackpill/rules.mk
+++ b/keyboards/zvecr/split_blackpill/rules.mk
@@ -2,7 +2,6 @@
 MCU = STM32F103
 
 # GENERIC STM32F103C8T6 board - stm32duino bootloader
-OPT_DEFS = -DCORTEX_VTOR_INIT=0x2000
 MCU_LDSCRIPT = STM32F103x8_stm32duino_bootloader
 BOARD = STM32_F103_STM32DUINO
 STM32_BOOTLOADER_ADDRESS = 0x80000000
diff --git a/platforms/chibios/ld/STM32F103x8_stm32duino_bootloader.ld b/platforms/chibios/ld/STM32F103x8_stm32duino_bootloader.ld
index d0688ef601..bb852422a3 100644
--- a/platforms/chibios/ld/STM32F103x8_stm32duino_bootloader.ld
+++ b/platforms/chibios/ld/STM32F103x8_stm32duino_bootloader.ld
@@ -16,9 +16,6 @@
 
 /*
  * ST32F103xB memory setup for use with the maplemini bootloader.
- * You will have to
- * 	#define CORTEX_VTOR_INIT 0x5000
- * in your projects chconf.h
  */
 MEMORY
 {