Improve makefiles

This commit is contained in:
Francisco Javier Trujillo Mata 2022-11-08 21:30:47 +01:00
parent 4d92fc5f76
commit 7a8617bad5
3 changed files with 20 additions and 17 deletions

View file

@ -25,7 +25,7 @@ jobs:
- name: Compile RA
run: |
export PATH=~/cli:$PATH # .net cli
make -f Makefile.orbis -j$(getconf _NPROCESSORS_ONLN) HAVE_STATIC_DUMMY=1 && make -f Makefile.orbis oelf eboot
make -f Makefile.orbis -j$(getconf _NPROCESSORS_ONLN) HAVE_STATIC_DUMMY=1
- name: Get short SHA
id: slug
@ -36,9 +36,8 @@ jobs:
name: bin-${{ steps.slug.outputs.sha8 }}
path: |
retroarch_orbis.elf
homebrew.oelf
homebrew.self
retroarch_orbis.oelf
retroarch_orbis.self
- name: Version of binaries
run: |

View file

@ -176,7 +176,7 @@ else
CXXFLAGS += -O3
endif
TARGETS := $(TARGET).elf
TARGETS := $(TARGET).self
all: $(TARGETS)
@ -197,15 +197,17 @@ OBJOUT = -o
$(TARGET).elf: $(OBJ)
$(LD) $(ORBISDEV)/usr/lib/crt0.o $(OBJ) $(LDFLAGS) $(LIBS) -o $(TARGET).elf
$(TARGET).oelf: $(TARGET).elf
@orbis-elf-create $(TARGET).elf $(TARGET).oelf
$(TARGET).self: $(TARGET).oelf
python $(ORBISDEV)/bin/make_fself.py --auth-info $(AUTH_INFO) $(TARGET).oelf $(TARGET).self
install:
@cp homebrew.self $(SELF_PATH_INSTALL)
@cp $(TARGET).self $(SELF_PATH_INSTALL)/homebrew.self
@echo "Installed!"
oelf:
@orbis-elf-create $(TARGET).elf homebrew.oelf
eboot:
python $(ORBISDEV)/bin/make_fself.py --auth-info $(AUTH_INFO) homebrew.oelf homebrew.self
clean:
rm -f $(OBJ) $(TARGET).elf $(TARGET).oelf
rm -f $(OBJ) $(TARGET).elf $(TARGET).oelf $(TARGET).self
.PHONY: clean all

View file

@ -115,15 +115,17 @@ OBJOUT = -o
$(TARGET).elf: $(OBJ)
$(LD) $(ORBISDEV)/usr/lib/crt0.o $(OBJ) $(LDFLAGS) $(LIBS) -o $(TARGET).elf
$(TARGET).oelf: $(TARGET).elf
@orbis-elf-create $(TARGET).elf $(TARGET).oelf
$(TARGET).self: $(TARGET).oelf
python $(ORBISDEV)/bin/make_fself.py --auth-info $(AUTH_INFO) $(TARGET).oelf $(TARGET).self
install:
@cp homebrew.self $(SELF_PATH_INSTALL)
@cp $(TARGET).self $(SELF_PATH_INSTALL)/homebrew.self
@echo "Installed!"
oelf:
@orbis-elf-create $(TARGET).elf homebrew.oelf
eboot:
python $(ORBISDEV)/bin/make_fself.py --auth-info $(AUTH_INFO) homebrew.oelf homebrew.self
clean:
rm -f $(OBJ) $(TARGET).elf $(TARGET).oelf
rm -f $(OBJ) $(TARGET).elf $(TARGET).oelf $(TARGET).self
.PHONY: clean all