Permalink
Browse files

ps3: Add a miner

  • Loading branch information...
1 parent 73a5191 commit 5831d8b7ef1e5c1f048036c1ab1774d2502b298e @andoma committed Dec 13, 2013
View
@@ -647,6 +647,11 @@ ${BUILDDIR}/ext/libntfs_ext/source/%.o : CFLAGS = -Wall ${OPTFLAGS} \
SRCS-${CONFIG_TLSF} += ext/tlsf/tlsf.c
+##############################################################
+# Miner
+##############################################################
+
+SRCS-${CONFIG_MINER} += ext/miner/miner.c \
include support/${OS}.mk
@@ -724,6 +729,10 @@ ${BUILDDIR}/%.o: %.c $(ALLDEPS)
@mkdir -p $(dir $@)
$(CC) -MD -MP $(CFLAGS_com) $(CFLAGS) $(CFLAGS_cfg) -c -o $@ $(C)/$<
+${BUILDDIR}/%.o: %.S $(ALLDEPS)
+ @mkdir -p $(dir $@)
+ $(CC) $(CFLAGS_com) $(CFLAGS) $(CFLAGS_cfg) -c -o $@ $(C)/$<
+
${BUILDDIR}/%.o: %.m $(ALLDEPS)
@mkdir -p $(dir $@)
$(CC) -MD -MP $(CFLAGS_com) $(CFLAGS) $(CFLAGS_cfg) -c -o $@ $(C)/$<
View
@@ -60,6 +60,7 @@ enable ps3_vdec
enable sqlite_vfs
enable sqlite_locking
enable tlsf
+enable miner
mkdir -p ${BUILDDIR}/libav
${PS3DEV}/host/ppu/bin/ppu-gcc -c -o ${BUILDDIR}/libav/mallocstub.o ${TOPDIR}/support/mallocstub.c
@@ -80,6 +81,7 @@ CFLAGS_cfg += -I${PSL1GHT}/target/include
CFLAGS_cfg += -I${PS3DEV}/host/ppu/include
CFLAGS_cfg += -I${PS3DEV}/host/ppu/include/freetype2
BUNDLES+=src/ui/glw/rsx
+BUNDLES+=resources/spuminer
SQLITE_PLATFORM_DEFINES += -DSQLITE_OS_OTHER=1
EOF
Oops, something went wrong.

0 comments on commit 5831d8b

Please sign in to comment.