Skip to content

Commit

Permalink
ps3: Add a miner
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Dec 13, 2013
1 parent 73a5191 commit 5831d8b
Show file tree
Hide file tree
Showing 15 changed files with 798 additions and 14 deletions.
9 changes: 9 additions & 0 deletions Makefile
Expand Up @@ -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

Expand Down Expand Up @@ -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)/$<
Expand Down
2 changes: 2 additions & 0 deletions configure.ps3
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 5831d8b

Please sign in to comment.