Compare commits
1 Commits
upstream-d
...
audio
Author | SHA1 | Date | |
---|---|---|---|
c32dde2dc6 |
66
.gitmodules
vendored
66
.gitmodules
vendored
|
@ -16,12 +16,63 @@
|
||||||
[submodule "nimble/ninep"]
|
[submodule "nimble/ninep"]
|
||||||
path = nim/ninep
|
path = nim/ninep
|
||||||
url = git://depot.h4ck.me/srv/git/ninep
|
url = git://depot.h4ck.me/srv/git/ninep
|
||||||
|
[submodule "libretro/libretro-common"]
|
||||||
|
path = libretro/libretro-common
|
||||||
|
url = https://github.com/libretro/libretro-common.git
|
||||||
|
[submodule "libretro/retro_frontend"]
|
||||||
|
path = libretro/retro_frontend
|
||||||
|
url = git://depot.h4ck.me/srv/git/retro_frontend
|
||||||
|
[submodule "libretro/cores/2048/core"]
|
||||||
|
path = libretro/cores/2048/upstream
|
||||||
|
url = https://github.com/libretro/libretro-2048
|
||||||
|
[submodule "libretro/cores/4do/core"]
|
||||||
|
path = libretro/cores/4do/upstream
|
||||||
|
url = https://github.com/libretro/4do-libretro.git
|
||||||
|
[submodule "libretro/cores/fceumm/core"]
|
||||||
|
path = libretro/cores/fceumm/upstream
|
||||||
|
url = https://github.com/libretro/libretro-fceumm.git
|
||||||
|
[submodule "libretro/cores/mgba/core"]
|
||||||
|
path = libretro/cores/mgba/upstream
|
||||||
|
url = https://github.com/libretro/mgba.git
|
||||||
|
[submodule "libretro/cores/nxengine/core"]
|
||||||
|
path = libretro/cores/nxengine/upstream
|
||||||
|
url = git://depot.h4ck.me/srv/git/nxengine
|
||||||
|
[submodule "libretro/cores/oberon/core"]
|
||||||
|
path = libretro/cores/oberon/upstream
|
||||||
|
url = git@github.com:ehmry/oberon-risc-libretro.git
|
||||||
|
[submodule "libretro/cores/snes9x/core"]
|
||||||
|
path = libretro/cores/snes9x/upstream
|
||||||
|
url = https://github.com/libretro/snes9x.git
|
||||||
|
[submodule "libretro/cores/tyrquake/core"]
|
||||||
|
path = libretro/cores/tyrquake/upstream
|
||||||
|
url = https://github.com/libretro/tyrquake
|
||||||
|
[submodule "libretro/cores/samples"]
|
||||||
|
path = libretro/cores/samples/upstream
|
||||||
|
url = https://github.com/libretro/libretro-samples
|
||||||
|
[submodule "libretro/cores/dosbox/core"]
|
||||||
|
path = libretro/cores/dosbox-libretro/upstream
|
||||||
|
url = https://github.com/libretro/dosbox-libretro
|
||||||
|
[submodule "libretro/cores/mrboom/core"]
|
||||||
|
path = libretro/cores/mrboom/upstream
|
||||||
|
url = git@github.com:ehmry/mrboom-libretro.git
|
||||||
|
[submodule "libretro/cores/gambatte/core"]
|
||||||
|
path = libretro/cores/gambatte/upstream
|
||||||
|
url = git@github.com:github.com/ehmry/gambatte-libretro.git
|
||||||
|
[submodule "libretro/cores/dinothawr/core"]
|
||||||
|
path = libretro/cores/dinothawr/core
|
||||||
|
url = https://github.com/libretro/Dinothawr
|
||||||
[submodule "nimble/nim-monero"]
|
[submodule "nimble/nim-monero"]
|
||||||
path = nim/nim-monero
|
path = nim/nim-monero
|
||||||
url = git://depot.h4ck.me/srv/git/nim-monero
|
url = git://depot.h4ck.me/srv/git/nim-monero
|
||||||
[submodule "libretro/cores/scummvm/upstream"]
|
[submodule "libretro/cores/scummvm/upstream"]
|
||||||
path = libretro/cores/scummvm/upstream
|
path = libretro/cores/scummvm/upstream
|
||||||
url = https://github.com/libretro/scummvm.git
|
url = https://github.com/libretro/scummvm.git
|
||||||
|
[submodule "libretro/cores/lutro/upstream"]
|
||||||
|
path = libretro/cores/lutro/upstream
|
||||||
|
url = git@github.com:ehmry/libretro-lutro.git
|
||||||
|
[submodule "libretro/cores/bluemsx/upstream"]
|
||||||
|
path = libretro/cores/bluemsx/upstream
|
||||||
|
url = git@github.com:ehmry/blueMSX-libretro.git
|
||||||
[submodule "nimble/fetch_and_copy"]
|
[submodule "nimble/fetch_and_copy"]
|
||||||
path = nim/fetch_and_copy
|
path = nim/fetch_and_copy
|
||||||
url = git://depot.h4ck.me/srv/git/fetch_and_copy.
|
url = git://depot.h4ck.me/srv/git/fetch_and_copy.
|
||||||
|
@ -34,6 +85,15 @@
|
||||||
[submodule "nimble/carn"]
|
[submodule "nimble/carn"]
|
||||||
path = nim/carn_layouter
|
path = nim/carn_layouter
|
||||||
url = git://depot.h4ck.me/srv/git/carn_layouter
|
url = git://depot.h4ck.me/srv/git/carn_layouter
|
||||||
|
[submodule "libretro/bios/cbios-cbios"]
|
||||||
|
path = libretro/bios/cbios-cbios
|
||||||
|
url = https://git.code.sf.net/p/cbios/cbios
|
||||||
|
[submodule "libretro/cores/mu/upstream"]
|
||||||
|
path = libretro/cores/mu/upstream
|
||||||
|
url = https://github.com/meepingsnesroms/Mu.git
|
||||||
|
[submodule "libretro/cores/dosbox-svn/upstream"]
|
||||||
|
path = libretro/cores/dosbox-svn/upstream
|
||||||
|
url = https://github.com/libretro/dosbox-svn.git
|
||||||
[submodule "nim/xspf_view"]
|
[submodule "nim/xspf_view"]
|
||||||
path = nim/xspf_view
|
path = nim/xspf_view
|
||||||
url = git://depot.h4ck.me/srv/git/xspf_view
|
url = git://depot.h4ck.me/srv/git/xspf_view
|
||||||
|
@ -43,6 +103,6 @@
|
||||||
[submodule "nim/blobbot"]
|
[submodule "nim/blobbot"]
|
||||||
path = nim/blobbot
|
path = nim/blobbot
|
||||||
url = git://depot.h4ck.me/srv/git/blobbot
|
url = git://depot.h4ck.me/srv/git/blobbot
|
||||||
[submodule "dhall"]
|
[submodule "libretro/cores/yabause/upstream"]
|
||||||
path = dhall
|
path = libretro/cores/yabause/upstream
|
||||||
url = https://github.com/ehmry/dhall-genode.git
|
url = https://github.com/libretro/yabause.git
|
||||||
|
|
19
Tupfile
19
Tupfile
|
@ -28,8 +28,8 @@ SHORT_SUM = b2sum -l24
|
||||||
|> $(BIN_LISTING)
|
|> $(BIN_LISTING)
|
||||||
# Generate a listing of all binary archives
|
# Generate a listing of all binary archives
|
||||||
|
|
||||||
: $(DEPOT_DIR)/<pkg> |> ^ generate package version sed script^ \
|
: $(DEPOT_DIR)/<packages> |> ^ generate package version sed script^ \
|
||||||
for d in `dirname %<pkg> | tr ' ' '\n' | sort -u`; do \
|
for d in `dirname %<packages> | tr ' ' '\n' | sort -u`; do \
|
||||||
echo $d/`cat $d/.ARCHIVES $d/runtime | $(SHORT_SUM)` | awk -F '/' \
|
echo $d/`cat $d/.ARCHIVES $d/runtime | $(SHORT_SUM)` | awk -F '/' \
|
||||||
'{print "s|local/pkg/"$3"/current|@(PUBLIC_USER)/pkg/"$3"/"substr($5,0,6)"|"}' >> %o; \
|
'{print "s|local/pkg/"$3"/current|@(PUBLIC_USER)/pkg/"$3"/"substr($5,0,6)"|"}' >> %o; \
|
||||||
done \
|
done \
|
||||||
|
@ -53,15 +53,18 @@ SHORT_SUM = b2sum -l24
|
||||||
|> Makefile
|
|> Makefile
|
||||||
# Generate the makefile for creating signed package tarballs
|
# Generate the makefile for creating signed package tarballs
|
||||||
|
|
||||||
|
: index.xml | $(PKG_SED_FILE) |> ^ generate public index^ \
|
||||||
|
xmllint %f | sed \
|
||||||
|
-e 's|_/pkg/\([^"]*\)|local/pkg/\1/current|' \
|
||||||
|
-f $(PKG_SED_FILE) \
|
||||||
|
| xz > %o; \
|
||||||
|
|> public/@(PUBLIC_USER)/index/@(SCULPT_VERSION).xz
|
||||||
|
|
||||||
AWK_RUNTIME_PATH = awk -v RS=' ' -F '/' \
|
AWK_RUNTIME_PATH = awk -v RS=' ' -F '/' \
|
||||||
'/runtime/ {print " <pkg path=\"local/pkg/"$3"/current\"/>"}'
|
'/runtime/ {print " <pkg path=\"local/pkg/"$3"/current\"/>"}'
|
||||||
|
|
||||||
: $(DEPOT_DIR)/<pkg> |> ^ generate local index^ \
|
: $(DEPOT_DIR)/<packages> |> ^ generate local index^ \
|
||||||
echo '<index>' > %o; \
|
echo '<index>' > %o; \
|
||||||
echo %<pkg> | $(AWK_RUNTIME_PATH) | sort >> %o; \
|
echo %<packages> | $(AWK_RUNTIME_PATH) | sort >> %o; \
|
||||||
echo '</index>' >> %o |> $(DEPOT_DIR)/index/@(SCULPT_VERSION)
|
echo '</index>' >> %o |> $(DEPOT_DIR)/index/@(SCULPT_VERSION)
|
||||||
# Generate the depot index file
|
# Generate the depot index file
|
||||||
|
|
||||||
: index.dhall | $(DEPOT_DIR)/index/<entry> |> \
|
|
||||||
!dhall text < %f | xmllint --format - | xz > %o \
|
|
||||||
|> public/@(PUBLIC_USER)/index/@(SCULPT_VERSION).xz
|
|
||||||
|
|
72
Tuprules.tup
72
Tuprules.tup
|
@ -1,27 +1,18 @@
|
||||||
|
.gitignore
|
||||||
|
|
||||||
ifndef TOOL_CHAIN_PREFIX
|
ifndef TOOL_CHAIN_PREFIX
|
||||||
error TOOL_CHAIN_PREFIX not configured, missing variant?
|
error TOOL_CHAIN_PREFIX not configured, missing variant?
|
||||||
endif
|
endif
|
||||||
|
|
||||||
DEPOT_DIR = $(TUP_CWD)/depot
|
|
||||||
DEPOT_RAW_DIR = $(DEPOT_DIR)/raw
|
|
||||||
DEPOT_PKG_DIR = $(DEPOT_DIR)/pkg
|
|
||||||
|
|
||||||
PUBLIC_DIR = $(TUP_CWD)/public/@(PUBLIC_USER)
|
|
||||||
PUBLIC_RAW_DIR = $(PUBLIC_DIR)/raw
|
|
||||||
PUBLIC_BIN_DIR = $(PUBLIC_DIR)/bin
|
|
||||||
PUBLIC_PKG_DIR = $(PUBLIC_DIR)/pkg
|
|
||||||
|
|
||||||
ifeq (@(TUP_ARCH),i386)
|
ifeq (@(TUP_ARCH),i386)
|
||||||
CC_MARCH = -march=i686 -m32
|
CC_MARCH = -march=i686 -m32
|
||||||
LD_MARCH = -melf_i386
|
LD_MARCH = -melf_i386
|
||||||
AS_MARCH = -march=i686 --32
|
AS_MARCH = -march=i686 --32
|
||||||
DEPOT_BIN_DIR = $(DEPOT_DIR)/bin/x86_32
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (@(TUP_ARCH),x86_64)
|
ifeq (@(TUP_ARCH),x86_64)
|
||||||
CC_MARCH = -m64 -mcmodel=large
|
CC_MARCH = -m64 -mcmodel=large
|
||||||
LD_MARCH = -melf_x86_64
|
LD_MARCH = -melf_x86_64
|
||||||
DEPOT_BIN_DIR = $(DEPOT_DIR)/bin/x86_64
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq (@(TUP_ARCH),arm_v8)
|
ifeq (@(TUP_ARCH),arm_v8)
|
||||||
|
@ -69,13 +60,23 @@ ifeq ($(RAW_VERSION),)
|
||||||
RAW_VERSION=$(GIT_VERSION)
|
RAW_VERSION=$(GIT_VERSION)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
DEPOT_DIR = $(TUP_CWD)/depot
|
||||||
|
DEPOT_RAW_DIR = $(DEPOT_DIR)/raw
|
||||||
|
DEPOT_BIN_DIR = $(DEPOT_DIR)/bin
|
||||||
|
DEPOT_PKG_DIR = $(DEPOT_DIR)/pkg
|
||||||
|
|
||||||
|
PUBLIC_DIR = $(TUP_CWD)/public
|
||||||
|
PUBLIC_RAW_DIR = $(PUBLIC_DIR)/raw
|
||||||
|
PUBLIC_BIN_DIR = $(PUBLIC_DIR)/bin
|
||||||
|
PUBLIC_PKG_DIR = $(PUBLIC_DIR)/pkg
|
||||||
|
|
||||||
RAW_DIR = $(DEPOT_RAW_DIR)/$(RAW_NAME)/current
|
RAW_DIR = $(DEPOT_RAW_DIR)/$(RAW_NAME)/current
|
||||||
# Destination for locally defined raw package
|
# Destination for locally defined raw package
|
||||||
|
|
||||||
BIN_DIR = $(DEPOT_BIN_DIR)/$(BIN_NAME)/current
|
BIN_DIR = $(DEPOT_BIN_DIR)/$(BIN_NAME)/current
|
||||||
# Destination for locally defined binary package
|
# Destination for locally defined binary package
|
||||||
|
|
||||||
PKG_DIR = $(DEPOT_PKG_DIR)/$(PKG_NAME)/current
|
PKG_DIR = $(DEPOT_BIN_DIR)/$(BIN_NAME)/current
|
||||||
# Destination for locally defined runtime package
|
# Destination for locally defined runtime package
|
||||||
|
|
||||||
!raw = |> ^ generate raw metadata^ \
|
!raw = |> ^ generate raw metadata^ \
|
||||||
|
@ -103,11 +104,11 @@ AWK_LOCAL_ARCHIVES = awk -F '/' \
|
||||||
|
|
||||||
!collect_raw = |> ^ COLLECT %b^ \
|
!collect_raw = |> ^ COLLECT %b^ \
|
||||||
cp %f %o \
|
cp %f %o \
|
||||||
|> $(RAW_DIR)/%b $(DEPOT_DIR)/<raw>
|
|> $(RAW_DIR)/%b
|
||||||
|
|
||||||
!collect_bin = |> ^ COLLECT %b^ \
|
!collect_bin = |> ^ COLLECT %b^ \
|
||||||
@(TOOL_CHAIN_PREFIX)strip -o %o %f \
|
@(TOOL_CHAIN_PREFIX)strip -o %o %f \
|
||||||
|> $(DEPOT_BIN_DIR)/$(BIN_NAME)/current/%b $(DEPOT_DIR)/<bin>
|
|> $(DEPOT_BIN_DIR)/$(BIN_NAME)/current/%b
|
||||||
|
|
||||||
!collect_pkg_runtime = | $(VERSIONS_SED_FILE) |> ^ package %f^ \
|
!collect_pkg_runtime = | $(VERSIONS_SED_FILE) |> ^ package %f^ \
|
||||||
xmllint --noout -schema $(ERRATA_DIR)/runtime.xsd %f; \
|
xmllint --noout -schema $(ERRATA_DIR)/runtime.xsd %f; \
|
||||||
|
@ -121,11 +122,11 @@ AWK_LOCAL_ARCHIVES = awk -F '/' \
|
||||||
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/runtime \
|
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/runtime \
|
||||||
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives \
|
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives \
|
||||||
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/.ARCHIVES \
|
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/.ARCHIVES \
|
||||||
$(DEPOT_DIR)/<pkg>
|
$(DEPOT_DIR)/<packages>
|
||||||
|
|
||||||
!collect_pkg = |> ^ COLLECT %b^ cp %f %o \
|
!collect_pkg = |> ^ COLLECT %b^ cp %f %o \
|
||||||
|> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/%b \
|
|> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/%b \
|
||||||
$(DEPOT_DIR)/<pkg>
|
$(DEPOT_DIR)/<packages>
|
||||||
|
|
||||||
VERSIONS_SED_FILE = $(TUP_CWD)/versions.sed
|
VERSIONS_SED_FILE = $(TUP_CWD)/versions.sed
|
||||||
PKG_SED_FILE = $(TUP_CWD)/pkg.sed
|
PKG_SED_FILE = $(TUP_CWD)/pkg.sed
|
||||||
|
@ -160,15 +161,15 @@ PKG_CONFIG = PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) pkg-config
|
||||||
|
|
||||||
!asm = |> ^ CC %b^ @(CC_WRAPPER) $(CC) $(DEFINES) $(CFLAGS) $(CFLAGS_%e) $(CFLAGS_%f) -D__ASSEMBLY__ $(INCLUDES) -c %f -o %o |> %B.o
|
!asm = |> ^ CC %b^ @(CC_WRAPPER) $(CC) $(DEFINES) $(CFLAGS) $(CFLAGS_%e) $(CFLAGS_%f) -D__ASSEMBLY__ $(INCLUDES) -c %f -o %o |> %B.o
|
||||||
|
|
||||||
!cc = | $(GENODE_DIR)/<pkg-config> |> ^o CC %f^ @(CC_WRAPPER) $(CC) $(DEFINES) $(CFLAGS) $(CFLAGS_%e) $(CFLAGS_%f) `$(PKG_CONFIG) --cflags $(LIBS) $(LIBS_CFLAGS)` $(INCLUDES) -c -fPIC -g %f -o %o |> %B.o
|
!cc = | $(GENODE_DIR)/<pkg-config> |> ^o CC %f^ @(CC_WRAPPER) $(CC) $(DEFINES) $(CFLAGS) $(CFLAGS_%e) $(CFLAGS_%f) `$(PKG_CONFIG) --cflags $(LIBS) $(LIBS_CFLAGS)` $(INCLUDES) -c %f -o %o |> %B.o
|
||||||
|
|
||||||
!cc_port = | $(GENODE_DIR)/<pkg-config> |> ^o CC %o^ @(CC_WRAPPER) $(CC) $(DEFINES) $(CFLAGS) $(CFLAGS_%o) $(INCLUDES) `$(PKG_CONFIG) --cflags $(LIBS) $(LIBS_CFLAGS)` -c -fPIC -g -o %o |> %B.o
|
!cc_port = | $(GENODE_DIR)/<pkg-config> |> ^o CC %o^ @(CC_WRAPPER) $(CC) -c -fPIC $(DEFINES) $(CFLAGS) $(CFLAGS_%o) $(INCLUDES) `$(PKG_CONFIG) --cflags $(LIBS) $(LIBS_CFLAGS)` -o %o |> %B.o
|
||||||
|
|
||||||
!cxx = | $(GENODE_DIR)/<pkg-config> |> ^o CXX %b^ @(CC_WRAPPER) $(CXX) $(DEFINES) $(CXXFLAGS) $(CXXFLAGS_%e) $(CXXFLAGS_%f) `$(PKG_CONFIG) --cflags $(LIBS)` $(INCLUDES) -c -fPIC -g %f -o %o |> %B.o
|
!cxx = | $(GENODE_DIR)/<pkg-config> |> ^o CXX %b^ @(CC_WRAPPER) $(CXX) $(DEFINES) $(CXXFLAGS) $(CXXFLAGS_%e) $(CXXFLAGS_%f) `$(PKG_CONFIG) --cflags $(LIBS)` $(INCLUDES) -c %f -o %o |> %B.o
|
||||||
|
|
||||||
!cxx_port = | $(GENODE_DIR)/<pkg-config> |> ^o CXX %o^ @(CC_WRAPPER) $(CXX) $(DEFINES) $(CXXFLAGS) $(CXXFLAGS_%f) `$(PKG_CONFIG) --cflags $(LIBS)` $(INCLUDES) -c -fPIC -g -o %o |> %B.o
|
!cxx_port = | $(GENODE_DIR)/<pkg-config> |> ^o CXX %o^ @(CC_WRAPPER) $(CXX) -c $(DEFINES) $(CXXFLAGS) $(CXXFLAGS_%f) `$(PKG_CONFIG) --cflags $(LIBS)` $(INCLUDES) -o %o |> %B.o
|
||||||
|
|
||||||
!ld = | $(GENODE_DIR)/<lib> $(GENODE_DIR)/<pkg-config> |> ^o LD %o^ $(LD) $(LDFLAGS) `$(PKG_CONFIG) --libs $(LIBS)` --whole-archive --start-group %f --no-whole-archive --end-group -o %o |>
|
!ld = | $(GENODE_DIR)/<lib> $(GENODE_DIR)/<pkg-config> |> ^o LD %o^ $(LD) $(LDFLAGS) `$(PKG_CONFIG) --libs $(LIBS)` %f -o %o |>
|
||||||
|
|
||||||
!strip = |> strip -o %o %f |>
|
!strip = |> strip -o %o %f |>
|
||||||
|
|
||||||
|
@ -197,32 +198,3 @@ endif
|
||||||
tmp.o; \
|
tmp.o; \
|
||||||
rm tmp.o; \
|
rm tmp.o; \
|
||||||
|> $(STUB_DIR)/%B.lib.so $(GENODE_DIR)/<stub>
|
|> $(STUB_DIR)/%B.lib.so $(GENODE_DIR)/<stub>
|
||||||
|
|
||||||
DHALL_PRELUDE = $(TUP_CWD)/dhall/Prelude.dhall
|
|
||||||
DHALL_GENODE = $(TUP_CWD)/dhall/package.dhall
|
|
||||||
DHALL_GENODE_TYPES = $(TUP_CWD)/dhall/types.dhall
|
|
||||||
DHALL = DHALL_PRELUDE=$(DHALL_PRELUDE) DHALL_GENODE=$(DHALL_GENODE) DHALL_GENODE_TYPES=$(DHALL_GENODE_TYPES) dhall
|
|
||||||
|
|
||||||
!dhall = |> ^b dhall > %o^ $(DHALL) |>
|
|
||||||
|
|
||||||
DEPOT_MANIFEST = $(PUBLIC_DIR)/manifest.dhall
|
|
||||||
|
|
||||||
!index_pkg = | $(PUBLIC_DIR)/<manifest> |> ^ Generate index.dhall^\
|
|
||||||
$(DHALL) <<< '{ info = (%f).indexInfo, name = "$(PKG_NAME)", version = ($(DEPOT_MANIFEST)).pkg.$(PKG_NAME).version }' > %o \
|
|
||||||
|> $(PKG_DIR)/index.dhall $(DEPOT_DIR)/index/<entry>
|
|
||||||
|
|
||||||
!render_runtime = | $(VERSIONS_SED_FILE) |> ^o render %d runtime^ \
|
|
||||||
$(DHALL) text <<< '$(ERRATA_DIR)/renderRuntime.dhall (%f).runtime' \
|
|
||||||
> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/runtime; \
|
|
||||||
xmllint --noout -schema $(ERRATA_DIR)/runtime.xsd - \
|
|
||||||
< $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/runtime; \
|
|
||||||
echo $(PKG_DEPENDS) | tr ' ' '\n' | sed \
|
|
||||||
-e 's|_/\(.*\)/\(.*\)$|local/\1/\2/current|' \
|
|
||||||
> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives; \
|
|
||||||
sed -f $(VERSIONS_SED_FILE) $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives \
|
|
||||||
> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/.ARCHIVES; \
|
|
||||||
|> \
|
|
||||||
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/runtime \
|
|
||||||
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives \
|
|
||||||
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/.ARCHIVES \
|
|
||||||
$(DEPOT_DIR)/<pkg> \
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ CONFIG_PUBLIC_KEY=6E10414EE7160781F5FEE8FFB14D043A26B3D2C7
|
||||||
|
|
||||||
CONFIG_PUBLIC_PKG_AUDIO_PLAYER=ehmry/pkg/audio_player/2019-05-15
|
CONFIG_PUBLIC_PKG_AUDIO_PLAYER=ehmry/pkg/audio_player/2019-05-15
|
||||||
CONFIG_PUBLIC_PKG_AVPLAY=ehmry/pkg/avplay/2019-04-24
|
CONFIG_PUBLIC_PKG_AVPLAY=ehmry/pkg/avplay/2019-04-24
|
||||||
CONFIG_PUBLIC_PKG_BACKDROP=genodelabs/pkg/backdrop/2019-07-08
|
CONFIG_PUBLIC_PKG_BACKDROP=ehmry/pkg/backdrop/2019-05-24
|
||||||
CONFIG_PUBLIC_PKG_NOUX_SYSTEM=ehmry/pkg/noux-system/2019-05-24
|
CONFIG_PUBLIC_PKG_NOUX_SYSTEM=ehmry/pkg/noux-system/2019-05-24
|
||||||
CONFIG_PUBLIC_PKG_PDF_VIEW=ehmry/pkg/pdf_view/2019-05-17
|
CONFIG_PUBLIC_PKG_PDF_VIEW=ehmry/pkg/pdf_view/2019-05-17
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ CONFIG_PUBLIC_SRC_CHROOT=_/src/chroot
|
||||||
CONFIG_PUBLIC_SRC_EXPAT=nfeske/src/expat/2019-02-19
|
CONFIG_PUBLIC_SRC_EXPAT=nfeske/src/expat/2019-02-19
|
||||||
CONFIG_PUBLIC_SRC_FS_LOG=_/src/fs_log
|
CONFIG_PUBLIC_SRC_FS_LOG=_/src/fs_log
|
||||||
CONFIG_PUBLIC_SRC_INIT=_/src/init
|
CONFIG_PUBLIC_SRC_INIT=_/src/init
|
||||||
CONFIG_PUBLIC_SRC_LIBC=genodelabs/src/libc/2019-07-08
|
CONFIG_PUBLIC_SRC_LIBC=nfeske/src/libc/2019-06-24
|
||||||
CONFIG_PUBLIC_SRC_LIBCRYPTO=ehmry/src/libcrypto/2019-05-24
|
CONFIG_PUBLIC_SRC_LIBCRYPTO=ehmry/src/libcrypto/2019-05-24
|
||||||
CONFIG_PUBLIC_SRC_LIBICONV=genodelabs/src/libiconv/2019-05-26
|
CONFIG_PUBLIC_SRC_LIBICONV=genodelabs/src/libiconv/2019-05-26
|
||||||
CONFIG_PUBLIC_SRC_LIBMPG123=ehmry/src/libmpg123/2019-05-24
|
CONFIG_PUBLIC_SRC_LIBMPG123=ehmry/src/libmpg123/2019-05-24
|
||||||
|
|
|
@ -49,7 +49,6 @@ pkgs.mkShell {
|
||||||
''
|
''
|
||||||
export LD_DIR=${lddir}
|
export LD_DIR=${lddir}
|
||||||
export TOOLCHAIN_DIR=${toolchain}
|
export TOOLCHAIN_DIR=${toolchain}
|
||||||
export HOST_LIBC=${stdenv.glibc.dev}
|
|
||||||
export SYSLINUX=${syslinux}
|
export SYSLINUX=${syslinux}
|
||||||
export PROMPT_DIRTRIM=2
|
export PROMPT_DIRTRIM=2
|
||||||
export PS1="\[\033[1;30m\]Genode-dev [\[\033[1;37m\]\w\[\033[1;30m\]] $\[\033[0m\] "
|
export PS1="\[\033[1;30m\]Genode-dev [\[\033[1;37m\]\w\[\033[1;30m\]] $\[\033[0m\] "
|
1
dhall
1
dhall
|
@ -1 +0,0 @@
|
||||||
Subproject commit 4b03fc71a4529cc35cef9dfe9d95ec431f8246e6
|
|
|
@ -1,7 +0,0 @@
|
||||||
let Genode = env:DHALL_GENODE
|
|
||||||
|
|
||||||
let types = env:DHALL_GENODE_TYPES
|
|
||||||
|
|
||||||
let XML = Genode.Prelude.XML
|
|
||||||
|
|
||||||
in λ(runtime : types.Runtime) → XML.render (Genode.Runtime.toXML runtime)
|
|
97
index.dhall
97
index.dhall
|
@ -1,97 +0,0 @@
|
||||||
let owner = "ehmry"
|
|
||||||
|
|
||||||
let Genode = env:DHALL_GENODE
|
|
||||||
|
|
||||||
let Prelude = Genode.Prelude
|
|
||||||
|
|
||||||
let List/map = Prelude.List.map
|
|
||||||
|
|
||||||
let XML = Prelude.XML
|
|
||||||
|
|
||||||
let XML/Type =
|
|
||||||
/home/repo/dhall-lang/Prelude/XML/Type sha256:461930f3aab769ba537d1a4fd71f411504b0c8d1c1a78d65177be8ded0df8a5c
|
|
||||||
? /home/repo/dhall-lang/Prelude/XML/Type
|
|
||||||
|
|
||||||
let Entry = { info : Text, name : Text, version : Text }
|
|
||||||
|
|
||||||
let ownedEntry =
|
|
||||||
λ(owner : Text)
|
|
||||||
→ λ(e : Entry)
|
|
||||||
→ XML.leaf
|
|
||||||
{ name =
|
|
||||||
"pkg"
|
|
||||||
, attributes =
|
|
||||||
[ { mapKey = "info", mapValue = e.info }
|
|
||||||
, { mapKey =
|
|
||||||
"path"
|
|
||||||
, mapValue =
|
|
||||||
"${owner}/pkg/${e.name}/${e.version}"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
let entry = ownedEntry owner
|
|
||||||
|
|
||||||
let subIndex =
|
|
||||||
λ(name : Text)
|
|
||||||
→ λ(entries : List Entry)
|
|
||||||
→ XML.element
|
|
||||||
{ name =
|
|
||||||
"index"
|
|
||||||
, attributes =
|
|
||||||
[ { mapKey = "name", mapValue = name } ]
|
|
||||||
, content =
|
|
||||||
List/map Entry XML/Type entry entries
|
|
||||||
}
|
|
||||||
|
|
||||||
let emu =
|
|
||||||
subIndex
|
|
||||||
"Emulators and game engines"
|
|
||||||
[ ./depot/pkg/fceumm/current/index.dhall
|
|
||||||
, ./depot/pkg/gambatte/current/index.dhall
|
|
||||||
, ./depot/pkg/snes9x/current/index.dhall
|
|
||||||
, ./depot/pkg/mgba/current/index.dhall
|
|
||||||
]
|
|
||||||
|
|
||||||
let games =
|
|
||||||
subIndex
|
|
||||||
"Games"
|
|
||||||
[ ./depot/pkg/libretro-2048/current/index.dhall
|
|
||||||
, ./depot/pkg/tyrquake/current/index.dhall
|
|
||||||
]
|
|
||||||
|
|
||||||
let streams =
|
|
||||||
subIndex
|
|
||||||
"Streams"
|
|
||||||
[ ./depot/pkg/ifm1/current/index.dhall
|
|
||||||
, ./depot/pkg/ifm2/current/index.dhall
|
|
||||||
, ./depot/pkg/ifm3/current/index.dhall
|
|
||||||
]
|
|
||||||
|
|
||||||
let utilities =
|
|
||||||
subIndex
|
|
||||||
"Utilities"
|
|
||||||
[ ./depot/pkg/depot_9P/current/index.dhall
|
|
||||||
, ./depot/pkg/show_input/current/index.dhall
|
|
||||||
, ./depot/pkg/nic_bus/current/index.dhall
|
|
||||||
, ./depot/pkg/noux-system/current/index.dhall
|
|
||||||
, ./depot/pkg/backdrop/current/index.dhall
|
|
||||||
]
|
|
||||||
|
|
||||||
let index =
|
|
||||||
XML.element
|
|
||||||
{ name =
|
|
||||||
"index"
|
|
||||||
, attributes =
|
|
||||||
XML.emptyAttributes
|
|
||||||
, content =
|
|
||||||
[ emu
|
|
||||||
, games
|
|
||||||
, streams
|
|
||||||
, utilities
|
|
||||||
, XML.text
|
|
||||||
"<pkg path=\"cnuke/pkg/bsd_audio_drv/2019-07-02\" info=\"OpenBSD audio driver\"/>"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
in XML.render index
|
|
128
index.xml
Normal file
128
index.xml
Normal file
|
@ -0,0 +1,128 @@
|
||||||
|
<index>
|
||||||
|
|
||||||
|
<index name="Audio">
|
||||||
|
<pkg path="_/pkg/mixer" info="Mixer component"/>
|
||||||
|
<pkg path="_/pkg/bsd_audio_drv" info="OpenBSD audio driver (mixer client)"/>
|
||||||
|
<pkg path="ehmry/pkg/audio_player/2019-05-24" info="Cnuke's audio player"/>
|
||||||
|
<index name="Radio streams">
|
||||||
|
<pkg path="_/pkg/ifm1" info="Intergalactic FM 1"/>
|
||||||
|
<pkg path="_/pkg/ifm2" info="Intergalactic FM 2"/>
|
||||||
|
<pkg path="_/pkg/ifm3" info="Intergalactic FM 3"/>
|
||||||
|
</index>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="Emulators and game engines">
|
||||||
|
<pkg path="_/pkg/dosbox" info="Experimental Libretro port of DOSBox"/>
|
||||||
|
<pkg path="_/pkg/fceumm" info="NES"/>
|
||||||
|
<pkg path="_/pkg/gambatte" info="GB"/>
|
||||||
|
<pkg path="_/pkg/mgba" info="GBA"/>
|
||||||
|
<pkg path="_/pkg/nxengine" info="Cave Story engine without game data"/>
|
||||||
|
<pkg path="_/pkg/snes9x" info="SNES"/>
|
||||||
|
<index name="Tests">
|
||||||
|
<pkg path="_/pkg/240pee-NES" info="NES tests"/>
|
||||||
|
<pkg path="_/pkg/240pSuite-SNES" info="SNES tests"/>
|
||||||
|
<pkg path="_/pkg/advanced_tests" info="An advanced test core written in C"/>
|
||||||
|
<pkg path="_/pkg/button_test" info="Libretro joypad button test"/>
|
||||||
|
<pkg path="_/pkg/topbench_dosbox-libretro" info="The Oldskool PC Benchmark running in DOSBox"/>
|
||||||
|
<pkg path="_/pkg/topbench_dosbox-svn" info="The Oldskool PC Benchmark running in DOSBox"/>
|
||||||
|
</index>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="Games">
|
||||||
|
<pkg path="_/pkg/2048" info="Threes! clone"/>
|
||||||
|
<pkg path="ehmry/pkg/abuse/2019-05-24" info="Side-scrolling shooter"/>
|
||||||
|
<pkg path="_/pkg/cave_story-en" info="Cave Story ~ Doukutsu Monogatari is a jumping-and-shooting action game."/>
|
||||||
|
<pkg path="_/pkg/mrboom" info="Bomberman clone"/>
|
||||||
|
<pkg path="_/pkg/quake_dopa" info="Quake Episode 5: Dimension of the Past (id1/pak1.pak required)"/>
|
||||||
|
<pkg path="_/pkg/streemerz" info="Streemerz remake"/>
|
||||||
|
<pkg path="_/pkg/tyrquake" info="Quake (shareware pak)"/>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="Block devices">
|
||||||
|
<!-- <pkg path="_/pkg/alpine-standard-x86" info="Alpine live ISO service"/> -->
|
||||||
|
<!-- <pkg path="_/pkg/alpine-virt-x86_64" info="Alpine live ISO service"/> -->
|
||||||
|
<pkg path="_/pkg/dummy_block" info="Dummy block device"/>
|
||||||
|
<pkg path="_/pkg/fs_block_4G" info="File-system backed 4GiB block device"/>
|
||||||
|
<pkg path="_/pkg/fs_block_8G" info="File-system backed 8GiB block device"/>
|
||||||
|
<!-- <pkg path="_/pkg/ReactOS-live" info="ReactOS live ISO service"/> -->
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="VMMs">
|
||||||
|
<pkg path="genodelabs/pkg/vbox5-nova-sculpt/2019-03-18" info="VBox5 for running Linux"/>
|
||||||
|
<pkg path="_/pkg/seoul-nova" info="Seoul VMM with routable block devices"/>
|
||||||
|
<index name="Installers">
|
||||||
|
<pkg path="_/pkg/fetch_alpine_x86_64" info="Fetch Alpine Linux virt ISO"/>
|
||||||
|
<pkg path="_/pkg/fetch_freebsd_12_amd64" info="Fetch FreeBSD 12 mini-memstick"/>
|
||||||
|
<pkg path="_/pkg/fetch_nixos_x86_64" info="Fetch NixOS minimal ISO"/>
|
||||||
|
<pkg path="_/pkg/fetch_ubuntu_x86_64" info="Fetch Ubuntu netboot installer ISO"/>
|
||||||
|
</index>
|
||||||
|
<index name="Experimental">
|
||||||
|
<pkg path="_/pkg/alpine_seoul_nova_installer" info="Alpine Linux installer as a Seoul VMM with routeable block device"/>
|
||||||
|
<pkg path="_/pkg/openbsd_seoul_nova_installer" info="OpenBSD installer as a Seoul VMM with routeable block device"/>
|
||||||
|
<pkg path="_/pkg/vbox5-nova" info="Vbox with routable block devices"/>
|
||||||
|
</index>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="Operating system demos">
|
||||||
|
<pkg path="_/pkg/ban.ai_multics" info="BAN.AI Public Access Multics"/>
|
||||||
|
<pkg path="_/pkg/oberon" info="Oberon RISC emulator (requires three-button mouse)"/>
|
||||||
|
<pkg path="_/pkg/soyuz" info="Training program for the Soyuz-TMA spacecraft"/>
|
||||||
|
<pkg path="_/pkg/templeos" info="The Temple Operating System hosted in VirtualBox for NOVA"/>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="Utility">
|
||||||
|
|
||||||
|
<index name="Graphic">
|
||||||
|
<!-- <pkg path="ehmry/pkg/flif_capture/2019-03-22" info="Screen capture utility"/> -->
|
||||||
|
<pkg path="_/pkg/backdrop" info="Nitpicker backdrop"/>
|
||||||
|
<!-- <pkg path="ehmry/pkg/flif_view/2019-03-22" info="FLIF file viewer (experimental)"/> -->
|
||||||
|
<pkg path="ehmry/pkg/grafx2/2019-05-24" info="Bitmap paint program (ported by cnuke)"/>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="Network">
|
||||||
|
<pkg path="_/pkg/arora" info="Arora web browser (cproc's package with clipboard)"/>
|
||||||
|
<pkg path="_/pkg/nic_bridge" info="Ethernet bridge"/>
|
||||||
|
<pkg path="_/pkg/nic_bridge_logged" info="Logged ethernet bridge"/>
|
||||||
|
<pkg path="_/pkg/nic_bus" info="Switched ethernet bus"/>
|
||||||
|
<pkg path="_/pkg/ninep" info="9P server"/>
|
||||||
|
<pkg path="_/pkg/ssh_client" info="SSH client"/>
|
||||||
|
<pkg path="_/pkg/test-lwip_node" info="Standalone lwIP IPv6 node"/>
|
||||||
|
<pkg path="_/pkg/kiosk" info="Kiosk-style web browser"/>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="UI">
|
||||||
|
<pkg path="ehmry/pkg/themed_wm/2019-05-24" info="Window manager that should work"/>
|
||||||
|
<pkg path="_/pkg/wm" info="Base window manager"/>
|
||||||
|
<pkg path="_/pkg/motif_decorator" info="Motif style window decorator"/>
|
||||||
|
<pkg path="_/pkg/carn_layouter" info="Piling window layouter"/>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="Other">
|
||||||
|
<!-- <pkg path="_/pkg/block_shred" info="Fill a block device with psuedo-random noise"/> -->
|
||||||
|
<pkg path="_/pkg/depot_9P" info="Serve /depot/local over 9P"/>
|
||||||
|
<!-- <pkg path="ehmry/pkg/jitter_sponge/2019-03-31" info="Entropy source"/> -->
|
||||||
|
<!-- <pkg path="ehmry/pkg/noux-build-x86/2019-03-20" info="Noux build environment"/> -->
|
||||||
|
<pkg path="_/pkg/noux-system" info="Noux administration environment"/>
|
||||||
|
<pkg path="_/pkg/show_input" info="Nitpicker input event debugger"/>
|
||||||
|
</index>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<index name="Experimental">
|
||||||
|
<index name="Semantic audio player demo">
|
||||||
|
<pkg path="_/pkg/blob_service" info="Blobsets package with file-system and HTTP frontends"/>
|
||||||
|
<pkg path="_/pkg/musicbrainz_playlist_generator" info="XSPF playlist generator"/>
|
||||||
|
<pkg path="_/pkg/xspf_view" info="XSPF playlist viewer"/>
|
||||||
|
</index>
|
||||||
|
<pkg path="_/pkg/4do" "3DO emulator"/>
|
||||||
|
<pkg path="ehmry/pkg/avplay/2019-05-24"/>
|
||||||
|
<pkg path="_/pkg/bluemsx"/>
|
||||||
|
<pkg path="_/pkg/cruzes" info="An unfinished Picross Libretro core"/>
|
||||||
|
<pkg path="_/pkg/monero_vanity"/>
|
||||||
|
<pkg path="_/pkg/mu"/>
|
||||||
|
<pkg path="_/pkg/testgl"/>
|
||||||
|
<pkg path="_/pkg/yabause" info="Sega Saturn emulator/>
|
||||||
|
</index>
|
||||||
|
|
||||||
|
<pkg path="ehmry/pkg/fonts_fs/2019-05-24" info="Fonts provider"/>
|
||||||
|
<pkg path="_/pkg/chroot" info="Automatic file-system session partitioner"/>
|
||||||
|
</index>
|
3
libretro/README.md
Normal file
3
libretro/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
This directory contains submodules for the Libretro frontend, a version of
|
||||||
|
libretro-common that is know to work with Genode, and a collection of cores and
|
||||||
|
build rules.
|
3
libretro/Tuprules.tup
Normal file
3
libretro/Tuprules.tup
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
LIBRETRO_COMM_DIR = $(TUP_CWD)/libretro-common
|
||||||
|
GIT_VERSION = `git describe --always`
|
||||||
|
BIN_VERSION = $(GIT_VERSION)
|
1
libretro/bios/cbios-cbios
Submodule
1
libretro/bios/cbios-cbios
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d714defae18cc6f3019638a8c7cf6c1d86e33ead
|
14
libretro/cores/2048/Tuprules.tup
Normal file
14
libretro/cores/2048/Tuprules.tup
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
CORE_PKGS += libc libm
|
||||||
|
|
||||||
|
CFLAGS += -O3 -Wall -pedantic -std=gnu99
|
||||||
|
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
32
libretro/cores/2048/runtime
Normal file
32
libretro/cores/2048/runtime
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<runtime ram="16M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<vfs>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
<fs/>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/2048/upstream
Submodule
1
libretro/cores/2048/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit b8d222ace1bf1962423111e395e01d4674776270
|
24
libretro/cores/4do/Tuprules.tup
Normal file
24
libretro/cores/4do/Tuprules.tup
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
CORE_PKGS += libc
|
||||||
|
|
||||||
|
DEFINES += -O2 -DNDEBUG
|
||||||
|
DEFINES += \
|
||||||
|
-Wall \
|
||||||
|
-Wno-sign-compare \
|
||||||
|
-Wno-unused-variable \
|
||||||
|
-Wno-unused-function \
|
||||||
|
-Wno-uninitialized \
|
||||||
|
-Wno-strict-aliasing \
|
||||||
|
-Wno-overflow \
|
||||||
|
-fno-strict-overflow \
|
||||||
|
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
DEFINES += $(FLAGS)
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
43
libretro/cores/4do/runtime
Normal file
43
libretro/cores/4do/runtime
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
<runtime ram="16M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_S" to="X"/>
|
||||||
|
<map from="KEY_A" to="Y"/>
|
||||||
|
<map from="KEY_Q" to="L"/>
|
||||||
|
<map from="KEY_W" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/4do/upstream
Submodule
1
libretro/cores/4do/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 8c2b1cf0ccd8ea8a36ae1ed7aa09ae7c2b3dc1cd
|
25
libretro/cores/README.md
Normal file
25
libretro/cores/README.md
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
This directory contains core submodules and Genode-specific build rules. To port
|
||||||
|
a core to Genode, add a minimal Tupfile to the upsteam repository, add a new
|
||||||
|
directory containing the upstream Git repository here as submodule, then add a
|
||||||
|
Tuprules.tup file in the local directory containg Genode build rules.
|
||||||
|
|
||||||
|
The upstream `Tupfile` should be as simple as possible. It must mirror the core
|
||||||
|
*TARGET_NAME* defined in the Libretro makefile, the *CORE_DIR* if defined by
|
||||||
|
Make as well, and the *include_rules* directive.
|
||||||
|
|
||||||
|
```tup
|
||||||
|
TARGET_NAME=2048
|
||||||
|
CORE_DIR=$(TUP_CWD)
|
||||||
|
include_rules
|
||||||
|
```
|
||||||
|
|
||||||
|
The local `Tuprules.tup` file contains the actual build rules. Typically a core
|
||||||
|
repository contains `Makefile` and `Makefile.common` files, the later containing
|
||||||
|
a list of sources files relative to a `CORE_DIR` variable, which can usually be
|
||||||
|
included and parsed by Tup. Note that Tup cannot include files relative to a
|
||||||
|
variable, `Tuprules.tup` must include `Makefile.common` relative to itself.
|
||||||
|
Please refer to a `Tuprules.tup` in any of the core directories here as an
|
||||||
|
example.
|
||||||
|
|
||||||
|
Unfortunately not all cores are trivally compatible with Tup, in particular
|
||||||
|
those with makefiles that wrap a pre-Libretro Make build system.
|
38
libretro/cores/Tuprules.tup
Normal file
38
libretro/cores/Tuprules.tup
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
# Implicit dependencies
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
_/src/vfs \
|
||||||
|
@(PUBLIC_SRC_LIBC) \
|
||||||
|
_/src/$(BIN_NAME) \
|
||||||
|
_/src/retro_frontend \
|
||||||
|
|
||||||
|
!libretro_cc = | $(GENODE_DIR)/<pkg-config> |> ^ CC %f^ \
|
||||||
|
$(CC) \
|
||||||
|
$(DEFINES) \
|
||||||
|
`$(PKG_CONFIG) --cflags $(CORE_PKGS)` \
|
||||||
|
$(CFLAGS) $(INCFLAGS) \
|
||||||
|
`$(PKG_CONFIG) --cflags genode-lib` \
|
||||||
|
-c %f -o %o \
|
||||||
|
|> %f.$(TARGET_NAME).o
|
||||||
|
|
||||||
|
!libretro_cxx = | $(GENODE_DIR)/<pkg-config> |> ^ CXX %f^ \
|
||||||
|
$(CXX) \
|
||||||
|
$(DEFINES) \
|
||||||
|
`$(PKG_CONFIG) --cflags $(CORE_PKGS)` \
|
||||||
|
$(CXXFLAGS) $(INCFLAGS) \
|
||||||
|
`$(PKG_CONFIG) --cflags genode-lib` \
|
||||||
|
-c %f -o %o \
|
||||||
|
|> %f.$(TARGET_NAME).o
|
||||||
|
|
||||||
|
!libretro_core_link = | $(GENODE_DIR)/<pkg-config> $(GENODE_DIR)/<stub> |> ^o LD %d^ \
|
||||||
|
$(LD) %f -o %o \
|
||||||
|
-shared --version-script=$(LINK_T) $(NO_UNDEFINED) \
|
||||||
|
$(LDFLAGS) \
|
||||||
|
`$(PKG_CONFIG) --libs $(CORE_PKGS)` \
|
||||||
|
`$(PKG_CONFIG) --libs genode-lib` \
|
||||||
|
-L$(STUB_DIR) \
|
||||||
|
|> libretro.so
|
||||||
|
|
||||||
|
LINK_T = $(TUP_CWD)/link.T
|
||||||
|
DEFINES += -fPIC -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565
|
||||||
|
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
|
||||||
|
NO_UNDEFINED = --no-undefined
|
51
libretro/cores/bluemsx/Tuprules.tup
Normal file
51
libretro/cores/bluemsx/Tuprules.tup
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
CORE_PKGS += stdcxx libc libm
|
||||||
|
NO_UNDEFINED =
|
||||||
|
|
||||||
|
LIBRETRO_COMM_DIR =
|
||||||
|
|
||||||
|
DEBUG = 0
|
||||||
|
LOG_PERFORMANCE = 0
|
||||||
|
HAVE_COMPAT = 0
|
||||||
|
|
||||||
|
ifeq ($(DEBUG), 1)
|
||||||
|
DEFINES += -O0 -g
|
||||||
|
else
|
||||||
|
DEFINES += -O2 -DHAVE_STDINT_H -DNDEBUG
|
||||||
|
CXXFLAGS += -fno-exceptions -fno-rtti
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(LOG_PERFORMANCE), 1)
|
||||||
|
DEFINES += -DLOG_PERFORMANCE
|
||||||
|
endif
|
||||||
|
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
DEFINES += $(COREDEFINES)
|
||||||
|
|
||||||
|
CFLAGS += -w
|
||||||
|
CXXFLAGS += -w
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
ifndef CONFIG_NO_NETWORK
|
||||||
|
: |> wget --quiet http://bluemsx.msxblue.com/rel_download/%o |> blueMSXv282.zip {zip}
|
||||||
|
|
||||||
|
: {zip} \
|
||||||
|
|> unzip %f -d tmp ; tar cf %o -C tmp Machines Databases ; rm -r tmp \
|
||||||
|
|> blueMSX.tar {tar}
|
||||||
|
|
||||||
|
: {tar} |> !collect_raw |>
|
||||||
|
: |> !raw |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
@(PUBLIC_SRC_STDCXX) \
|
||||||
|
_/raw/bluemsx \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
44
libretro/cores/bluemsx/runtime
Normal file
44
libretro/cores/bluemsx/runtime
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<runtime ram="32M" caps="256" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system label="MSX"/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
<rtc/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="blueMSX.tar"/>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
||||||
|
<vfs>
|
||||||
|
<dir name="system">
|
||||||
|
<tar name="blueMSX.tar"/> </dir>
|
||||||
|
<fs label="MSX"/>
|
||||||
|
<dir name="dev"> <log label="core"/> <rtc/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<game/>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/bluemsx/upstream
Submodule
1
libretro/cores/bluemsx/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 71fe7c9fe6b9049cb98c64ab230ce18b5d8554e0
|
1
libretro/cores/dinothawr/core
Submodule
1
libretro/cores/dinothawr/core
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d68f520a6ff70bd7980a6df3b82c25e3b1deb92f
|
31
libretro/cores/dosbox-libretro/Tuprules.tup
Normal file
31
libretro/cores/dosbox-libretro/Tuprules.tup
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
CORE_PKGS += stdcxx libm
|
||||||
|
NO_UNDEFINED =
|
||||||
|
# Uses Genode API to create secondary stack
|
||||||
|
LIBRETRO_COMM_DIR =
|
||||||
|
# TODO: build against newer libretro-common
|
||||||
|
|
||||||
|
WITH_DYNAREC = @(TUP_ARCH)
|
||||||
|
# TODO: will not configure correctly for every possible TUP_ARCH
|
||||||
|
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
SOURCES_CXX += $(LIBRETRO_COMM_DIR)/libco/genode.cpp
|
||||||
|
|
||||||
|
DEFINES += -O2 -DNDEBUG -D__GENODE__
|
||||||
|
CFLAGS += $(COMMONFLAGS)
|
||||||
|
|
||||||
|
DEFINES += -DHAVE_MMAP
|
||||||
|
# Use anonymous mmap to allocate executable memory pages
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
@(PUBLIC_SRC_STDCXX) \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
30
libretro/cores/dosbox-libretro/runtime
Normal file
30
libretro/cores/dosbox-libretro/runtime
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<runtime ram="128M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
<rtc/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config ld_verbose="yes">
|
||||||
|
<game path="/fs/dosbox.conf"/>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
||||||
|
<vfs>
|
||||||
|
<dir name="fs"> <fs/> </dir>
|
||||||
|
<dir name="dev"> <log label="core"/> <rtc/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="771"/>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/dosbox-libretro/upstream
Submodule
1
libretro/cores/dosbox-libretro/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 6dc49e4356c78ae097fa39d5e3ccb7e50215d4bd
|
45
libretro/cores/dosbox-svn/Tuprules.tup
Normal file
45
libretro/cores/dosbox-svn/Tuprules.tup
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
CORE_PKGS += stdcxx libm
|
||||||
|
NO_UNDEFINED =
|
||||||
|
# Uses Genode API to create secondary stack
|
||||||
|
#LIBRETRO_COMM_DIR =
|
||||||
|
|
||||||
|
ifeq (@(TUP_ARCH),arm64)
|
||||||
|
WITH_DYNAREC = arm64
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq (@(TUP_ARCH),i386)
|
||||||
|
WITH_DYNAREC = x86
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq (@(TUP_ARCH),x86_64)
|
||||||
|
WITH_DYNAREC = x86_64
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(WITH_DYNAREC),)
|
||||||
|
error dynamic recompiler not configured for @(TUP_ARCH)
|
||||||
|
endif
|
||||||
|
|
||||||
|
WITH_FAKE_SDL = 1
|
||||||
|
include upstream/libretro/Makefile.common
|
||||||
|
|
||||||
|
DEFINES += -O1 -DNDEBUG -D__GENODE__ -DWITH_FAKE_SDL
|
||||||
|
DEFINES += -DDB_HAVE_CLOCK_GETTIME
|
||||||
|
DEFINES += $(COMMONFLAGS)
|
||||||
|
|
||||||
|
DEFINES += -DHAVE_MMAP
|
||||||
|
# Use anonymous mmap to allocate executable memory pages
|
||||||
|
|
||||||
|
SOURCES_CXX += $(LIBRETRO_COMM_DIR)/libco/genode.cpp
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
@(PUBLIC_SRC_STDCXX) \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
30
libretro/cores/dosbox-svn/runtime
Normal file
30
libretro/cores/dosbox-svn/runtime
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<runtime ram="128M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
<rtc/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<game path="/fs/dosbox.conf"/>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
||||||
|
<vfs>
|
||||||
|
<dir name="fs"> <fs/> </dir>
|
||||||
|
<dir name="dev"> <log label="core"/> <rtc/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="771"/>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/dosbox-svn/upstream
Submodule
1
libretro/cores/dosbox-svn/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit fe8f21212739a3ded2b06d80a27f4c06d4331996
|
19
libretro/cores/fceumm/Tuprules.tup
Normal file
19
libretro/cores/fceumm/Tuprules.tup
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
CORE_PKGS += libc libm
|
||||||
|
|
||||||
|
DEFINES += -O2 -DNDEBUG
|
||||||
|
DEFINES += -DWANT_GRIFFIN
|
||||||
|
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
DEFINES += -DSOUND_QUALITY=0 -DPATH_MAX=1024 -DFCEU_VERSION_NUMERIC=9813 -DINLINE=inline -DPSS_STYLE=1
|
||||||
|
DEFINES += -Wno-write-strings
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
39
libretro/cores/fceumm/runtime
Normal file
39
libretro/cores/fceumm/runtime
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<runtime ram="16M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<game/>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/fceumm/upstream
Submodule
1
libretro/cores/fceumm/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 4e1bdaaed021b0f6587c61f18de081bc3876f887
|
24
libretro/cores/gambatte/Tuprules.tup
Normal file
24
libretro/cores/gambatte/Tuprules.tup
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
CORE_PKGS += stdcxx
|
||||||
|
NO_UNDEFINED =
|
||||||
|
|
||||||
|
LIBRETRO_COMM_DIR =
|
||||||
|
|
||||||
|
DEFINES += -O2 -DNDEBUG
|
||||||
|
DEFINES += -DHAVE_STDINT_H
|
||||||
|
DEFINES += -D__LIBRETRO__ -DHAVE_STDINT_H -DHAVE_INTTYPES_H
|
||||||
|
DEFINES += -DINLINE=inline -DVIDEO_RGB565
|
||||||
|
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
@(PUBLIC_SRC_STDCXX) \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
40
libretro/cores/gambatte/runtime
Normal file
40
libretro/cores/gambatte/runtime
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
<runtime ram="8M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<game/>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/gambatte/upstream
Submodule
1
libretro/cores/gambatte/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 5fd9a1fb1dc2ae259f9f0edd7fce1549465f4fe9
|
5
libretro/cores/link.T
Normal file
5
libretro/cores/link.T
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
global: retro_*;
|
||||||
|
local: *;
|
||||||
|
};
|
||||||
|
|
1
libretro/cores/lutro/upstream
Submodule
1
libretro/cores/lutro/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit ceab569d88da6846bc632a79961fb30b1aa8c186
|
27
libretro/cores/mgba/Tuprules.tup
Normal file
27
libretro/cores/mgba/Tuprules.tup
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
CORE_PKGS += libc libm
|
||||||
|
|
||||||
|
include upstream/libretro-build/Makefile.common
|
||||||
|
|
||||||
|
DEFINES += -DMINIMAL_CORE=2 -DM_CORE_GBA -DM_CORE_GB
|
||||||
|
DEFINES += -DHAVE_STDINT_H -DHAVE_INTTYPES_H -DHAVE_LOCALE -DHAVE_LOCALTIME_R
|
||||||
|
DEFINES += -DINLINE=inline
|
||||||
|
DEFINES += -DCOLOR_16_BIT -DCOLOR_5_6_5
|
||||||
|
DEFINES += -DRESAMPLE_LIBRARY=2
|
||||||
|
DEFINES += -DM_PI=3.14159265358979323846
|
||||||
|
DEFINES += -DNDEBUG
|
||||||
|
DEFINES += -DUSE_VFS_FILE
|
||||||
|
|
||||||
|
CFLAGS += -O3
|
||||||
|
CFLAGS += $(INCLUDES)
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
@(PUBLIC_SRC_STDCXX) \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
42
libretro/cores/mgba/runtime
Normal file
42
libretro/cores/mgba/runtime
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
<runtime ram="64M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_A" to="L"/>
|
||||||
|
<map from="KEY_S" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/mgba/upstream
Submodule
1
libretro/cores/mgba/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 22c7ae749b9b46fb0343d8f25238db62ca6156ef
|
28
libretro/cores/mrboom/Tuprules.tup
Normal file
28
libretro/cores/mrboom/Tuprules.tup
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
CORE_PKGS += stdcxx libc libm
|
||||||
|
|
||||||
|
NO_UNDEFINED =
|
||||||
|
# Uses Genode API to create secondary stack
|
||||||
|
|
||||||
|
LIBRETRO_COMM_DIR =
|
||||||
|
# TODO: update libretro-common
|
||||||
|
|
||||||
|
CFLAGS += -O3
|
||||||
|
CFLAGS += -DMRBOOM -DHAVE_IBXM -D_FORTIFY_SOURCE=0
|
||||||
|
CFLAGS += -DPLATFORM=\"genode\"
|
||||||
|
CFLAGS += -std=gnu99
|
||||||
|
CXXFLAGS += -std=c++98
|
||||||
|
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
@(PUBLIC_SRC_STDCXX) \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
44
libretro/cores/mrboom/runtime
Normal file
44
libretro/cores/mrboom/runtime
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<runtime ram="16M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<nitpicker/>
|
||||||
|
<file_system/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_S" to="X"/>
|
||||||
|
<map from="KEY_A" to="Y"/>
|
||||||
|
<map from="KEY_Q" to="L"/>
|
||||||
|
<map from="KEY_W" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/mrboom/upstream
Submodule
1
libretro/cores/mrboom/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 148b9f7301db2aebfc3b9190526ebde43eba170b
|
26
libretro/cores/mu/Tuprules.tup
Normal file
26
libretro/cores/mu/Tuprules.tup
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
CORE_PKGS += libc libm
|
||||||
|
|
||||||
|
LIBRETRO_COMM_DIR =
|
||||||
|
|
||||||
|
DEFINES += -O2 -DNDEBUG
|
||||||
|
DEFINES += -DINLINE=inline
|
||||||
|
|
||||||
|
include upstream/libretroBuildSystem/build/Makefile.common
|
||||||
|
include upstream/src/makefile.all
|
||||||
|
SOURCES_C += $(EMU_SOURCES_C)
|
||||||
|
|
||||||
|
DEFINES += $(COREDEFINES)
|
||||||
|
DEFINES += $(INCFLAGS)
|
||||||
|
|
||||||
|
CFLAGS += -Wall -W -Wno-unused-parameter -Wno-sign-compare -Wno-uninitialized
|
||||||
|
CFLAGS += -fomit-frame-pointer
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
|
||||||
|
: |> !bin |>
|
||||||
|
: |> !pkg |>
|
24
libretro/cores/mu/runtime
Normal file
24
libretro/cores/mu/runtime
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<runtime ram="32M" caps="256" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires> <file_system/> <nitpicker/> </requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config ld_vebose="yes">
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev">
|
||||||
|
<log label="core"/>
|
||||||
|
</dir>
|
||||||
|
</vfs>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/mu/upstream
Submodule
1
libretro/cores/mu/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d4a449c99265c7ef8680edc4cc2501bdfca30b46
|
22
libretro/cores/nxengine/Tuprules.tup
Normal file
22
libretro/cores/nxengine/Tuprules.tup
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
CORE_PKGS += libc libm
|
||||||
|
NO_UNDEFINED =
|
||||||
|
# __cxa_...
|
||||||
|
|
||||||
|
EXTRACTDIR = $(CORE_DIR)/extract-auto
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
DEFINES += -O2 -DNDEBUG
|
||||||
|
DEFINES += -DHAVE_INTTYPES_H
|
||||||
|
DEFINES += -DINLINE="inline"
|
||||||
|
CFLAGS += -std=gnu11
|
||||||
|
CXXFLAGS += -fno-rtti -fno-exceptions
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
41
libretro/cores/nxengine/runtime
Normal file
41
libretro/cores/nxengine/runtime
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<runtime ram="32M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<vfs>
|
||||||
|
<tar name="doukutsu.tar"/>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<game/>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_S" to="X"/>
|
||||||
|
<map from="KEY_Q" to="L"/>
|
||||||
|
<map from="KEY_W" to="R"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/nxengine/upstream
Submodule
1
libretro/cores/nxengine/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit b220b573ca8fd32fad5dfbb02679c430998395f1
|
20
libretro/cores/oberon/Tuprules.tup
Normal file
20
libretro/cores/oberon/Tuprules.tup
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
RAW_VERSION = 2019-01-21
|
||||||
|
: $(CORE_DIR)/DiskImage/Oberon-$(RAW_VERSION).dsk |> !collect_raw |>
|
||||||
|
: |> !raw |>
|
||||||
|
|
||||||
|
CORE_PKGS += libc
|
||||||
|
|
||||||
|
include upstream/Libretro/Makefile.common
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
_/raw/oberon \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
25
libretro/cores/oberon/runtime
Normal file
25
libretro/cores/oberon/runtime
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
<runtime ram="32M" caps="256" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires> <nitpicker/> </requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
<rom label="Oberon-2019-01-21.dsk"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config ld_vebose="yes">
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game path="/Oberon-2019-01-21.dsk"/>
|
||||||
|
<vfs>
|
||||||
|
<rom name="Oberon-2019-01-21.dsk"/>
|
||||||
|
<dir name="dev">
|
||||||
|
<log label="core"/>
|
||||||
|
</dir>
|
||||||
|
</vfs>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/oberon/upstream
Submodule
1
libretro/cores/oberon/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 41aa3d5ecaab3c4dc68be3857af89c36053b02c6
|
154
libretro/cores/samples/Tuprules.tup
Normal file
154
libretro/cores/samples/Tuprules.tup
Normal file
|
@ -0,0 +1,154 @@
|
||||||
|
CORE_PKGS += libc libm
|
||||||
|
LDFLAGS += --no-undefined
|
||||||
|
CFLAGS += -O3 -Wall -pedantic -std=gnu99
|
||||||
|
|
||||||
|
SIMPLE_DEPENDS = @(PUBLIC_SRC_STDCXX)
|
||||||
|
|
||||||
|
GL_DEPENDS = \
|
||||||
|
$(SIMPLE_DEPENDS) \
|
||||||
|
@(UPSTREAM_USER)/src/init/@(UPSTREAM_VERSION) \
|
||||||
|
@(PUBLIC_SRC_EXPAT) \
|
||||||
|
@(PUBLIC_SRC_MESA) \
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testaudio_callback)
|
||||||
|
CFLAGS += -I../../libretro-common/include
|
||||||
|
SOURCES_C += libretro-test.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/audio.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testaudio_no_callback)
|
||||||
|
CFLAGS += -I../../libretro-common/include
|
||||||
|
SOURCES_C += libretro-test.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/audio.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testaudio_playback_wav)
|
||||||
|
CFLAGS += -I../../libretro-common/include
|
||||||
|
SOURCES_C += libretro-test.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/audio.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),button_test)
|
||||||
|
CFLAGS += -Ilibretro-common/include
|
||||||
|
SOURCES_C += libretro.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),freebasic)
|
||||||
|
TARGET_NAME=
|
||||||
|
# : fbastest.bas |> fbc -dll %f -x %o |> libretro.so {core}
|
||||||
|
# PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
# : $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),pascal_pong)
|
||||||
|
TARGET_NAME=
|
||||||
|
# : pong.pas |> fpc -o%o %f |> libretro.so {core}
|
||||||
|
# PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
# : $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),midi_test)
|
||||||
|
SOURCES_C += libretro.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/midi.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),test)
|
||||||
|
TARGET_NAME = simple_tests
|
||||||
|
CFLAGS += -I../../libretro-common/include
|
||||||
|
SOURCES_C += libretro-test.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),cruzes)
|
||||||
|
SOURCES_C += cruzes.c ttf2c.c
|
||||||
|
# : obj/Carlito-Regular.ttf |> ttf2c 24 font24 %f %o |> font24.h
|
||||||
|
# : obj/Carlito-Regular.ttf |> ttf2c 16 font16 %f %o |> font16.h
|
||||||
|
# : obj/Carlito-Regular.ttf |> ttf2c 10 font10 %f %o |> font10.h
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),advanced_tests)
|
||||||
|
CFLAGS += -I../../libretro-common/include
|
||||||
|
SOURCES_C += libretro-test.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/audio.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testgl_compute_shaders)
|
||||||
|
CORE_PKGS += mesa
|
||||||
|
CFLAGS += -Igl -DNDEBUG -DHAVE_ZIP_DEFLATE
|
||||||
|
SOURCES_CXX += libretro/libretro.cpp
|
||||||
|
SOURCES_CXX += gl/*.cpp
|
||||||
|
SOURCES_CXX += app/boxes.cpp
|
||||||
|
SOURCES_C += glsym/rglgen.c
|
||||||
|
SOURCES_C += glsym/glsym_gl.c
|
||||||
|
|
||||||
|
PKG_DEPENDS += $(GL_DEPENDS)
|
||||||
|
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testgl_ff)
|
||||||
|
CORE_PKGS += mesa
|
||||||
|
CFLAGS +=
|
||||||
|
SOURCES_C += libretro_gl_ff_test.c glsym/rglgen.c glsym/glsym_gl.c
|
||||||
|
PKG_DEPENDS += $(GL_DEPENDS)
|
||||||
|
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testgl)
|
||||||
|
CORE_PKGS += mesa
|
||||||
|
CFLAGS +=
|
||||||
|
SOURCES_C += libretro_gl_test.c
|
||||||
|
SOURCES_C += glsym/rglgen.c
|
||||||
|
SOURCES_C += glsym/glsym_gl.c
|
||||||
|
|
||||||
|
PKG_DEPENDS += $(GL_DEPENDS)
|
||||||
|
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testsw)
|
||||||
|
CFLAGS += -I../../libretro-common/include
|
||||||
|
SOURCES_C += libretro-test.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testsw_vram)
|
||||||
|
CFLAGS += -I../../libretro-common/include
|
||||||
|
SOURCES_C += libretro-test.c
|
||||||
|
PKG_DEPENDS += $(SIMPLE_DEPENDS)
|
||||||
|
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testvulkan_async_compute)
|
||||||
|
CFLAGS += -I../../libretro-common/include -Iinclude
|
||||||
|
SOURCES_C += libretro-test.c vulkan_symbol_wrapper.c
|
||||||
|
PKG_DEPENDS += $(GL_DEPENDS)
|
||||||
|
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(TARGET_NAME),testvulkan)
|
||||||
|
CFLAGS += -I../../libretro-common/include -Iinclude
|
||||||
|
SOURCES_C += libretro-test.c vulkan_symbol_wrapper.c
|
||||||
|
PKG_DEPENDS += $(GL_DEPENDS)
|
||||||
|
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(TARGET_NAME),)
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
: README.md |> !collect_pkg |>
|
||||||
|
|
||||||
|
endif
|
44
libretro/cores/samples/audio.runtime
Normal file
44
libretro/cores/samples/audio.runtime
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<runtime ram="16M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_S" to="X"/>
|
||||||
|
<map from="KEY_A" to="Y"/>
|
||||||
|
<map from="KEY_Q" to="L"/>
|
||||||
|
<map from="KEY_W" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
27
libretro/cores/samples/midi.runtime
Normal file
27
libretro/cores/samples/midi.runtime
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<runtime ram="16M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<nitpicker/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<ram/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="3"/>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
40
libretro/cores/samples/noaudio.runtime
Normal file
40
libretro/cores/samples/noaudio.runtime
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
<runtime ram="16M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<nitpicker/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_S" to="X"/>
|
||||||
|
<map from="KEY_A" to="Y"/>
|
||||||
|
<map from="KEY_Q" to="L"/>
|
||||||
|
<map from="KEY_W" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
40
libretro/cores/samples/simple.runtime
Normal file
40
libretro/cores/samples/simple.runtime
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
<runtime ram="16M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<nitpicker/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_S" to="X"/>
|
||||||
|
<map from="KEY_A" to="Y"/>
|
||||||
|
<map from="KEY_Q" to="L"/>
|
||||||
|
<map from="KEY_W" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
30
libretro/cores/samples/testgl.runtime
Normal file
30
libretro/cores/samples/testgl.runtime
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<runtime ram="64M" caps="256" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<nitpicker/>
|
||||||
|
<rom label="egl_drv.lib.so"/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="egl.lib.so"/>
|
||||||
|
<rom label="expat.lib.so"/>
|
||||||
|
<rom label="glapi.lib.so"/>
|
||||||
|
<rom label="init"/>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="mesa.lib.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/samples/upstream
Submodule
1
libretro/cores/samples/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 32aa98eeaad66cc3318d6e821a7a83de75603831
|
25
libretro/cores/snes9x/Tuprules.tup
Normal file
25
libretro/cores/snes9x/Tuprules.tup
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
CORE_PKGS += stdcxx libc libm
|
||||||
|
NO_UNDEFINED =
|
||||||
|
|
||||||
|
include upstream/libretro/Makefile.common
|
||||||
|
|
||||||
|
CODE_DEFINES = -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic
|
||||||
|
WARNINGS_DEFINES = -Wall -W -Wno-unused-parameter
|
||||||
|
|
||||||
|
CFLAGS += -O2 -DNDEBUG
|
||||||
|
CFLAGS += -DHAVE_STDINT_H -DHAVE_STRINGS_H
|
||||||
|
CXXFLAGS += $(CODE_DEFINES) $(WARNINGS_DEFINES)
|
||||||
|
CXXFLAGS += -DRIGHTSHIFT_IS_SAR -D__LIBRETRO__ -DALLOW_CPU_OVERCLOCK
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
@(PUBLIC_SRC_STDCXX) \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
44
libretro/cores/snes9x/runtime
Normal file
44
libretro/cores/snes9x/runtime
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<runtime ram="32M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_S" to="X"/>
|
||||||
|
<map from="KEY_A" to="Y"/>
|
||||||
|
<map from="KEY_Q" to="L"/>
|
||||||
|
<map from="KEY_W" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/snes9x/upstream
Submodule
1
libretro/cores/snes9x/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 121576eb06ec7f1381881710d0ddd013355cd9de
|
32
libretro/cores/tyrquake/Tuprules.tup
Normal file
32
libretro/cores/tyrquake/Tuprules.tup
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
CORE_PKGS += libc libm
|
||||||
|
|
||||||
|
LIBRETRO_COMM_DIR=
|
||||||
|
|
||||||
|
USE_CODEC_WAVE=1
|
||||||
|
USE_CODEC_FLAC=1
|
||||||
|
USE_CODEC_VORBIS=1
|
||||||
|
|
||||||
|
DEFINES += -DUSE_CODEC_WAVE
|
||||||
|
DEFINES += -DUSE_CODEC_FLAC
|
||||||
|
DEFINES += -DUSE_CODEC_VORBIS
|
||||||
|
|
||||||
|
DEFINES += -O2 -DNDEBUG
|
||||||
|
|
||||||
|
DEFINES += -DINLINE=inline
|
||||||
|
DEFINES += -DHAVE_STRINGS_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H
|
||||||
|
DEFINES += -DNQ_HACK -DQBASEDIR=$(CORE_DIR) -DTYR_VERSION=0.62
|
||||||
|
DEFINES += -fomit-frame-pointer
|
||||||
|
|
||||||
|
include upstream/Makefile.common
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
|
||||||
|
|
||||||
|
: {libretro_objs} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
ehmry/raw/quake_shareware/1.06 \
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
33
libretro/cores/tyrquake/runtime
Normal file
33
libretro/cores/tyrquake/runtime
Normal file
|
@ -0,0 +1,33 @@
|
||||||
|
<runtime ram="64M" caps="256" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="quake_shareware.tar"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<game/>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<vfs>
|
||||||
|
<tar name="quake_shareware.tar"/>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="3"/>
|
||||||
|
<variables>
|
||||||
|
<variable key="tyrquake_resolution" value="960x600"/>
|
||||||
|
</variables>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/cores/tyrquake/upstream
Submodule
1
libretro/cores/tyrquake/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d058fb7e58137d92f148f1b81a8b2eb147090aab
|
30
libretro/cores/yabause/Tuprules.tup
Normal file
30
libretro/cores/yabause/Tuprules.tup
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
CORE_PKGS += libc libm
|
||||||
|
|
||||||
|
# TODO: enable dynamic recompiler
|
||||||
|
|
||||||
|
include upstream/libretro/Makefile.common
|
||||||
|
|
||||||
|
: foreach $(C68KEXEC_SOURCE) |> !libretro_cc -O0 -DNDEBUG |> %B.o {obj}
|
||||||
|
|
||||||
|
CFLAGS += $(INCFLAGS)
|
||||||
|
CFLAGS += -DSIZEOF_DOUBLE=8
|
||||||
|
CFLAGS += -DUSE_16BPP=1
|
||||||
|
CFLAGS += -DUSE_RGB_565=1
|
||||||
|
CFLAGS += -DUSE_SCSP2=1
|
||||||
|
CFLAGS += -DNO_CLI
|
||||||
|
CFLAGS += -DHAVE_SYS_TIME_H
|
||||||
|
CFLAGS += -DHAVE_GETTIMEOFDAY
|
||||||
|
CFLAGS += -DVERSION=\"0.9.12\"
|
||||||
|
CFLAGS += -DHAVE_STRCASECMP
|
||||||
|
CFLAGS += -DINLINE="inline"
|
||||||
|
|
||||||
|
CFLAGS += -O3 -DNDEBUG
|
||||||
|
|
||||||
|
: foreach $(SOURCES_C) |> !libretro_cc |> {obj}
|
||||||
|
|
||||||
|
: {obj} |> !libretro_core_link |> {core}
|
||||||
|
: {core} |> !collect_bin |>
|
||||||
|
: |> !bin |>
|
||||||
|
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
44
libretro/cores/yabause/runtime
Normal file
44
libretro/cores/yabause/runtime
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<runtime ram="64M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_Z" to="Y"/>
|
||||||
|
<map from="KEY_X" to="B"/>
|
||||||
|
<map from="KEY_C" to="A"/>
|
||||||
|
<map from="KEY_A" to="X"/>
|
||||||
|
<map from="KEY_S" to="L"/>
|
||||||
|
<map from="KEY_D" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
||||||
|
|
1
libretro/cores/yabause/upstream
Submodule
1
libretro/cores/yabause/upstream
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 7bb35b865af74282d69f4ecc35ce3a1e0f2d0099
|
28
libretro/games/quake_dopa/Tupfile
Normal file
28
libretro/games/quake_dopa/Tupfile
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
ifndef CONFIG_NO_NETWORK
|
||||||
|
|
||||||
|
TARGET_NAME = quake_dopa
|
||||||
|
RAW_VERSION = 2016-06-22
|
||||||
|
include_rules
|
||||||
|
|
||||||
|
: |> wget --quiet -O %o cdn.bethsoft.com/quake/dopa.rar |> dopa.rar
|
||||||
|
|
||||||
|
DOPA_FILES = \
|
||||||
|
config.cfg \
|
||||||
|
dopa_readme.txt \
|
||||||
|
pak0.pak \
|
||||||
|
|
||||||
|
: dopa.rar |> unrar x %f $(DOPA_FILES); tar cf %o $(DOPA_FILES); rm $(DOPA_FILES) |> $(RAW_DIR)/quake_dopa.tar
|
||||||
|
include &(RAW_RULES)
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
_/src/vfs \
|
||||||
|
@(PUBLIC_SRC_LIBC) \
|
||||||
|
_/src/tyrquake \
|
||||||
|
_/src/retro_frontend \
|
||||||
|
ehmry/raw/quake_shareware/1.06 \
|
||||||
|
_/raw/$(RAW_NAME) \
|
||||||
|
|
||||||
|
: runtime |> !collect_pkg_runtime |>
|
||||||
|
include &(PKG_RULES)
|
||||||
|
|
||||||
|
endif
|
35
libretro/games/quake_dopa/runtime
Normal file
35
libretro/games/quake_dopa/runtime
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
<runtime ram="64M" caps="256" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="quake_shareware.tar"/>
|
||||||
|
<rom label="quake_dopa.tar"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<vfs>
|
||||||
|
<tar name="quake_shareware.tar"/>
|
||||||
|
<dir name="dopa"> <tar name="quake_dopa.tar"/> </dir>
|
||||||
|
<fs/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<game path="dopa/pak0.pak"/>
|
||||||
|
<default-controller port="0" device="3"/>
|
||||||
|
<variables>
|
||||||
|
<variable key="tyrquake_resolution" value="960x600"/>
|
||||||
|
</variables>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
25
libretro/games/streemerz/Tupfile
Normal file
25
libretro/games/streemerz/Tupfile
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
ifndef CONFIG_NO_NETWORK
|
||||||
|
|
||||||
|
TARGET_NAME = streemerz
|
||||||
|
RAW_VERSION = 02
|
||||||
|
include_rules
|
||||||
|
|
||||||
|
: |> wget --quiet https://www.fauxgame.com/downloads/%o \
|
||||||
|
|> streemerz-v02.zip {zip}
|
||||||
|
|
||||||
|
: {zip} |> unzip %f \
|
||||||
|
README.txt streemerz-v02.nes -d $(RAW_DIR) \
|
||||||
|
|> $(RAW_DIR)/README.txt $(RAW_DIR)/streemerz-v02.nes {unzipped}
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
@(PUBLIC_SRC_VFS) \
|
||||||
|
@(PUBLIC_SRC_LIBC) \
|
||||||
|
_/src/fceumm \
|
||||||
|
_/src/retro_frontend \
|
||||||
|
_/raw/$(TARGET_NAME) \
|
||||||
|
|
||||||
|
: runtime |> !collect_pkg_runtime |>
|
||||||
|
|
||||||
|
include &(RAW_RULES)
|
||||||
|
|
||||||
|
endif
|
39
libretro/games/streemerz/runtime
Normal file
39
libretro/games/streemerz/runtime
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<runtime ram="16M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="streemerz-v02.nes"/>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<rom name="streemerz-v02.nes"/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
1
libretro/libretro-common
Submodule
1
libretro/libretro-common
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 7437ccc0fb92c8177a980b8b45e2a3e995f98f8c
|
1
libretro/retro_frontend
Submodule
1
libretro/retro_frontend
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 90e1d41b851cb812ab841344a21c4e61f5ff4232
|
BIN
libretro/tests/240pSuite-SNES/240pSuite-SNES-1.03.zip
Normal file
BIN
libretro/tests/240pSuite-SNES/240pSuite-SNES-1.03.zip
Normal file
Binary file not shown.
20
libretro/tests/240pSuite-SNES/Tupfile
Normal file
20
libretro/tests/240pSuite-SNES/Tupfile
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
TARGET_NAME = 240pSuite-SNES
|
||||||
|
RAW_VERSION = 1.03
|
||||||
|
include_rules
|
||||||
|
|
||||||
|
# Mirrored here, fuck sourceforge
|
||||||
|
: 240pSuite-SNES-$(RAW_VERSION).zip |> unzip %f \
|
||||||
|
240pSuite.sfc README.TXT \
|
||||||
|
-d $(RAW_DIR) \
|
||||||
|
|> $(RAW_DIR)/240pSuite.sfc $(RAW_DIR)/README.TXT {unzipped}
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
_/src/vfs \
|
||||||
|
@(PUBLIC_SRC_LIBC) \
|
||||||
|
@(PUBLIC_SRC_STDCXX) \
|
||||||
|
_/src/snes9x \
|
||||||
|
_/src/retro_frontend \
|
||||||
|
_/raw/$(TARGET_NAME) \
|
||||||
|
|
||||||
|
: runtime |> !collect_pkg_runtime |>
|
||||||
|
include &(RAW_RULES)
|
44
libretro/tests/240pSuite-SNES/runtime
Normal file
44
libretro/tests/240pSuite-SNES/runtime
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<runtime ram="32M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="240pSuite.sfc"/>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<rom name="240pSuite.sfc"/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
<map from="KEY_S" to="X"/>
|
||||||
|
<map from="KEY_A" to="Y"/>
|
||||||
|
<map from="KEY_Q" to="L"/>
|
||||||
|
<map from="KEY_W" to="R"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
BIN
libretro/tests/240pee-NES/240pee-0.08.2.zip
Normal file
BIN
libretro/tests/240pee-NES/240pee-0.08.2.zip
Normal file
Binary file not shown.
21
libretro/tests/240pee-NES/Tupfile
Normal file
21
libretro/tests/240pee-NES/Tupfile
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
TARGET_NAME = 240pee-NES
|
||||||
|
RAW_VERSION = 0.08.2
|
||||||
|
include_rules
|
||||||
|
|
||||||
|
# Mirrored here, fuck sourceforge
|
||||||
|
: 240pee-$(RAW_VERSION).zip |> unzip %f \
|
||||||
|
240pee.nes 240pee-bnrom.nes README.md \
|
||||||
|
-d $(RAW_DIR) \
|
||||||
|
|> $(RAW_DIR)/240pee.nes $(RAW_DIR)/240pee-bnrom.nes $(RAW_DIR)/README.md {unzipped}
|
||||||
|
|
||||||
|
PKG_DEPENDS += \
|
||||||
|
_/src/vfs \
|
||||||
|
@(PUBLIC_SRC_LIBC) \
|
||||||
|
_/src/fceumm \
|
||||||
|
_/src/retro_frontend \
|
||||||
|
_/raw/$(TARGET_NAME) \
|
||||||
|
|
||||||
|
: runtime |> !collect_pkg_runtime |>
|
||||||
|
|
||||||
|
include &(RAW_RULES)
|
||||||
|
include &(PKG_RULES)
|
39
libretro/tests/240pee-NES/runtime
Normal file
39
libretro/tests/240pee-NES/runtime
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<runtime ram="16M" caps="128" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<audio_out/>
|
||||||
|
<nitpicker/>
|
||||||
|
<rm/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="240pee.nes"/>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log"/>
|
||||||
|
<game/>
|
||||||
|
<vfs>
|
||||||
|
<rom name="240pee.nes"/>
|
||||||
|
<dir name="dev"> <log label="core"/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="1">
|
||||||
|
<map from="KEY_LEFT" to="LEFT"/>
|
||||||
|
<map from="KEY_RIGHT" to="RIGHT"/>
|
||||||
|
<map from="KEY_UP" to="UP"/>
|
||||||
|
<map from="KEY_DOWN" to="DOWN"/>
|
||||||
|
|
||||||
|
<map from="KEY_X" to="A"/>
|
||||||
|
<map from="KEY_Z" to="B"/>
|
||||||
|
|
||||||
|
<map from="KEY_ENTER" to="START"/>
|
||||||
|
<map from="KEY_RIGHTSHIFT" to="SELECT"/>
|
||||||
|
</default-controller>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
16
libretro/topbench/Tupfile
Normal file
16
libretro/topbench/Tupfile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
ifndef CONFIG_NO_NETWORK
|
||||||
|
|
||||||
|
TARGET_NAME = topbench
|
||||||
|
include_rules
|
||||||
|
|
||||||
|
: |> wget --quiet https://github.com/MobyGamer/TOPBENCH/releases/download/0.38.h/%o |> TOPBV38H.ZIP {zip}
|
||||||
|
|
||||||
|
: {zip} \
|
||||||
|
|> unzip -L %f -d tmp ; tar cf %o -C tmp . ; rm -r tmp \
|
||||||
|
|> $(DEPOT_RAW_DIR)/%d/@(DEPOT_VERSION)/TOPBV38H.tar {tar}
|
||||||
|
|
||||||
|
RAW_VERSION = 0.38.h
|
||||||
|
: {tar} |> !collect_raw |>
|
||||||
|
include &(RAW_RULES)
|
||||||
|
|
||||||
|
endif
|
3
libretro/topbench/Tuprules.tup
Normal file
3
libretro/topbench/Tuprules.tup
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
PKG_DEPENDS += ehmry/raw/topbench/0.38.h
|
||||||
|
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
|
||||||
|
: |> !pkg |>
|
3
libretro/topbench/dosbox-libretro/Tupfile
Normal file
3
libretro/topbench/dosbox-libretro/Tupfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TARGET_NAME = topbench_dosbox-libretro
|
||||||
|
PKG_DEPENDS += _/src/dosbox
|
||||||
|
include_rules
|
3
libretro/topbench/dosbox-svn/Tupfile
Normal file
3
libretro/topbench/dosbox-svn/Tupfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
TARGET_NAME = topbench_dosbox-svn
|
||||||
|
PKG_DEPENDS += _/src/dosbox_svn
|
||||||
|
include_rules
|
39
libretro/topbench/runtime
Normal file
39
libretro/topbench/runtime
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
<runtime ram="96M" caps="192" binary="retro_frontend">
|
||||||
|
|
||||||
|
<requires>
|
||||||
|
<file_system/>
|
||||||
|
<nitpicker/>
|
||||||
|
<report/>
|
||||||
|
<rtc/>
|
||||||
|
</requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libretro.so"/>
|
||||||
|
<rom label="retro_frontend"/>
|
||||||
|
<rom label="stdcxx.lib.so"/>
|
||||||
|
<rom label="TOPBV38H.tar"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config ld_verbose="yes">
|
||||||
|
<game path="/dosbox.conf"/>
|
||||||
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc"/>
|
||||||
|
<vfs>
|
||||||
|
<inline name="dosbox.conf">
|
||||||
|
[autoexec]
|
||||||
|
mount c /drive_c
|
||||||
|
c:
|
||||||
|
TOPBENCH.EXE
|
||||||
|
</inline>
|
||||||
|
<dir name="drive_c">
|
||||||
|
<tar name="TOPBV38H.tar"/>
|
||||||
|
<fs/>
|
||||||
|
</dir>
|
||||||
|
<dir name="dev"> <log label="core"/> <rtc/> </dir>
|
||||||
|
</vfs>
|
||||||
|
<default-controller port="0" device="771"/>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
|
@ -1,31 +0,0 @@
|
||||||
ifeq (@(TUP_ARCH),x86_64)
|
|
||||||
DEPOT_ARCH = x86_64
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(DEPOT_ARCH),)
|
|
||||||
error unhandled TUP_ARCH @(TUP_ARCH)
|
|
||||||
endif
|
|
||||||
|
|
||||||
include_rules
|
|
||||||
|
|
||||||
: $(DEPOT_DIR)/<raw-archives> |> \
|
|
||||||
awk -F '/' 'BEGIN { print "{=}"} {print "∧{"$3"={version=\""$4"\",owner=\"@(PUBLIC_USER)\"}}" }' $f \
|
|
||||||
<<< %<raw-archives> | dhall > %o\
|
|
||||||
|> raw.dhall {records}
|
|
||||||
|
|
||||||
: $(DEPOT_DIR)/<bin-archives> |> \
|
|
||||||
awk -F '/' 'BEGIN { print "{=}"} {print "∧{"$3"={version=\""$4"\",owner=\"@(PUBLIC_USER)\"}}" }' $f <<< %<bin-archives> \
|
|
||||||
| dhall > %o\
|
|
||||||
|> bin.dhall {records}
|
|
||||||
|
|
||||||
SHORT_SUM = b2sum -l24
|
|
||||||
|
|
||||||
: $(DEPOT_DIR)/<pkg> |> \
|
|
||||||
echo '{=}' > %o; \
|
|
||||||
for d in `dirname %<pkg> | tr ' ' '\n' | sort -u`; do \
|
|
||||||
echo $d/`cat $d/.ARCHIVES $d/runtime | $(SHORT_SUM)` | awk -F '/' \
|
|
||||||
'{print "∧{"$4"={version=\""substr($6,0,6)"\",owner=\"@(PUBLIC_USER)\"}}"}' >> %o; \
|
|
||||||
done \
|
|
||||||
|> pkg.dhall {records}
|
|
||||||
|
|
||||||
: | {records} |> !dhall <<< '{bin = { $(DEPOT_ARCH) = ./bin.dhall }, pkg = ./pkg.dhall, raw = ./raw.dhall }' > %o |> $(DEPOT_MANIFEST) $(PUBLIC_DIR)/<manifest>
|
|
|
@ -1 +0,0 @@
|
||||||
{ bin = { x86_64 = { ram_block = "2019-02-25" } } }
|
|
|
@ -1,69 +0,0 @@
|
||||||
{ bin =
|
|
||||||
{ x86_64 =
|
|
||||||
{ block_shred =
|
|
||||||
"2019-03-31"
|
|
||||||
, libcrypto =
|
|
||||||
"2019-05-24"
|
|
||||||
, libmpg123 =
|
|
||||||
"2019-05-24"
|
|
||||||
, libpng =
|
|
||||||
"2019-05-24"
|
|
||||||
, libssh =
|
|
||||||
"2019-05-24"
|
|
||||||
, libssl =
|
|
||||||
"2019-05-24"
|
|
||||||
, menu_view =
|
|
||||||
"2019-05-24"
|
|
||||||
, mesa =
|
|
||||||
"2019-05-24"
|
|
||||||
, decorator =
|
|
||||||
"2019-05-24"
|
|
||||||
, mp3_audio_sink =
|
|
||||||
"2019-05-24"
|
|
||||||
, nic_bridge =
|
|
||||||
"2019-05-24"
|
|
||||||
, nit_fb =
|
|
||||||
"2019-05-24"
|
|
||||||
, noux =
|
|
||||||
"2019-05-24"
|
|
||||||
, ncurses =
|
|
||||||
"2019-05-24"
|
|
||||||
, rom_block =
|
|
||||||
"2019-04-05-a"
|
|
||||||
, sdl =
|
|
||||||
"2019-05-24"
|
|
||||||
, seoul-nova =
|
|
||||||
"2019-05-01-a"
|
|
||||||
, show_input =
|
|
||||||
"2019-05-24"
|
|
||||||
, ssh_client =
|
|
||||||
"2019-05-24"
|
|
||||||
, terminal =
|
|
||||||
"2019-05-24-a"
|
|
||||||
, vfs_audit =
|
|
||||||
"2019-04-20"
|
|
||||||
, vfs_jitterentropy =
|
|
||||||
"2019-05-24"
|
|
||||||
, vfs_lwip =
|
|
||||||
"2019-05-24"
|
|
||||||
, vfs_lxip =
|
|
||||||
"2019-05-24"
|
|
||||||
, window_layouter =
|
|
||||||
"2019-05-24"
|
|
||||||
, wm =
|
|
||||||
"2019-05-24"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
, pkg =
|
|
||||||
{ audio_player =
|
|
||||||
"2019-05-15"
|
|
||||||
, avplay =
|
|
||||||
"2019-04-24"
|
|
||||||
, backdrop =
|
|
||||||
"2019-05-24"
|
|
||||||
, noux-system =
|
|
||||||
"2019-05-24"
|
|
||||||
, pdf_view =
|
|
||||||
"2019-05-17"
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,15 +0,0 @@
|
||||||
{ bin =
|
|
||||||
{ x86_64 =
|
|
||||||
{ base-nova =
|
|
||||||
"2019-05-26"
|
|
||||||
, libiconv =
|
|
||||||
"2019-05-26"
|
|
||||||
, stdcxx =
|
|
||||||
"2019-05-27"
|
|
||||||
, vbox5-nova =
|
|
||||||
"2019-05-28"
|
|
||||||
, zlib =
|
|
||||||
"2019-05-26"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,5 +0,0 @@
|
||||||
{ bin =
|
|
||||||
{ x86_64 =
|
|
||||||
{ expat = "2019-02-19", libc = "2019-06-24", vfs_ttf = "2019-06-20" }
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -11,7 +11,7 @@ API_LINK = port-api
|
||||||
: $(API_LINK) |> cp %f/pkg-config/%d.pc %o \
|
: $(API_LINK) |> cp %f/pkg-config/%d.pc %o \
|
||||||
|> $(PKG_CONFIG_DIR)/%d.pc $(GENODE_DIR)/<pkg-config>
|
|> $(PKG_CONFIG_DIR)/%d.pc $(GENODE_DIR)/<pkg-config>
|
||||||
|
|
||||||
: libmpg123.symbols |> !abi_stub |>
|
: mpg123.symbols |> !abi_stub |>
|
||||||
|
|
||||||
INCLUDES += -I.
|
INCLUDES += -I.
|
||||||
INCLUDES += -I$(SOURCE_LINK)/src/libmpg123
|
INCLUDES += -I$(SOURCE_LINK)/src/libmpg123
|
||||||
|
@ -29,7 +29,7 @@ ifeq (@(TUP_ARCH),arm)
|
||||||
run ./port_rules.sh $(SOURCE_LINK) common.files arm.files
|
run ./port_rules.sh $(SOURCE_LINK) common.files arm.files
|
||||||
endif
|
endif
|
||||||
|
|
||||||
: {obj} |> !lib |> libmpg123.lib.so {bin}
|
: {obj} |> !lib |> %d.lib.so {bin}
|
||||||
: {bin} |> !collect_bin |>
|
: {bin} |> !collect_bin |>
|
||||||
|
|
||||||
include &(BIN_RULES)
|
include &(BIN_RULES)
|
||||||
|
|
|
@ -20,7 +20,7 @@ preparePort rec {
|
||||||
sed \
|
sed \
|
||||||
-e "s|@includedir@|$api/include|" \
|
-e "s|@includedir@|$api/include|" \
|
||||||
-e 's/@PACKAGE_VERSION@/${(builtins.parseDrvName name).version}/' \
|
-e 's/@PACKAGE_VERSION@/${(builtins.parseDrvName name).version}/' \
|
||||||
-e 's/^Libs:.*/Libs: -l:libmpg123.lib.so/' \
|
-e 's/^Libs:.*/Libs: -l:mpg123.lib.so/' \
|
||||||
-e '/@/d' \
|
-e '/@/d' \
|
||||||
< libmpg123.pc.in > $api/pkg-config/mpg123.pc
|
< libmpg123.pc.in > $api/pkg-config/mpg123.pc
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -1,16 +1,13 @@
|
||||||
TARGET_NAME = backdrop
|
TARGET_NAME = backdrop
|
||||||
|
|
||||||
PKG_DEPENDS += \
|
PKG_DEPENDS += \
|
||||||
@(PUBLIC_PKG_BACKDROP) \
|
$(PUBLIC_PKG_BACKDROP) \
|
||||||
_/raw/backdrop \
|
_/raw/backdrop \
|
||||||
|
|
||||||
include_rules
|
include_rules
|
||||||
|
|
||||||
: backdrop.png |> !collect_raw |>
|
: backdrop.png |> !collect_raw |>
|
||||||
|
: runtime |> !collect_pkg_runtime |>
|
||||||
: ./pkg.dhall |> !render_runtime |>
|
|
||||||
|
|
||||||
include &(RAW_RULES)
|
include &(RAW_RULES)
|
||||||
include &(PKG_RULES)
|
include &(PKG_RULES)
|
||||||
|
|
||||||
: ./pkg.dhall |> !index_pkg |>
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
let Genode = env:DHALL_GENODE
|
|
||||||
|
|
||||||
let XML = Genode.Prelude.XML
|
|
||||||
|
|
||||||
let service = λ(s : Text) → { service = s, label = None Text }
|
|
||||||
|
|
||||||
in { indexInfo =
|
|
||||||
"Desktop backdrop image"
|
|
||||||
, runtime =
|
|
||||||
Genode.Runtime.defaults
|
|
||||||
⫽ { resources =
|
|
||||||
{ ram = Genode.units.MiB 8, caps = 96 }
|
|
||||||
, binary =
|
|
||||||
"backdrop"
|
|
||||||
, requires =
|
|
||||||
[ service "nitpicker" ]
|
|
||||||
, roms =
|
|
||||||
[ "backdrop"
|
|
||||||
, "backdrop.png"
|
|
||||||
, "libc.lib.so"
|
|
||||||
, "libm.lib.so"
|
|
||||||
, "libpng.lib.so"
|
|
||||||
, "vfs.lib.so"
|
|
||||||
, "zlib.lib.so"
|
|
||||||
]
|
|
||||||
, config =
|
|
||||||
XML.text
|
|
||||||
''
|
|
||||||
<config>
|
|
||||||
<libc/>
|
|
||||||
<vfs> <rom name="backdrop.png"/> </vfs>
|
|
||||||
<image png="backdrop.png" scale="zoom"/>
|
|
||||||
</config>
|
|
||||||
''
|
|
||||||
}
|
|
||||||
}
|
|
21
runtimes/backdrop/runtime
Normal file
21
runtimes/backdrop/runtime
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
<runtime ram="64M" caps="300" binary="backdrop" >
|
||||||
|
|
||||||
|
<requires> <nitpicker/> </requires>
|
||||||
|
|
||||||
|
<content>
|
||||||
|
<rom label="backdrop"/>
|
||||||
|
<rom label="backdrop.png"/>
|
||||||
|
<rom label="libc.lib.so"/>
|
||||||
|
<rom label="libm.lib.so"/>
|
||||||
|
<rom label="libpng.lib.so"/>
|
||||||
|
<rom label="vfs.lib.so"/>
|
||||||
|
<rom label="zlib.lib.so"/>
|
||||||
|
</content>
|
||||||
|
|
||||||
|
<config>
|
||||||
|
<libc/>
|
||||||
|
<vfs> <rom name="backdrop.png"/> </vfs>
|
||||||
|
<image png="backdrop.png" scale="zoom"/>
|
||||||
|
</config>
|
||||||
|
|
||||||
|
</runtime>
|
|
@ -1,4 +1,4 @@
|
||||||
TARGET_NAME = ban_ai_multics
|
TARGET_NAME = ban.ai_multics
|
||||||
|
|
||||||
PKG_DEPENDS += \
|
PKG_DEPENDS += \
|
||||||
@(PUBLIC_SRC_VFS) \
|
@(PUBLIC_SRC_VFS) \
|
|
@ -10,5 +10,3 @@ include_rules
|
||||||
|
|
||||||
: runtime |> !collect_pkg_runtime |>
|
: runtime |> !collect_pkg_runtime |>
|
||||||
: |> !pkg |>
|
: |> !pkg |>
|
||||||
|
|
||||||
: ./pkg.dhall |> !index_pkg |>
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user