Skip to content

Commit

Permalink
Remove redundant defines and add build check for MW module
Browse files Browse the repository at this point in the history
  • Loading branch information
rhargreaves committed Sep 7, 2024
1 parent 4b78212 commit 9ec209c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion .vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"DEBUG",
"DEBUG_EVENTS",
"DEBUG_TICKS",
"MODULE_MEGAWIFI=1",
"BUILD=\"dev\""
],
"cStandard": "c11",
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ release: res/samples

include $(SGDK)/makefile.gen

EXTRA_FLAGS:=-DMODULE_MEGAWIFI=1 \
-DBUILD='"$(BUILD)"' \
EXTRA_FLAGS:=-DBUILD='"$(BUILD)"' \
-Wl,--wrap=SYS_enableInts \
-Wl,--wrap=SYS_disableInts

Expand Down
4 changes: 4 additions & 0 deletions src/build_checks.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#if (ENABLE_BANK_SWITCH == 0)
#error Bank switching support disabled. Build SGDK with ENABLE_BANK_SWITCH = 1
#endif

#if (MODULE_MEGAWIFI == 0)
#error MegaWiFi module disabled. Build SGDK with MODULE_MEGAWIFI = 1
#endif
1 change: 0 additions & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ INCLUDE_DIRS+=-I$(CMOCKA_DIR)/include
CFLAGS=$(INCLUDE_DIRS) \
-DBUILD='"$(BUILD)"' \
-DUNIT_TESTS \
-DMODULE_MEGAWIFI=1 \
-ggdb \
-O0 \
-Wall \
Expand Down

0 comments on commit 9ec209c

Please sign in to comment.