]> git.donarmstrong.com Git - tmk_firmware.git/commitdiff
Add BOOTLOADER_SIZE and remove BOOT_SIZE
authortmk <nobody@nowhere>
Sun, 10 Mar 2013 06:36:07 +0000 (15:36 +0900)
committertmk <nobody@nowhere>
Sun, 10 Mar 2013 08:53:29 +0000 (17:53 +0900)
- define BOOTLOADER_SIZE in config.h instead of Makefile

common/bootloader.c
keyboard/gh60/Makefile.lufa
keyboard/gh60/config.h
keyboard/hhkb/Makefile.iwrap
keyboard/hhkb/Makefile.lufa
keyboard/hhkb/config.h
keyboard/hhkb/config_iwrap.h

index 023220414bb6dedf3890e88b608e1fee8a373164..f9802d36c52a0bc70e8da18a5712d3fb984b8fe7 100644 (file)
 
 
 /* Boot Section Size in *BYTEs*
- * Teensy   halfKay     512
- * Teensy++ halfKay     1024
- * Atmel DFU loader     4096
- * LUFA bootloader      4096
+ *   Teensy   halfKay    512
+ *   Teensy++ halfKay    1024
+ *   Atmel DFU loader    4096
+ *   LUFA bootloader     4096
+ *   USBaspLoader        2048
  */
-#ifndef BOOT_SIZE
-#define BOOT_SIZE 512
+#ifndef BOOTLOADER_SIZE
+#warn To use bootloader_jump() you need to define BOOTLOADER_SIZE in config.h.
 #endif
+
 #define FLASH_SIZE          (FLASHEND + 1L)
-#define BOOTLOADER_START    (FLASH_SIZE - BOOT_SIZE)
+#define BOOTLOADER_START    (FLASH_SIZE - BOOTLOADER_SIZE)
 
 
 /* 
index 65b6240efc62fd3fc945b0fa91b11df0e8e06079..2076c919ca0f5ccde3205c94156f53d72f3d7e02 100644 (file)
@@ -107,13 +107,6 @@ CONSOLE_ENABLE = yes       # Console for debug(+400)
 #PS2_MOUSE_ENABLE = yes        # PS/2 mouse(TrackPoint) support
 
 
-# Boot Section Size in bytes
-#   Teensy halfKay   512
-#   Atmel DFU loader 4096
-#   LUFA bootloader  4096
-OPT_DEFS += -DBOOT_SIZE=4096
-
-
 # Search Path
 VPATH += $(TARGET_DIR)
 VPATH += $(TOP_DIR)
index 3a7a3f97fbf6e382b04f513e0aaff2ca44800236..be4d72384eaf1d9ddfe380558b615c74dd47ab2f 100644 (file)
@@ -25,12 +25,20 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define DEVICE_VER      0x0001
 #define MANUFACTURER    geekhack
 #define PRODUCT         GH60
-
-
 /* message strings */
 #define DESCRIPTION     t.m.k. keyboard firmware for GH60
 
 
+/* Boot Section Size in *BYTEs*
+ *   Teensy   halfKay    512
+ *   Teensy++ halfKay    1024
+ *   Atmel DFU loader    4096
+ *   LUFA bootloader     4096
+ *   USBaspLoader        2048
+ */
+#define BOOTLOADER_SIZE 4096
+
+
 /* matrix size */
 #define MATRIX_ROWS 5
 #define MATRIX_COLS 14
index 3ec1a31645ca9fa863d13b0fc901a0720faf90bc..f87df0d2bbaea56e3bb67dfd0cb82359d1009682 100644 (file)
@@ -49,15 +49,6 @@ EXTRAKEY_ENABLE = yes        # Audio control and System control
 #NKRO_ENABLE = yes     # USB Nkey Rollover
 
 
-# Boot Section Size in *BYTEs*
-#   Teensy   halfKay    512
-#   Teensy++ halfKay    1024
-#   Atmel DFU loader    4096
-#   LUFA bootloader     4096
-#   USBaspLoader        2048
-OPT_DEFS += -DBOOT_SIZE=2048
-
-
 
 #---------------- Programming Options --------------------------
 AVRDUDE = avrdude
index 75c0310d6ecdec668413d07df49dbdf8f3e570ad..e8b2414d392c55c86ba764ca299c4881d2f2bed5 100644 (file)
@@ -107,14 +107,6 @@ CONSOLE_ENABLE = yes       # Console for debug
 #PS2_MOUSE_ENABLE = yes        # PS/2 mouse(TrackPoint) support
 
 
-# Boot Section Size in *BYTEs*
-#   Teensy   halfKay    512
-#   Teensy++ halfKay    1024
-#   Atmel DFU loader    4096
-#   LUFA bootloader     4096
-OPT_DEFS += -DBOOT_SIZE=1024
-
-
 # Search Path
 VPATH += $(TARGET_DIR)
 VPATH += $(TOP_DIR)
index 72e4d26e9214ac5dab7eed724b24c9acbce4f5c3..3bfeb45ed4c71f07275641e3766749f75c66ffa1 100644 (file)
@@ -27,9 +27,17 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define DEVICE_VER      0x0103
 #define MANUFACTURER    t.m.k.
 #define PRODUCT         HHKB mod
+#define DESCRIPTION     t.m.k. keyboard firmware for HHKB mod
 
 
-#define DESCRIPTION     t.m.k. keyboard firmware for HHKB mod
+/* Boot Section Size in *BYTEs*
+ *   Teensy   halfKay    512
+ *   Teensy++ halfKay    1024
+ *   Atmel DFU loader    4096
+ *   LUFA bootloader     4096
+ *   USBaspLoader        2048
+ */
+#define BOOTLOADER_SIZE 1024
 
 
 /* matrix size */
index d50b704d72bac39c9ee1d986d90b758a088dd26b..2c18cd817a51ab9f42c4941f97cec43df63706c2 100644 (file)
@@ -27,6 +27,16 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define DESCRIPTION     t.m.k. keyboard firmware for HHKB mod
 
 
+/* Boot Section Size in *BYTEs*
+ *   Teensy   halfKay    512
+ *   Teensy++ halfKay    1024
+ *   Atmel DFU loader    4096
+ *   LUFA bootloader     4096
+ *   USBaspLoader        2048
+ */
+#define BOOTLOADER_SIZE 2048
+
+
 /* matrix size */
 #define MATRIX_ROWS 8
 #define MATRIX_COLS 8