Skip to content

Commit f0b45a4

Browse files
committed
moved to sdk build system and names
1 parent 663a25a commit f0b45a4

File tree

54 files changed

+390
-360
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+390
-360
lines changed

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.DEFAULT_GOAL := all
2+
3+
Dirs := $(wildcard */*/)
4+
Targets := all clean
5+
6+
DirTargets := $(foreach t,$(Targets),$(addsuffix $t,$(Dirs)))
7+
8+
.PHONY : $(Targets) $(DirTargets)
9+
10+
$(Targets) : % : $(addsuffix %,$(Dirs))
11+
12+
$(DirTargets) :
13+
$(MAKE) -C $(@D) $(@F:.%=%)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# libps4-examples
2-
Examples and prove of concepts which show something realized with libps4 (not necessarily unique to the PS4)
1+
# ps4sdk-examples
2+
Examples and prove of concepts which show something realized with ps4sdk (not necessarily unique to the PS4)

failures/execv/Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ifndef Ps4Sdk
2+
ifdef ps4sdk
3+
Ps4Sdk := $(ps4sdk)
4+
endif
5+
ifdef PS4SDK
6+
Ps4Sdk := $(PS4SDK)
7+
endif
8+
ifndef Ps4Sdk
9+
$(error Neither PS4SDK, Ps4Sdk nor ps4sdk set)
10+
endif
11+
endif
12+
13+
target ?= ps4_elf
14+
15+
include $(Ps4Sdk)/make/ps4sdk.mk

failures/shm_open/Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ifndef Ps4Sdk
2+
ifdef ps4sdk
3+
Ps4Sdk := $(ps4sdk)
4+
endif
5+
ifdef PS4SDK
6+
Ps4Sdk := $(PS4SDK)
7+
endif
8+
ifndef Ps4Sdk
9+
$(error Neither PS4SDK, Ps4Sdk nor ps4sdk set)
10+
endif
11+
endif
12+
13+
target ?= ps4_elf
14+
15+
include $(Ps4Sdk)/make/ps4sdk.mk
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int main(int argc, char **argv)
2121
h2 = dup(h); // could have mattered ;)
2222
ftruncate(h, pz);
2323

24-
#ifdef __PS4__
24+
#ifdef __PS4__ // neither works on the ps4
2525
w = mmap(NULL, pz, PROT_READ | PROT_WRITE, MAP_SHARED, h, 0);
2626
e = mmap(NULL, pz, PROT_READ | PROT_EXEC, MAP_PRIVATE | MAP_TYPE, h2, 0);
2727
#else

freebsd/dirent/Makefile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
ifdef libps4
2-
LibPS4 := $(libps4)
1+
ifndef Ps4Sdk
2+
ifdef ps4sdk
3+
Ps4Sdk := $(ps4sdk)
34
endif
4-
ifdef LIBPS4
5-
LibPS4 := $(LIBPS4)
5+
ifdef PS4SDK
6+
Ps4Sdk := $(PS4SDK)
7+
endif
8+
ifndef Ps4Sdk
9+
$(error Neither PS4SDK, Ps4Sdk nor ps4sdk set)
610
endif
7-
ifndef LibPS4
8-
$(error Neither LIBPS4, LibPS4 nor libps4 set)
911
endif
1012

11-
target ?= ps4-elf
13+
target ?= ps4_elf
1214

13-
include $(LibPS4)/make/libps4.mk
15+
include $(Ps4Sdk)/make/ps4sdk.mk

freebsd/kernel-stacks/Makefile

Lines changed: 0 additions & 13 deletions
This file was deleted.

freebsd/kernel_stacks/Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
ifndef Ps4Sdk
2+
ifdef ps4sdk
3+
Ps4Sdk := $(ps4sdk)
4+
endif
5+
ifdef PS4SDK
6+
Ps4Sdk := $(PS4SDK)
7+
endif
8+
ifndef Ps4Sdk
9+
$(error Neither PS4SDK, Ps4Sdk nor ps4sdk set)
10+
endif
11+
endif
12+
13+
target ?= ps4_elf
14+
15+
include $(Ps4Sdk)/make/ps4sdk.mk

0 commit comments

Comments
 (0)