Merge pull request #7 from devkitPro/devkitA64-fixes

minor devkitA64 updates
This commit is contained in:
yellows8 2017-09-19 22:15:03 -04:00 committed by GitHub
commit ad6ce3d6f8
6 changed files with 16 additions and 7 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*.o
*.bz2

View File

@ -10,7 +10,7 @@ endif
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# path to tools # path to tools
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
export PATH := $(DEVKITARM)/bin:$(PATH) export PATH := $(DEVKITA64)/bin:$(PATH)
#--------------------------------------------------------------------------------- #---------------------------------------------------------------------------------
# the prefix on the compiler executables # the prefix on the compiler executables

View File

@ -1,8 +1,8 @@
switch_crt0.o: *.s switch_crt0.o: *.s
aarch64-none-elf-gcc -march=armv8-a -x assembler-with-cpp -c $^ -o $@ $(DEVKITA64)/bin/aarch64-none-elf-gcc -march=armv8-a -x assembler-with-cpp -c $^ -o $@
install: switch_crt0.o install: switch_crt0.o
cp $^ $(DEVKITA64)/aarch64-none-elf/lib/$^ cp $^ $(DEVKITA64)/aarch64-none-elf/lib/pic/$^
clean: clean:
rm -f switch_crt0.o rm -f switch_crt0.o

4
nx/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
debug
release
lib

2
tools/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
build_pfs0
elf2nso

View File

@ -1,14 +1,14 @@
all: elf2nso build_pfs0 all: elf2nso build_pfs0
build_pfs0: build_pfs0.c build_pfs0: build_pfs0.c
gcc -o $@ $^ gcc $(CFLAGS) -o $@ $^
elf2nso: elf2nso.c sha256.c elf2nso: elf2nso.c sha256.c
gcc -o $@ $^ -llz4 gcc $(CFLAGS) -o $@ $^ -llz4
install: all install: all
cp build_pfs0 /usr/local/bin/ cp build_pfs0 $(DEVKITA64)/bin/
cp elf2nso /usr/local/bin/ cp elf2nso $(DEVKITA64)/bin/
clean: clean:
rm -f elf2nso rm -f elf2nso