| View previous topic :: View next topic |
| Author |
Message |
Heimdall
Joined: 10 Nov 2005 Posts: 259 Location: Netherlands
|
Posted: Fri Feb 20, 2009 8:56 pm Post subject: toolchain libraries need kubridge.h which is not in the SDK |
|
|
| the lastest SVN pspirkeyb from PS2DEV SVN required kubridge.h, this header is not part of the SDK itself, it is from DA's SDK, if i want to keep my SDK with only open source code I cannot build it, is it really necessary to include kubridge.h and it's functions? |
|
| Back to top |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 259 Location: Netherlands
|
Posted: Fri Feb 20, 2009 10:52 pm Post subject: |
|
|
actually answering myself, applying this patch:
| Code: | Index: asciidemo/main.c
===================================================================
--- asciidemo/main.c (revision 2452)
+++ asciidemo/main.c (working copy)
@@ -9,7 +9,6 @@
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspctrl.h>
-#include <kubridge.h>
#include <pspirkeyb.h>
#include <pspirkeyb_rawkeys.h>
Index: asciidemo/Makefile
===================================================================
--- asciidemo/Makefile (revision 2452)
+++ asciidemo/Makefile (working copy)
@@ -9,7 +9,7 @@
LIBDIR = $(PSPDEV)/SDK/lib ../libpspirkeyb
LDFLAGS =
-LIBS = -lpspkubridge -lpspirkeyb -lpsppower
+LIBS = -lpspirkeyb -lpsppower
BUILD_PRX = 1
PSP_FW_VERSION = 401
Index: asciidemoprx/main.c
===================================================================
--- asciidemoprx/main.c (revision 2452)
+++ asciidemoprx/main.c (working copy)
@@ -13,7 +13,6 @@
#include <pspctrl.h>
#include <pspdebug.h>
#include <psppower.h>
-#include <kubridge.h>
#include <stdio.h>
#include <string.h>
Index: asciidemoprx/Makefile
===================================================================
--- asciidemoprx/Makefile (revision 2452)
+++ asciidemoprx/Makefile (working copy)
@@ -9,7 +9,7 @@
LIBDIR = $(PSPDEV)/SDK/lib ../libpspirkeybprx
LDFLAGS =
-LIBS = -lpspkubridge -lpspirkeybprx -lpsppower
+LIBS = -lpspirkeybprx -lpsppower
BUILD_PRX = 1
PSP_FW_VERSION = 401
|
removed non OSS code and libs and makes the library "buildable" again :)
Maybe another good patch for the SDK? |
|
| Back to top |
|
 |
Torch

Joined: 28 May 2008 Posts: 842
|
Posted: Fri Feb 20, 2009 11:09 pm Post subject: |
|
|
Just make a kernel module and export the required functions yourself.
You could declare prototypes for the ku* functions without including kubridge.h and assign them at run time to either kubridge's functions (if present), or load your kernel module and assign them to it's functions. |
|
| Back to top |
|
 |
Heimdall
Joined: 10 Nov 2005 Posts: 259 Location: Netherlands
|
Posted: Fri Feb 20, 2009 11:43 pm Post subject: |
|
|
| that was not the point, the thing here was that the code was including a header and linking with a lib that is not part of the default SDK and none of the stuff from those header or lib is used, as you can see in my previous patch. |
|
| Back to top |
|
 |
jimparis
Joined: 10 Jun 2005 Posts: 1179 Location: Boston
|
Posted: Thu Feb 26, 2009 4:39 pm Post subject: |
|
|
| Code: |
Sending pspirkeyb/asciidemo/Makefile
Sending pspirkeyb/asciidemo/main.c
Sending pspirkeyb/asciidemoprx/Makefile
Sending pspirkeyb/asciidemoprx/main.c
Transmitting file data ....
Committed revision 2454.
|
|
|
| Back to top |
|
 |
|