Skip to content

Commit 7a8617b

Browse files
committed
Improve makefiles
1 parent 4d92fc5 commit 7a8617b

File tree

3 files changed

+20
-17
lines changed

3 files changed

+20
-17
lines changed

.github/workflows/PS4-ORBIS.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Compile RA
2626
run: |
2727
export PATH=~/cli:$PATH # .net cli
28-
make -f Makefile.orbis -j$(getconf _NPROCESSORS_ONLN) HAVE_STATIC_DUMMY=1 && make -f Makefile.orbis oelf eboot
28+
make -f Makefile.orbis -j$(getconf _NPROCESSORS_ONLN) HAVE_STATIC_DUMMY=1
2929
3030
- name: Get short SHA
3131
id: slug
@@ -36,9 +36,8 @@ jobs:
3636
name: bin-${{ steps.slug.outputs.sha8 }}
3737
path: |
3838
retroarch_orbis.elf
39-
homebrew.oelf
40-
homebrew.self
41-
39+
retroarch_orbis.oelf
40+
retroarch_orbis.self
4241
4342
- name: Version of binaries
4443
run: |

Makefile.orbis

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ else
176176
CXXFLAGS += -O3
177177
endif
178178

179-
TARGETS := $(TARGET).elf
179+
TARGETS := $(TARGET).self
180180

181181
all: $(TARGETS)
182182

@@ -197,15 +197,17 @@ OBJOUT = -o
197197
$(TARGET).elf: $(OBJ)
198198
$(LD) $(ORBISDEV)/usr/lib/crt0.o $(OBJ) $(LDFLAGS) $(LIBS) -o $(TARGET).elf
199199

200+
$(TARGET).oelf: $(TARGET).elf
201+
@orbis-elf-create $(TARGET).elf $(TARGET).oelf
202+
203+
$(TARGET).self: $(TARGET).oelf
204+
python $(ORBISDEV)/bin/make_fself.py --auth-info $(AUTH_INFO) $(TARGET).oelf $(TARGET).self
205+
200206
install:
201-
@cp homebrew.self $(SELF_PATH_INSTALL)
207+
@cp $(TARGET).self $(SELF_PATH_INSTALL)/homebrew.self
202208
@echo "Installed!"
203-
oelf:
204-
@orbis-elf-create $(TARGET).elf homebrew.oelf
205-
eboot:
206-
python $(ORBISDEV)/bin/make_fself.py --auth-info $(AUTH_INFO) homebrew.oelf homebrew.self
207209

208210
clean:
209-
rm -f $(OBJ) $(TARGET).elf $(TARGET).oelf
211+
rm -f $(OBJ) $(TARGET).elf $(TARGET).oelf $(TARGET).self
210212

211213
.PHONY: clean all

Makefile.orbis.salamander

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,17 @@ OBJOUT = -o
115115
$(TARGET).elf: $(OBJ)
116116
$(LD) $(ORBISDEV)/usr/lib/crt0.o $(OBJ) $(LDFLAGS) $(LIBS) -o $(TARGET).elf
117117

118+
$(TARGET).oelf: $(TARGET).elf
119+
@orbis-elf-create $(TARGET).elf $(TARGET).oelf
120+
121+
$(TARGET).self: $(TARGET).oelf
122+
python $(ORBISDEV)/bin/make_fself.py --auth-info $(AUTH_INFO) $(TARGET).oelf $(TARGET).self
123+
118124
install:
119-
@cp homebrew.self $(SELF_PATH_INSTALL)
125+
@cp $(TARGET).self $(SELF_PATH_INSTALL)/homebrew.self
120126
@echo "Installed!"
121-
oelf:
122-
@orbis-elf-create $(TARGET).elf homebrew.oelf
123-
eboot:
124-
python $(ORBISDEV)/bin/make_fself.py --auth-info $(AUTH_INFO) homebrew.oelf homebrew.self
125127

126128
clean:
127-
rm -f $(OBJ) $(TARGET).elf $(TARGET).oelf
129+
rm -f $(OBJ) $(TARGET).elf $(TARGET).oelf $(TARGET).self
128130

129131
.PHONY: clean all

0 commit comments

Comments
 (0)