Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated ppu_rules to work with ps3load on 3.55, added data_rules to c…

…ompile common file types
  • Loading branch information...
commit a5fdf7c9d5dcabacfb18ab7ce60fcab135f6deee 1 parent 731a4ed
@an0nym0u5 an0nym0u5 authored
Showing with 117 additions and 41 deletions.
  1. +75 −0 data_rules
  2. +42 −41 ppu_rules
View
75 data_rules
@@ -0,0 +1,75 @@
+ifeq ($(strip $(PS3DEV)),)
+ ifeq ($(strip $(DEVKITPS3)),)
+ export PS3DEV := /usr/local/ps3dev
+ else
+ export PS3DEV := $(DEVKITPS3)
+ endif
+endif
+
+export PATH := $(PS3DEV)/bin:$(PS3DEV)/ppu/bin:$(PATH)
+
+export PORTLIBS := $(PS3DEV)/portlibs/ppu
+
+export LIBPSL1GHT_INC := -I$(PSL1GHT)/ppu/include -I$(PSL1GHT)/ppu/include/simdmath
+export LIBPSL1GHT_LIB := -L$(PSL1GHT)/ppu/lib
+
+PREFIX := ppu-
+
+MACHDEP = -mhard-float -fmodulo-sched -ffunction-sections -fdata-sections
+
+include $(PSL1GHT)/base_rules
+
+#---------------------------------------------------------------------------------
+%.bin.o : %.bin
+#---------------------------------------------------------------------------------
+ $(VERB) echo $(notdir $<)
+ $(VERB) $(bin2o)
+
+#---------------------------------------------------------------------------------
+%.ttf.o : %.ttf
+#---------------------------------------------------------------------------------
+ $(VERB) echo $(notdir $<)
+ $(VERB) $(bin2o)
+
+#---------------------------------------------------------------------------------
+%.png.o : %.png
+#---------------------------------------------------------------------------------
+ @echo $(notdir $<)
+ @$(bin2o)
+
+#---------------------------------------------------------------------------------
+%.jpg.o : %.jpg
+#---------------------------------------------------------------------------------
+ @echo $(notdir $<)
+ @$(bin2o)
+
+#---------------------------------------------------------------------------------
+%.gif.o : %.gif
+#---------------------------------------------------------------------------------
+ @echo $(notdir $<)
+ @$(bin2o)
+
+#---------------------------------------------------------------------------------
+%.raw.o : %.raw
+#---------------------------------------------------------------------------------
+ $(VERB) echo $(notdir $<)
+ $(VERB) $(bin2o)
+
+#---------------------------------------------------------------------------------
+%.mp3.o : %.mp3
+#---------------------------------------------------------------------------------
+ $(VERB) echo $(notdir $<)
+ $(VERB) $(bin2o)
+
+#---------------------------------------------------------------------------------
+%.vpo.o : %.vpo
+#---------------------------------------------------------------------------------
+ $(VERB) echo $(notdir $<)
+ $(VERB) $(bin2o)
+
+#---------------------------------------------------------------------------------
+%.fpo.o : %.fpo
+#---------------------------------------------------------------------------------
+ $(VERB) echo $(notdir $<)
+ $(VERB) $(bin2o)
+
View
83 ppu_rules
@@ -6,73 +6,74 @@ ifeq ($(strip $(PS3DEV)),)
endif
endif
-export PATH := $(PS3DEV)/bin:$(PS3DEV)/ppu/bin:$(PATH)
+export PATH := $(PS3DEV)/bin:$(PS3DEV)/ppu/bin:$(PATH)
-export PORTLIBS := $(PS3DEV)/portlibs/ppu
+export PORTLIBS := $(PS3DEV)/portlibs/ppu
export LIBPSL1GHT_INC := -I$(PSL1GHT)/ppu/include -I$(PSL1GHT)/ppu/include/simdmath
export LIBPSL1GHT_LIB := -L$(PSL1GHT)/ppu/lib
-PREFIX := ppu-
+PREFIX := ppu-
-MACHDEP = -mhard-float -fmodulo-sched -ffunction-sections -fdata-sections
+MACHDEP = -mhard-float -fmodulo-sched -ffunction-sections -fdata-sections
include $(PSL1GHT)/base_rules
+include $(PSL1GHT)/data_rules
PKG := pkg.py
SFO := sfo.py
-SPRX := sprxlinker$(POSTFIX)
-CGCOMP := cgcomp$(POSTFIX)
-PS3LOADAPP := ps3load$(POSTFIX)
+SPRX := sprxlinker$(POSTFIX)
+CGCOMP := cgcomp$(POSTFIX)
+PS3LOADAPP := ps3load$(POSTFIX)
-FSELF := fself.py
-FSELF_NPDRM := $(FSELF) -n
+# fake SELF type4 / type8 tools
+FSELF := fself.py
+FSELF_NPDRM := $(FSELF) -n
-#FW 3.55 Tools
-SELF := make_self
-SELF_NPDRM := make_self_npdrm
-PACKAGE_FINALIZE := package_finalize
+# signed SELF type4 / type8 tools
+SELF := make_self
+SELF_NPDRM := make_self_npdrm
-#Package settings - allow for user overrides!
-TITLE ?= Untitled PSL1GHT homebrew by $(USER)
-APPID ?= UNTITLED1
-SFOXML ?= $(PS3DEV)/bin/sfo.xml
-ICON0 ?= $(PS3DEV)/bin/ICON0.PNG
-CONTENTID ?= UP0001-$(APPID)_00-0000000000000000
-TARGET ?= $(notdir $(CURDIR))
+# NPDRM pkg tool
+PACKAGE_FINALIZE := package_finalize
+
+# Package settings - allow for user override
+TITLE ?= Untitled PSL1GHT homebrew
+APPID ?= UNTITLED1
+SFOXML ?= $(PS3DEV)/bin/sfo.xml
+ICON0 ?= $(PS3DEV)/bin/ICON0.PNG
+CONTENTID ?= UP0001-$(APPID)_00-0000000000000000
+TARGET ?= $(notdir $(CURDIR))
+BUILDDIR ?= $(CURDIR)/build
#---------------------------------------------------------------------------------
%.self: %.elf
- @echo output ... $(notdir $@)
+ $(VERB) echo CEX self ... $(notdir $@)
$(VERB) mkdir -p $(BUILDDIR)
$(VERB) $(STRIP) $< -o $(BUILDDIR)/$(notdir $<)
$(VERB) $(SPRX) $(BUILDDIR)/$(notdir $<)
- $(VERB) $(FSELF) $(BUILDDIR)/$(notdir $<) $@
-
-%.vpo: %.vcg
- @echo $(notdir $<)
- $(VERB) $(CGCOMP) -v $^ $@
-
-%.fpo: %.fcg
- @echo $(notdir $<)
- $(VERB) $(CGCOMP) -f $^ $@
-
-.eboot: $(TARGET).self
- @echo building EBOOT.BIN ...
- $(VERB) mkdir -p $(BUILDDIR)/pkg
- $(VERB) mkdir -p $(BUILDDIR)/pkg/USRDIR
- $(VERB) $(SELF_NPDRM) $(BUILDDIR)/$(TARGET).elf $(BUILDDIR)/pkg/USRDIR/EBOOT.BIN $(CONTENTID) >> /dev/null
+ $(VERB) $(SELF) $(BUILDDIR)/$(notdir $<) $@
+ $(VERB) $(FSELF) $(BUILDDIR)/$(notdir $<) $(basename $@).fake.self
%.pkg: %.self
- @echo building pkg ... $(notdir $@)
- $(VERB) mkdir -p $(BUILDDIR)/pkg
+ $(VERB) echo building pkg ... $(notdir $@)
$(VERB) mkdir -p $(BUILDDIR)/pkg/USRDIR
$(VERB) cp $(ICON0) $(BUILDDIR)/pkg/ICON0.PNG
$(VERB) $(SELF_NPDRM) $(BUILDDIR)/$(basename $(notdir $<)).elf $(BUILDDIR)/pkg/USRDIR/EBOOT.BIN $(CONTENTID) >> /dev/null
$(VERB) $(SFO) --title "$(TITLE)" --appid "$(APPID)" -f $(SFOXML) $(BUILDDIR)/pkg/PARAM.SFO
- $(VERB) if test -n "$(PKGFILES)" -a -d "$(PKGFILES)"; then cp -rf $(PKGFILES)/* $(BUILDDIR)/pkg/; fi
+ $(VERB) if [ -n "$(PKGFILES)" -a -d "$(PKGFILES)" ]; then cp -rf $(PKGFILES)/* $(BUILDDIR)/pkg/; fi
$(VERB) $(PKG) --contentid $(CONTENTID) $(BUILDDIR)/pkg/ $@ >> /dev/null
- $(VERB) cp $@ $(basename $@).geohot.pkg
- $(VERB) $(PACKAGE_FINALIZE) $(basename $@).geohot.pkg
+ $(VERB) cp $@ $(basename $@).gnpdrm.pkg
+ $(VERB) $(PACKAGE_FINALIZE) $(basename $@).gnpdrm.pkg
+
+#---------------------------------------------------------------------------------
+%.vpo: %.vcg
+ $(VERB) echo $(notdir $<)
+ $(VERB) $(CGCOMP) -v $^ $@
+
+%.fpo: %.fcg
+ $(VERB) echo $(notdir $<)
+ $(VERB) $(CGCOMP) -f $^ $@
+
Please sign in to comment.
Something went wrong with that request. Please try again.