From 35d7231b7d81654a42be7cba27b567850416f7cb Mon Sep 17 00:00:00 2001 From: Steven Smith Date: Mon, 9 May 2016 16:51:08 -0700 Subject: [PATCH] Add wiiload support to Wii U target. --- make_base | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/make_base b/make_base index 315f1c9..59e568f 100644 --- a/make_base +++ b/make_base @@ -147,11 +147,15 @@ ifeq ($(TARGET),3DS) BANNER_AUDIO_ARG := -a endif else ifeq ($(TARGET),WIIU) + REMOTE_IP ?= 127.0.0.1 # User-defined + AR := $(DEVKITPPC)/bin/powerpc-eabi-ar AS := $(DEVKITPPC)/bin/powerpc-eabi-as CC := $(DEVKITPPC)/bin/powerpc-eabi-gcc CXX := $(DEVKITPPC)/bin/powerpc-eabi-g++ + WIILOAD_BIN := $(DEVKITPPC)/bin/wiiload + ifeq ($(LIBRARY),1) OUTPUT_FILES := $(OUTPUT_DIR)/lib/$(STRIPPED_NAME).a else @@ -313,6 +317,10 @@ install: $(OUTPUT_FILES) $(OUTPUT_ZIP_FILE) @mkdir -p $(DEVKITPRO)/$(STRIPPED_NAME) @unzip -o $(OUTPUT_ZIP_FILE) -d $(DEVKITPRO)/$(STRIPPED_NAME) > /dev/null @echo "Installed." +else +runhw: $(OUTPUT_FILES) $(OUTPUT_ZIP_FILE) + @echo "Running..." + @WIILOAD=tcp:$(REMOTE_IP) $(WIILOAD_BIN) $(OUTPUT_DIR)/wiiu/apps/$(STRIPPED_NAME)/$(STRIPPED_NAME).elf $(RUN_FLAGS) endif $(OUTPUT_DIR)/wiiu/apps/$(STRIPPED_NAME)/meta.xml: