Browse Source

add flash cart type to makefile

Thomas B 1 month ago
parent
commit
0c24e0b36d
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      Makefile

+ 3
- 2
Makefile View File

61
 	BUILD_TYPE = Release
61
 	BUILD_TYPE = Release
62
 endif
62
 endif
63
 
63
 
64
-FLASHFLAGS := --mode dmg --action flash-rom
64
+FLASHCART := "DIY cart with MX29LV640 @ WR"
65
+FLASHFLAGS := --mode dmg --action flash-rom --flashcart-type $(FLASHCART)
65
 
66
 
66
 $(info BUILD_TYPE is $(BUILD_TYPE))
67
 $(info BUILD_TYPE is $(BUILD_TYPE))
67
 
68
 
104
 
105
 
105
 flash: $(BIN)
106
 flash: $(BIN)
106
 	@echo Flasing $<
107
 	@echo Flasing $<
107
-	$(FLASHER) $(FLASHFLAGS) $<
108
+	@$(FLASHER) $(FLASHFLAGS) $<
108
 
109
 
109
 $(BUILD_DIR)/$(DATA_DIR)/%.c $(BUILD_DIR)/$(DATA_DIR)/%.h: $(DATA_DIR)/%.png
110
 $(BUILD_DIR)/$(DATA_DIR)/%.c $(BUILD_DIR)/$(DATA_DIR)/%.h: $(DATA_DIR)/%.png
110
 	@mkdir -p $(@D)
111
 	@mkdir -p $(@D)

Loading…
Cancel
Save