foxygit / fake-08-xbox360 Log in
commit 9d5cc8e5810e3940d5a38118546ee1e6c315d168
Author:     gameblabla <gameblabla@protonmail.com>
AuthorDate: Wed Sep 15 07:07:16 2021 +0200
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Fri Mar 18 20:21:18 2022 -0600

    GKD 350H port
---
 Makefile               |  6 ++++++
 platform/gcw0/Makefile | 11 +++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 9246b34..99ba3a4 100644
--- a/Makefile
+++ b/Makefile
@@ -47,6 +47,9 @@ clean-funkey:

 clean-gcw0:
 	@$(MAKE) -C platform/gcw0 clean
+
+clean-gkd:
+	@$(MAKE) -C platform/gcw0 GKD=1 clean

 clean-miyoomini:
 	@$(MAKE) -C platform/miyoomini clean
@@ -80,6 +83,9 @@ bittboy:

 gcw0:
 	@$(MAKE) -C platform/gcw0
+
+gkd:
+	@$(MAKE) -C platform/gcw0 GKD=1

 miyoomini:
 	@$(MAKE) -C platform/miyoomini
diff --git a/platform/gcw0/Makefile b/platform/gcw0/Makefile
index 3bad88d..1b25257 100644
--- a/platform/gcw0/Makefile
+++ b/platform/gcw0/Makefile
@@ -14,11 +14,18 @@ INCLUDES	:=	${INCLUDES}
 #---------------------------------------------------------------------------------
 # options for code generation
 #---------------------------------------------------------------------------------
+
+ifeq ($(GKD), 1)
+CC = /opt/gcw0-toolchain-static/bin/mipsel-linux-g++
+CXX = /opt/gcw0-toolchain-static/bin/mipsel-linux-g++
+CFLAGS	:= -Wall -Ofast -fdata-sections -ffunction-sections -fno-PIC -mno-shared -mno-abicalls -fno-PIC -flto -DVER_STR=\"$(APP_VERSION)\" $(DEFINES)
+
+else
 CC = /opt/gcw0-toolchain/bin/mipsel-linux-g++
 CXX = /opt/gcw0-toolchain/bin/mipsel-linux-g++
+CFLAGS	:= -Wall -Ofast -fdata-sections -ffunction-sections -fno-PIC -mno-shared -mplt -flto -DVER_STR=\"$(APP_VERSION)\" $(DEFINES)
+endif

-CFLAGS	:= -Wall -Ofast -fdata-sections -ffunction-sections -fno-PIC -mno-shared -mplt -flto -DVER_STR=\"$(APP_VERSION)\" \
-			$(DEFINES)

 CFLAGS	+=	$(INCLUDE)