WiP! public makefiles

This commit is contained in:
Ehmry - 2019-03-24 20:04:00 +01:00
parent dd258c6567
commit 1d8f8925eb
56 changed files with 430 additions and 516 deletions

65
Tupfile
View File

@ -4,41 +4,60 @@ ifndef SCULPT_VERSION
error CONFIG_SCULPT_VERSION is undefined
endif
: $(DEPOT_DIR)/<bin-archives> $(DEPOT_DIR)/<raw> |> \
SHORT_SUM = b2sum -l24
: $(DEPOT_DIR)/<raw-archives> $(DEPOT_DIR)/<bin-archives> |> \
for f in %<raw-archives> %<bin-archives>; do \
awk -F '/' '{print "s|local/"$2"/"$3"|@(PUBLIC_USER)/"$2"/"$3"/"$4"|"}' $f >> %o; done; \
|> $(VERSIONS_SED_FILE)
# Generate a listing of all raw archives
: $(DEPOT_DIR)/<raw-archives> |> \
for f in %<raw-archives>; do cat $f >> %o; done; \
|> $(RAW_LISTING)
# Generate a listing of all raw archives
: $(DEPOT_DIR)/<bin-archives> |> \
for f in %<bin-archives>; do tail -n1 $f >> %o; done; \
for f in %<raw>; do echo $f | awk -F / '{print "local/raw/"$4"/"$5}' - >> %o; done; \
|> $(BIN_LISTING)
# Generate a listing of all binary archives
: $(DEPOT_DIR)/<pkg> |> \
: $(DEPOT_DIR)/<pkg-archives> |> \
$(SHORT_SUM) %<pkg-archives> | awk -F '/' \
'/_ARCHIVES/ {print "s|_/pkg/"$4"/current|@(PUBLIC_USER)/pkg/"$4"/"substr($0,0,6)"|"}' > %o; \
|> $(PKG_SED_FILE)
# Generate sed commands for replacing package versions
: index.xml | pkg.sed |> sed -f pkg.sed %f | xz > %o \
|> public/@(PUBLIC_USER)/index/@(SCULPT_VERSION).xz
: $(DEPOT_DIR)/<raw-archives> $(DEPOT_DIR)/<bin-archives> $(DEPOT_DIR)/<pkg-archives> |> \
echo PUBLIC_USER=@(PUBLIC_USER) >> %o; \
echo PUBLIC_KEY=@(PUBLIC_KEY) >> %o; \
for f in %<pkg>; \
do \
b2sum -l 24 $f | awk -f errata/pkg.mk.awk >> %o; \
done; \
echo PUBLIC_ARCH=@(TUP_ARCH) >> %o; \
echo "all: public/@(PUBLIC_USER)/index/@(SCULPT_VERSION).xz.sig" >> %o; \
echo %%.xz.sig: %%.xz >> %o; \
echo " @echo sign \$<" >> %o; \
echo " @gpg --detach-sign --digest-algo SHA256 --no-tty --local-user @(PUBLIC_KEY) < \$< > tmp" >> %o; \
echo " @mv tmp \$@" >> %o; \
for f in %<raw-archives>; do \
awk -F '/' -f errata/raw.mk.awk $f >> %o; done; \
for f in %<bin-archives>; do \
awk -F '/' -f errata/bin.mk.awk $f >> %o; done; \
$(SHORT_SUM) %<pkg-archives> | awk -f errata/pkg.mk.awk >> %o; \
|> Makefile
# Generate the makefile for creating signed tarballs
# Generate the makefile for creating signed package tarballs
DEPOT_INDEX_FILE = $(DEPOT_DIR)/index/@(SCULPT_VERSION)
PUBLIC_INDEX_FILE = $(PUBLIC_DIR)/index/@(SCULPT_VERSION)
AWK_RUNTIME_PATH = awk -v RS=' ' -F '/' \
'{print " <pkg path=\"local/pkg/"$4"/current\"/>"}'
ifneq (@(DEPOT_USER),local)
: index.xml |> tup varsed %f - | xmllint - > %o |> $(DEPOT_INDEX_FILE) {index}
else
: $(DEPOT_DIR)/<runtime> $(DEPOT_DIR)/<libretro-runtimes> |> ^ generate index^ \
echo '<index>' > %o; \
echo ' <index name="Libretro">' >> %o; \
echo %<libretro-runtimes> | tr ' ' '\n' | sort |\
sed \
-e 's|depot/| <pkg path="|' \
-e 's|runtime|"/>|' \
- >> %o; \
echo %<libretro-runtimes> | $(AWK_RUNTIME_PATH) >> %o; \
echo ' </index>' >> %o; \
echo %<runtime> | tr ' ' '\n' | sort |\
sed \
-e 's|depot/| <pkg path="|' \
-e 's|runtime|"/>|' \
- >> %o; \
echo %<runtime> | $(AWK_RUNTIME_PATH) >> %o; \
echo '</index>' >> %o |> $(DEPOT_INDEX_FILE) {index}
endif
# Generate the depot index file

View File

@ -1,88 +1,61 @@
.gitignore
!raw = |> ^ COLLECT %o^ \
echo $(RAW_DEPENDS) local/raw/%d/$(raw_VERSION) | tr ' ' '\n' > %o; \
echo local/raw/%d/$(RAW_VERSION) > %o \
|> $(DEPOT_RAW_DIR)/%d/current/_ARCHIVES $(DEPOT_DIR)/<raw-archives>
!bin = |> ^ COLLECT %o^ \
echo $(BIN_DEPENDS) local/src/%d/$(BIN_VERSION) | tr ' ' '\n' > %o; \
|> $(DEPOT_BIN_DIR)/%d/current/_ARCHIVES $(DEPOT_DIR)/<bin-archives>
AWK_LOCAL_ARCHIVES = awk -F '/' \
'{if ($1 != "local") {print $0} \
else {print $1"/"$2"/"$3"/current"}}'
!pkg = | $(VERSIONS_SED_FILE) |> ^ GENERATE %o^ \
echo $(PKG_DEPENDS) | tr ' ' '\n' \
> $(DEPOT_PKG_DIR)/%d/current/archives; \
sed -f $(VERSIONS_SED_FILE) $(DEPOT_PKG_DIR)/%d/current/archives \
> $(DEPOT_PKG_DIR)/%d/current/_ARCHIVES; \
|> $(DEPOT_PKG_DIR)/%d/current/archives $(DEPOT_PKG_DIR)/%d/current/_ARCHIVES \
$(DEPOT_DIR)/<pkg-archives>
# Generate depot/local/pkg/.../current/[archives|_ARCHIVES]
!collect_raw = |> ^ COLLECT %o^ \
cp %f %o \
|> $(DEPOT_RAW_DIR)/%d/current/%b
!collect_bin = |> ^ COLLECT %o^ \
strip -o %o %f \
|> $(DEPOT_BIN_DIR)/%d/current/%b
!collect_pkg_runtime = |> ^ VALIDATE %o^ \
xmllint -schema $(ERRATA_DIR)/runtime.xsd %f > %o \
|> $(DEPOT_PKG_DIR)/%d/current/runtime $(DEPOT_DIR)/<runtime>
!collect_pkg = |> ^ COLLECT %o^ cp %f %o \
|> $(DEPOT_PKG_DIR)/%d/current/%b
VERSIONS_SED_FILE = $(TUP_CWD)/versions.sed
PKG_SED_FILE = $(TUP_CWD)/pkg.sed
RAW_LISTING = $(TUP_CWD)/raw-list
BIN_LISTING = $(TUP_CWD)/bin-list
PKG_LISTING = $(TUP_CWD)/pkg-list
!collect_pkg_archives = |> ^ COLLECT pkg/%d/archives^ cp %f %o \
|> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/archives $(DEPOT_DIR)/<pkg>
!collect_pkg_runtime = |> ^ COLLECT pkg/%d/runtime^ cp %f %o \
|> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/runtime $(DEPOT_DIR)/<runtime>
SDK_INCLUDE = $(TUP_CWD)/sdk.tup
export PKG_CONFIG_PATH
PKG_CONFIG = PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(SDK_DIR)/pkgconfig pkg-config
ifndef DEPOT_USER
error CONFIG_DEPOT_USER is undefined
endif
ifndef DEPOT_VERSION
error CONFIG_DEPOT_VERSION is undefined
endif
BIN_VERSION=current
PKG_VERSION=current
RAW_VERSION=current
DEPOT_DIR = $(TUP_CWD)/depot/@(DEPOT_USER)
PUBLIC_DIR = $(TUP_CWD)/public/@(DEPOT_USER)
DEPOT_BIN_DIR = $(DEPOT_DIR)/bin/x86_64
PUBLIC_BIN_DIR = $(PUBLIC_DIR)/bin/x86_64
DEPOT_DIR = $(TUP_CWD)/depot/local
DEPOT_RAW_DIR = $(DEPOT_DIR)/raw
DEPOT_BIN_DIR = $(DEPOT_DIR)/bin/@(TUP_ARCH)
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
DEPOT_RAW_DIR = $(DEPOT_DIR)/raw
PUBLIC_RAW_DIR = $(PUBLIC_DIR)/raw
!strip_to_depot = |> ^ strip bin/%d^ strip -o %o %f |> $(DEPOT_BIN_DIR)/%d/@(DEPOT_VERSION)/%b
ERRATA_DIR = $(TUP_CWD)/errata
!archives_to_depot = |> |>
#!archives_to_depot = |> ^ varse %d archives^ tup varsed %f %o |> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/archives
!runtime_to_depot = |> |>
#!runtime_to_depot = |> ^ validate %d runtime^ \
xmllint -schema $(ERRATA_DIR)/runtime.xsd --noout %f ; cp %f %o \
|> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/runtime
!pkg_extra_to_depot = |> ^ CP %o^ cp %f %o |> $(DEPOT_PKG_DIR)/%d/@(DEPOT_VERSION)/%b
!raw_to_depot = |> ^ raw/%d/%b^ cp -r %f %o |> $(DEPOT_RAW_DIR)/%d/@(DEPOT_VERSION)/%b
ifndef DEPOT_KEY
!publish_bin = |> |>
!publish_raw = |> |>
!publish_pkg = |> |>
else
SIGN_CMD = gpg --detach-sign --digest-algo SHA256 --no-tty --local-user @(DEPOT_KEY)
!publish_bin = |> ^o publish %d binary^ \
tar cfJ %o -C $(DEPOT_BIN_DIR)/%d . ; $(SIGN_CMD) < %o > %o.sig \
|> $(PUBLIC_BIN_DIR)/%d/@(DEPOT_VERSION).tar.xz \
| $(PUBLIC_BIN_DIR)/%d/@(DEPOT_VERSION).tar.xz.sig
!publish_raw = |> ^o publish %d raw^ \
tar cfJ %o -C $(DEPOT_RAW_DIR)/%d . ; $(SIGN_CMD) < %o > %o.sig \
|> $(PUBLIC_RAW_DIR)/%d/@(DEPOT_VERSION).tar.xz \
| $(PUBLIC_RAW_DIR)/%d/@(DEPOT_VERSION).tar.xz.sig
!publish_pkg = |> ^o publish %d package^ \
tar cfJ %o -C $(DEPOT_PKG_DIR)/%d . ; $(SIGN_CMD) < %o > %o.sig \
|> $(PUBLIC_PKG_DIR)/%d/@(DEPOT_VERSION).tar.xz \
| $(PUBLIC_PKG_DIR)/%d/@(DEPOT_VERSION).tar.xz.sig
!public_signature = |> ^ sign %b^ $(SIGN_CMD) < %f > %o |> %f.sig
endif
CC = @(CC_WRAPPER) `pkg-config genode-base --variable cc`
CXX = @(CXX_WRAPPER) `pkg-config genode-base --variable cxx`
LD = `pkg-config genode-base --variable ld`
@ -90,3 +63,11 @@ AR = `pkg-config genode-base --variable ar`
!cc = |> ^ CC %f^ $(CC) $(DEFINES) $(CXXFLAGS) $(CXXFLAGS_%e) $(CXXFLAGS_%f) -c %f -o %o |>
!ld = |> ^ LD %o^ $(LD) $(LDFLAGS) %f -o %o |>
export PKG_CONFIG_PATH
PKG_CONFIG = PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$(SDK_DIR)/pkgconfig pkg-config
GIT_VERSION=`git describe --always`
BIN_VERSION=$(GIT_VERSION)
PKG_VERSION=$(GIT_VERSION)
RAW_VERSION=$(GIT_VERSION)

View File

@ -1,16 +1,16 @@
CONFIG_TUP_ARCH=@x86_64@
CONFIG_TUP_ARCH=x86_64
CONFIG_SCULPT_VERSION=19.02
CONFIG_SDK_USER=ehmry
CONFIG_SDK_VERSION=19.02
CONFIG_UPSTREAM_USER=ehmry
CONFIG_UPSTREAM_VERSION=19.02
CONFIG_DEPOT_USER=local
CONFIG_DEPOT_VERSION=current
#CONFIG_DEPOT_KEY=6E10414EE7160781F5FEE8FFB14D043A26B3D2C7
CONFIG_PUBLIC_USER=ehmry
CONFIG_PUBLIC_KEY=6E10414EE7160781F5FEE8FFB14D043A26B3D2C7
CONFIG_PUBLIC_SRC_MESA=nfeske/src/mesa/2019-02-19
CONFIG_PUBLIC_SRC_EXPAT=nfeske/src/expat/2019-02-19
CONFIG_PUBLIC_SRC_LWIP=ehmry/src/vfs_lwip/2019-03-22
CONFIG_NO_NETWORK=

12
errata/bin.mk.awk Normal file
View File

@ -0,0 +1,12 @@
{ if ($1 == "local") {
{ tar="public/$(PUBLIC_USER)/bin/$(PUBLIC_ARCH)/"$3"/"$4".tar.xz" }
{ print "all: " tar ".sig" }
{ print tar": "FILENAME }
{ print " @echo tar $@" }
{ print " @mkdir -p $(dir $@)" }
{ print " @tar cfJ $@ --exclude=_ARCHIVES --transform=\"s|^\\.|"$4"|\" -C $(dir $<) ." }
}}

View File

@ -1,15 +1,20 @@
{ split($2,a,"/") }
{ if (a[6] == "_ARCHIVES") {
{ src=a[1]"/"a[2]"/"a[3]"/"a[4]"/"a[5] }
{ tar="public/$(PUBLIC_USER)/pkg/"a[4]"/"$1".tar.xz" }
{ sig=tar".sig" }
{ print sig": "tar}
{ print " gpg --detach-sign --digest-algo SHA256 --no-tty --local-user $(PUBLIC_KEY) < $< > tmp" }
{ print " mv tmp $@" }
{ print "all: " tar ".sig" }
{ print tar": "$2 }
{ print " mkdir -p $(dir $@) "$1 }
{ print " cp "src"/* "$1 }
{ print " sed 's|^local/|$(PUBLIC_USER)/|' "src"/archives > "$1"/archives" }
{ print " tar cfj $@ "$1 }
{ print " rm -r " $1 }
{ print tar": "$2" pkg.sed" }
{ print " @echo tar $@" }
{ print " @mkdir -p "$1 }
{ print " @sed -e 's|^local/|$(PUBLIC_USER)/|' -f pkg.sed $< > "$1"/archives" }
{ print " @cp $(dir $<)/runtime "$1 }
{ print " @mkdir -p $(dir $@)" }
{ print " @tar cfJ $@ "$1 }
{ print " @rm -r "$1 }
}}

8
errata/raw.mk.awk Normal file
View File

@ -0,0 +1,8 @@
{ tar="public/$(PUBLIC_USER)/raw/"$3"/"$4".tar.xz" }
{ print "all: " tar ".sig" }
{ print tar": "FILENAME }
{ print " @echo tar $@" }
{ print " @mkdir -p $(dir $@)" }
{ print " @tar cfJ $@ --exclude=_ARCHIVES --transform=\"s|^\\.|"$4"|\" -C $(dir $<) ." }

View File

@ -1,63 +1,63 @@
<index>
<index name="Emulators and game engines">
<pkg path="@DEPOT_USER@/pkg/fceumm/@DEPOT_VERSION@" info="NES"/>
<pkg path="@DEPOT_USER@/pkg/gambatte/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/mgba/@DEPOT_VERSION@" info="GBA"/>
<pkg path="@DEPOT_USER@/pkg/nxengine/@DEPOT_VERSION@" info="Cave Story engine without game data"/>
<pkg path="@DEPOT_USER@/pkg/snes9x/@DEPOT_VERSION@" info="SNES"/>
<pkg path="@DEPOT_USER@/pkg/advanced_tests/@DEPOT_VERSION@" info="Libretro tests"/>
<pkg path="@DEPOT_USER@/pkg/dosbox/@DEPOT_VERSION@" info="Experimental Libretro port of DOSBox"/>
<pkg path="_/pkg/fceumm" info="NES"/>
<pkg path="_/pkg/gambatte"/>
<pkg path="_/pkg/mgba" info="GBA"/>
<pkg path="_/pkg/nxengine" info="Cave Story engine without game data"/>
<pkg path="_/pkg/snes9x" info="SNES"/>
<pkg path="_/pkg/advanced_tests" info="Libretro tests"/>
<pkg path="_/pkg/dosbox" info="Experimental Libretro port of DOSBox"/>
<index name="Tests">
<pkg path="@DEPOT_USER@/pkg/advanced_tests/@DEPOT_VERSION@" info="Libretro test utility"/>
<pkg path="@DEPOT_USER@/pkg/button_test/@DEPOT_VERSION@" info="Libretro joypad button test"/>
<pkg path="@DEPOT_USER@/pkg/topbench/@DEPOT_VERSION@" info="The Oldskool PC Benchmark running in DOSBox"/>
<pkg path="_/pkg/advanced_tests" info="Libretro test utility"/>
<pkg path="_/pkg/button_test" info="Libretro joypad button test"/>
<pkg path="_/pkg/topbench" info="The Oldskool PC Benchmark running in DOSBox"/>
</index>
</index>
<index name="Games">
<pkg path="@DEPOT_USER@/pkg/2048/@DEPOT_VERSION@" info="Threes! clone"/>
<pkg path="@DEPOT_USER@/pkg/abuse/@DEPOT_VERSION@" info="Side-scrolling shooter"/>
<pkg path="@DEPOT_USER@/pkg/cave_story-en/@DEPOT_VERSION@" info="Cave Story ~ Doukutsu Monogatari is a jumping-and-shooting action game."/>
<pkg path="@UPSTREAM_USER@/pkg/mrboom/@DEPOT_VERSION@" info="Bomberman clone"/>
<pkg path="@DEPOT_USER@/pkg/tyrquake/@DEPOT_VERSION@" info="Tyrquake"/>
<pkg path="_/pkg/2048" info="Threes! clone"/>
<pkg path="ehmry/pkg/abuse/2019-03-20" 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/tyrquake" info="Tyrquake"/>
</index>
<!--
<index name="VM downloaders">
<pkg path="@DEPOT_USER@/pkg/fetch-nixos/@DEPOT_VERSION@" info="Download and prepare a NixOS VM"/>
<pkg path="_/pkg/fetch-nixos" info="Download and prepare a NixOS VM"/>
</index>
-->
<index name="Operating system demos">
<pkg path="@DEPOT_USER@/pkg/oberon/@DEPOT_VERSION@" info="Oberon RISC emulator (requires three-button mouse)"/>
<pkg path="@DEPOT_USER@/pkg/soyuz/@DEPOT_VERSION@" info="Training program for the Soyuz-TMA spacecraft"/>
<pkg path="@DEPOT_USER@/pkg/templeos/@DEPOT_VERSION@" info="The Temple Operating System hosted in VirtualBox for NOVA"/>
<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="Utilities">
<!-- <pkg path="@DEPOT_USER@/pkg/flif_capture/2019-03-22" info="Screen capture utility"/> -->
<pkg path="ehmry/pkg/depot_9P/@DEPOT_VERSION@" info="Serve /depot/local over 9P"/>
<pkg path="@DEPOT_USER@/pkg/flif_view/2019-03-22" info="FLIF file viewer"/>
<pkg path="@UPSTREAM_USER@/pkg/grafx2/2019-03-19" info="Bitmap paint program (ported by cnuke)"/>
<!-- <pkg path="ehmry/pkg/flif_capture/2019-03-22" info="Screen capture utility"/> -->
<pkg path="_/pkg/depot_9P" info="Serve /depot/local over 9P"/>
<pkg path="ehmry/pkg/flif_view/2019-03-22" info="FLIF file viewer"/>
<pkg path="ehmry/pkg/grafx2/2019-03-19" info="Bitmap paint program (ported by cnuke)"/>
<pkg path="ehmry/pkg/noux-build-x86/2019-03-20" info="Noux build environment"/>
<pkg path="ehmry/pkg/jitter_sponge/2019-03-29" info="Entropy source"/>
<pkg path="_/pkg/ssh_client" info="Entropy source"/>
</index>
<index name="Experimental">
<pkg path="@DEPOT_USER@/pkg/4do/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/advanced_tests/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/blobsets_fs/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/blobsets_http/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/bluemsx/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/dosbox/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/flif_capture/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/flif_view/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/ifm1/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/ifm2/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/ifm3/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/monero_vanity/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/musicbrainz_playlist_generator/@DEPOT_VERSION@"/>
<pkg path="@DEPOT_USER@/pkg/ninep/@DEPOT_VERSION@"/>
<pkg path="_/pkg/4do"/>
<pkg path="_/pkg/advanced_tests"/>
<pkg path="_/pkg/blobsets_fs"/>
<pkg path="_/pkg/blobsets_http"/>
<pkg path="_/pkg/bluemsx"/>
<pkg path="_/pkg/dosbox"/>
<pkg path="_/pkg/ifm1"/>
<pkg path="_/pkg/ifm2"/>
<pkg path="_/pkg/ifm3"/>
<pkg path="_/pkg/monero_vanity"/>
<pkg path="_/pkg/musicbrainz_playlist_generator"/>
<pkg path="_/pkg/ninep"/>
</index>
</index>

View File

@ -7,10 +7,8 @@ include upstream/Makefile.common
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,3 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -1,7 +1,5 @@
CORE_PKGS += libc
GIT_VERSION = `git describe --always`
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
DEFINES += -O2 -DNDEBUG
DEFINES += \
-Wall \
@ -20,10 +18,8 @@ CFLAGS += $(FLAGS)
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,3 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -1,3 +1,44 @@
DEPOT_NAME = $(TARGET_NAME)
!raw = |> ^ COLLECT %o^ \
echo local/raw/$(TARGET_NAME)/$(RAW_VERSION) > %o \
|> $(DEPOT_RAW_DIR)/$(DEPOT_NAME)/current/_ARCHIVES $(DEPOT_DIR)/<raw-archives>
!bin = |> ^ COLLECT %o^ \
echo $(REMOTE_DEPENDS) local/src/libretro-$(DEPOT_NAME)/$(BIN_VERSION) | tr ' ' '\n' > %o; \
|> $(DEPOT_BIN_DIR)/libretro-$(DEPOT_NAME)/current/_ARCHIVES $(DEPOT_DIR)/<bin-archives>
!pkg = | $(VERSIONS_SED_FILE) |> ^ GENERATE %o^ \
echo $(PKG_DEPENDS) | tr ' ' '\n' \
> $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/archives; \
sed -f $(VERSIONS_SED_FILE) $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/archives \
> $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/_ARCHIVES; \
! grep ^local/ $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/_ARCHIVES; \
|> $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/archives $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/_ARCHIVES \
$(DEPOT_DIR)/<pkg-archives>
# Generate depot/local/pkg/.../current/[archives|_ARCHIVES]
PKG_DEPENDS += \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
local/src/libretro-$(DEPOT_NAME) \
local/src/retro_frontend \
# Implicit dependencies
!collect_raw = |> ^ COLLECT %o^ \
cp %f %o \
|> $(DEPOT_RAW_DIR)/$(DEPOT_NAME)/current/%b
!collect_bin = |> ^ COLLECT %o^ \
strip -o %o %f \
|> $(DEPOT_BIN_DIR)/libretro-$(DEPOT_NAME)/current/%b
!collect_runtime = |> ^ VALIDATE %o^ \
xmllint -schema $(ERRATA_DIR)/runtime.xsd %f > %o \
|> $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/runtime \
$(DEPOT_DIR)/<libretro-runtimes>
!libretro_cc = |> ^ CC %f^ \
$(CC) \
$(DEFINES) \
@ -11,7 +52,7 @@
$(CXX) \
$(DEFINES) -std=gnu++11 \
`pkg-config --cflags $(CORE_PKGS)` \
$(CFLAGS) $(CXXFLAGS) $(INCFLAGS) \
$(CXXFLAGS) $(INCFLAGS) \
`pkg-config --cflags genode-lib` \
-c %f -o %o \
|> %f.$(TARGET_NAME).o
@ -24,57 +65,7 @@
`pkg-config --libs genode-lib` \
|> libretro.so
DEPOT_NAME = libretro-$(TARGET_NAME)
!publish_core = | libretro.so |> ^ STRIP %f^ \
strip -o %o %f \
|> $(DEPOT_BIN_DIR)/$(DEPOT_NAME)/@(DEPOT_VERSION)/%b
!bin_archives = |> \
echo $(REMOTE_DEPENDS) _/src/$(DEPOT_NAME)/$(BIN_VERSION) | tr ' ' '\n' > %o; \
|> $(DEPOT_BIN_DIR)/$(DEPOT_NAME)/@(DEPOT_VERSION)/_archives \
$(DEPOT_DIR)/<bin-archives>
!publish_core_raw = |> ^o copy %b^ cp %f %o \
|> $(DEPOT_RAW_DIR)/$(DEPOT_NAME)/@(DEPOT_VERSION)/%b
!publish_core_archives = |> ^ varse archives^ \
tup varsed %f %o ; \
echo @(DEPOT_USER)/src/$(DEPOT_NAME)/@(DEPOT_VERSION) >> %o \
|> $(DEPOT_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION)/archives
!publish_core_runtime = |> ^ validate runtime^ \
xmllint -schema $(ERRATA_DIR)/runtime.xsd %f > %o \
|> $(DEPOT_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION)/runtime $(DEPOT_DIR)/<libretro-runtimes>
!publish_core_metadata = |> ^ copy %b^ cp %f %o \
|> $(DEPOT_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION)/%b
ifndef DEPOT_KEY
!core_publish_bin = |> |>
!core_publish_pkg = |> |>
!core_publish_raw = |> |>
else
!core_publish_bin = |> ^o archive binaries^ \
tar cfJ %o -C $(DEPOT_BIN_DIR)/$(DEPOT_NAME) @(DEPOT_VERSION) ; $(SIGN_CMD) < %o > %o.sig \
|> $(PUBLIC_BIN_DIR)/$(DEPOT_NAME)/@(DEPOT_VERSION).tar.xz \
| $(PUBLIC_BIN_DIR)/$(DEPOT_NAME)/@(DEPOT_VERSION).tar.xz.sig
!core_publish_pkg = |> ^o archive package metadata^ \
tar cfJ %o -C $(DEPOT_PKG_DIR)/$(TARGET_NAME) @(DEPOT_VERSION) ; $(SIGN_CMD) < %o > %o.sig \
|> $(PUBLIC_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION).tar.xz \
| $(PUBLIC_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION).tar.xz.sig
!core_publish_raw = |> ^o archive raw files^ \
tar cfJ %o -C $(DEPOT_RAW_DIR)/$(DEPOT_NAME) @(DEPOT_VERSION) ; $(SIGN_CMD) < %o > %o.sig \
|> $(PUBLIC_RAW_DIR)/$(DEPOT_NAME)/@(DEPOT_VERSION).tar.xz \
| $(PUBLIC_RAW_DIR)/$(DEPOT_NAME)/@(DEPOT_VERSION).tar.xz.sig
endif
LINK_T = $(TUP_CWD)/link.T
DEFINES += -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
NO_UNDEFINED = --no-undefined

View File

@ -5,8 +5,6 @@
CORE_PKGS += stdcxx libc libm
NO_UNDEFINED =
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
DEBUG = 0
LOG_PERFORMANCE = 0
HAVE_COMPAT = 0
@ -33,10 +31,8 @@ CXXFLAGS += -w
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -9,11 +9,9 @@ WITH_DYNAREC = @(TUP_ARCH)
include upstream/Makefile.common
SOURCES_CXX += $(CORE_DIR)/libretro-common/libco/genode.cpp
SOURCES_CXX += $(LIBRETRO_COMM_DIR)/libco/genode.cpp
GIT_VERSION = `git describe --always`
CFLAGS += -O2 -DNDEBUG -DGIT_VERSION=\"$(GIT_VERSION)\" -D__GENODE__
DEFINES += -O2 -DNDEBUG -D__GENODE__
CFLAGS += $(COMMONFLAGS)
CXXFLAGS += -DHAVE_MMAP
@ -23,10 +21,8 @@ CXXFLAGS += -DHAVE_MMAP
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives | {core} |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime | {core} |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -1,8 +1,5 @@
CORE_PKGS += libc libm
GIT_VERSION = `git describe --always`
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
DEFINES += -O2 -DNDEBUG
DEFINES += -DWANT_GRIFFIN
@ -15,10 +12,8 @@ DEFINES += -Wno-write-strings
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,3 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -15,10 +15,8 @@ include upstream/Makefile.common
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@SDK_USER@/src/vfs/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -1,8 +1,5 @@
CORE_PKGS += libc libm
GIT_VERSION = `git describe --always`
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += -O3
CFLAGS += -DHAVE_STRNDUP -DHAVE_STRDUP -DDISABLE_THREADING
@ -14,10 +11,8 @@ CFLAGS += $(INCLUDES)
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -6,11 +6,9 @@ NO_UNDEFINED =
LIBRETRO_COMM_DIR =
# TODO: update libretro-common
GIT_VERSION = `git describe --always`
CFLAGS += -O3
CFLAGS += -DMRBOOM -DHAVE_IBXM -D_FORTIFY_SOURCE=0
CFLAGS += -DPLATFORM=\"genode\" -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += -DPLATFORM=\"genode\"
CFLAGS += -std=gnu99
CXXFLAGS += -std=c++98
@ -20,10 +18,8 @@ include upstream/Makefile.common
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,5 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-mrboom/@DEPOT_VERSION@

View File

@ -15,17 +15,8 @@ CXXFLAGS += -fno-rtti -fno-exceptions
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives | {core} |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime | {core} |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
REMOTE_DEPENDS += \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
: |> !bin_archives |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -1,22 +1,17 @@
RAW_VERSION = 2019-01-21
: $(CORE_DIR)/DiskImage/Oberon-$(RAW_VERSION).dsk |> !collect_raw |>
: |> !raw |>
CORE_PKGS += libc
include upstream/Libretro/Makefile.common
GIT_VERSION = `git describe --always`
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(CORE_DIR)/DiskImage/Oberon-2019-01-21.dsk |> !publish_core_raw |> {raw}
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: {raw} |> !core_publish_raw |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/raw/libretro-oberon/@DEPOT_VERSION@

View File

@ -2,57 +2,66 @@ CORE_PKGS += libc libm
LDFLAGS += --no-undefined
CFLAGS += -O3 -Wall -pedantic -std=gnu99
SIMPLE_DEPENDS = @(SDK_USER)/src/stdcxx/@(SDK_VERSION)
GL_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
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/audio.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/audio.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),testaudio_no_callback)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/audio.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/audio.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),testaudio_playback_wav)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/audio.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/audio.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),button_test)
CFLAGS += -Ilibretro-common/include
SOURCES_C += libretro.c
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
endif
#ifeq ($(TARGET_NAME),freebasic)
ifeq ($(TARGET_NAME),freebasic)
TARGET_NAME=
# : fbastest.bas |> fbc -dll %f -x %o |> libretro.so {core}
# : $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
# : $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
#endif
# PKG_DEPENDS += $(SIMPLE_DEPENDS)
# : $(TUP_CWD)/simple.runtime |> !collect_runtime |>
endif
#ifeq ($(TARGET_NAME),pascal_pong)
ifeq ($(TARGET_NAME),pascal_pong)
TARGET_NAME=
# : pong.pas |> fpc -o%o %f |> libretro.so {core}
# : $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
# : $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
#endif
# PKG_DEPENDS += $(SIMPLE_DEPENDS)
# : $(TUP_CWD)/simple.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),midi_test)
SOURCES_C += libretro.c
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/midi.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/midi.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),test)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),cruzes)
@ -60,15 +69,15 @@ ifeq ($(TARGET_NAME),cruzes)
# : 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
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),advanced_tests)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/audio.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/audio.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),testgl_compute_shaders)
@ -80,16 +89,16 @@ ifeq ($(TARGET_NAME),testgl_compute_shaders)
SOURCES_C += glsym/rglgen.c
SOURCES_C += glsym/glsym_gl.c
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_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
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(GL_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),testgl)
@ -99,44 +108,46 @@ ifeq ($(TARGET_NAME),testgl)
SOURCES_C += glsym/rglgen.c
SOURCES_C += glsym/glsym_gl.c
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(GL_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),testsw)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),testsw_vram)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
: $(TUP_CWD)/simple.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/simple.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),testvulkan_async_compute)
CFLAGS += -I../../libretro-common/include -Iinclude
SOURCES_C += libretro-test.c vulkan_symbol_wrapper.c
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(GL_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
endif
ifeq ($(TARGET_NAME),testvulkan)
CFLAGS += -I../../libretro-common/include -Iinclude
SOURCES_C += libretro-test.c vulkan_symbol_wrapper.c
: $(TUP_CWD)/testgl.archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/testgl.runtime |> !publish_core_runtime |> {package}
PKG_DEPENDS += $(GL_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
endif
ifneq ($(TARGET_NAME),)
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: README.md |> !publish_core_metadata |> {package}
#: README.md |> !collect_runtime |>
: |> !pkg |>
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
endif

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -1,8 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@UPSTREAM_USER@/src/init/@UPSTREAM_VERSION@
@PUBLIC_SRC_EXPAT@
@PUBLIC_SRC_MESA@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-testgl/@DEPOT_VERSION@

View File

@ -3,9 +3,6 @@ NO_UNDEFINED =
include upstream/libretro/Makefile.common
GIT_VERSION = `git describe --always`
CXXFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CODE_DEFINES = -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic
WARNINGS_DEFINES = -Wall -W -Wno-unused-parameter
@ -18,10 +15,8 @@ CXXFLAGS += -DRIGHTSHIFT_IS_SAR -D__LIBRETRO__ -DALLOW_CPU_OVERCLOCK
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@

View File

@ -11,9 +11,6 @@ DEFINES += -DUSE_CODEC_WAVE
DEFINES += -DUSE_CODEC_FLAC
DEFINES += -DUSE_CODEC_VORBIS
GIT_VERSION = `git describe --always`
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
DEFINES += -O2 -DNDEBUG
DEFINES += -DINLINE=inline
@ -26,10 +23,8 @@ include upstream/Makefile.common
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/vfs/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
ehmry/raw/quake_shareware/1.06

View File

@ -1,2 +1,11 @@
NIM_RELEASE_FLAG = -d:release
# Drop the relase flag with the line "NIM_RELEASE_FLAG="
NIM_SRC_DIR = src
# Build everything in this directory
BIN_VERSION = $(GIT_VERSION)
# Use the git version as the binary package version
NIMBLE_BINARIES_INCLUDE = $(TUP_CWD)/binaries.tup
NIMBLE_PACKAGE_INCLUDE = $(TUP_CWD)/package.tup

View File

@ -1,9 +1,7 @@
# Drop the relase flag with the line "NIM_RELEASE_FLAG="
NIM_RELEASE_FLAG = -d:release
!nim_build = |> ^o Nimble %B^ \
nimble cpp $(NIM_RELEASE_FLAG) $(NIM_FLAGS) --os:genode -d:posix --parallelBuild:1 -o:%B %f \
|> %B ./<binaries>
!nim_build = |> ^o Nimble %B^ nimble cpp $(NIM_RELEASE_FLAG) --os:genode -d:posix --parallelBuild:1 -o:%B %f |> %B ./<binaries>
: foreach src/*.nim |> !nim_build |> {output}
: foreach {output} |> !strip_to_depot |> {binary}
: {binary} |> !publish_bin |>
: foreach $(NIM_SRC_DIR)/*.nim |> !nim_build |> {binary}
: foreach {binary} |> !collect_bin |>
: |> !bin |>

View File

@ -1,7 +1,4 @@
include_rules
: archives | ./<binaries> |> !archives_to_depot |> {package}
: runtime | ./<binaries> |> !runtime_to_depot |> {package}
: {package} |> !publish_pkg |>
PKG_VERSION = $(GIT_VERSION)
: runtime | ./<binaries> |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -1,5 +1,11 @@
PKG_DEPENDS += \
nfeske/pkg/backdrop/2019-02-22 \
local/raw/backdrop \
include_rules
: archives |> !archives_to_depot |>
: runtime |> !runtime_to_depot |>
: backdrop.png |> !raw_to_depot |>
: backdrop.png |> !collect_raw |>
: runtime |> !collect_pkg_runtime |>
: |> !raw |>
: |> !pkg |>

View File

@ -1,2 +0,0 @@
nfeske/pkg/backdrop/2019-02-22
@DEPOT_USER@/raw/backdrop/@DEPOT_VERSION@

0
runtimes/backdrop/runtime Executable file → Normal file
View File

View File

@ -1,9 +1,9 @@
: $(BIN_LISTING) |> ^ GENERATE %o^ \
echo $(REMOTE_DEPENDS) | tr ' ' '\n' > archives; \
for i in $(LOCAL_DEPENDS); do \
grep $i %f >> archives; \
done; \
|> archives
PKG_DEPENDS += \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
local/src/libretro-nxengine \
local/src/retro_frontend \
: ../runtime |> !collect_pkg_runtime |>
: archives |> !collect_pkg_archives |>
: ../runtime |> !collect_pkg |>
: |> !pkg |>

View File

@ -1,19 +1,17 @@
REMOTE_DEPENDS += \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
ifndef CONFIG_NO_NETWORK
LOCAL_DEPENDS += \
_/src/libretro-nxengine \
_/src/retro_frontend \
_/raw/cave_story-en \
PKG_DEPENDS += \
local/raw/cave_story-en \
include_rules
: |> wget --quiet https://www.cavestory.org/downloads/%o |> cavestoryen.zip {zip}
RAW_VERSION = 2004.12
: {zip} \
|> unzip -qD %f -d tmp ; tar cf %o -C tmp/CaveStory . ; rm -r tmp \
|> $(DEPOT_RAW_DIR)/%d/$(RAW_VERSION)/doukutsu.tar $(DEPOT_DIR)/<raw>
: {zip} |> unzip -qD %f -d tmp ; tar cf %o -C tmp/CaveStory . ; rm -r tmp |> doukutsu.tar {tar}
RAW_VERSION = 2004.12
: {tar} |> !collect_raw |>
: |> !raw |>
endif

View File

@ -1,8 +1,10 @@
PKG_DEPENDS += \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(PUBLIC_SRC_LWIP) \
local/src/ninep \
include_rules
: archives |> !archives_to_depot |> {package}
: runtime |> !runtime_to_depot |> {package}
ifdef DEPOT_KEY
: {package} |> !publish_pkg |>
endif
: runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -1,4 +0,0 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/vfs/@SDK_VERSION@
ehmry/src/vfs_lwip/2019-03-22
@DEPOT_USER@/src/ninep/@DEPOT_VERSION@

View File

@ -1,3 +1,18 @@
PKG_DEPENDS += \
@(SDK_USER)/src/init/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
genodelabs/src/init/2019-02-27 \
genodelabs/src/libpng/2019-02-25 \
genodelabs/src/libssl/2019-02-25 \
ehmry/src/libcrypto/2019-03-04 \
genodelabs/src/menu_view/2019-02-26 \
genodelabs/src/report_rom/2019-02-25 \
ehmry/src/vfs_lwip/2019-03-04 \
genodelabs/src/zlib/2019-02-25 \
local/raw/fetch-nixos/ \
local/src/fetch_and_copy \
include_rules
URL = http://hydra.nixos.org/build/89920163/download/1/nixos-minimal-19.03beta170766.5b38b4572a4-x86_64-linux.iso
@ -9,13 +24,10 @@ SHA256 = d8dcb02f96108720c451b0858dab42ac2ad6fc47442298b3a5338b14bfc76f30
-e 's|@SHA256@|$(SHA256)|' \
%f > %o |> %B
: runtime |> !runtime_to_depot |> {package}
: archives |> !archives_to_depot |> {package}
: nixos.vbox |> !collect_raw |>
: machine.vdi |> !collect_raw |>
: nixos.vbox |> !raw_to_depot |> {raw}
: machine.vdi |> !raw_to_depot |> {raw}
: runtime |> !collect_pkg_runtime |> {package}
ifdef DEPOT_KEY
: {package} |> !publish_pkg |>
: {raw} |> !publish_raw |>
endif
: |> !raw |>
: |> !pkg |>

View File

@ -1,13 +0,0 @@
@SDK_USER@/src/init/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/vfs/@SDK_VERSION@
genodelabs/src/init/2019-02-27
genodelabs/src/libpng/2019-02-25
genodelabs/src/libssl/2019-02-25
ehmry/src/libcrypto/2019-03-04
genodelabs/src/menu_view/2019-02-26
genodelabs/src/report_rom/2019-02-25
ehmry/src/vfs_lwip/2019-03-04
genodelabs/src/zlib/2019-02-25
@DEPOT_USER@/raw/fetch-nixos/@DEPOT_VERSION@
@DEPOT_USER@/src/fetch_and_copy/@DEPOT_VERSION@

View File

@ -0,0 +1,13 @@
PKG_DEPENDS += \
@(SDK_USER)/src/init/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(UPSTREAM_USER)/src/libmpg123/@(UPSTREAM_VERSION) \
@(UPSTREAM_USER)/src/mp3_audio_sink/@(DEPOT_VERSION) \
@(UPSTREAM_USER)/src/vfs_lwip/@(UPSTREAM_VERSION) \
@(UPSTREAM_USER)/src/zlib/@(UPSTREAM_VERSION) \
local/src/icy_client \
: ../runtime.in |> sed 's|@STREAM_URL@|$(STREAM_URL)|' %f > %o |> runtime
: runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -1,8 +0,0 @@
@SDK_USER@/src/init/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/vfs/@SDK_VERSION@
@UPSTREAM_USER@/src/libmpg123/@UPSTREAM_VERSION@
@DEPOT_USER@/src/mp3_audio_sink/@DEPOT_VERSION@
@UPSTREAM_USER@/src/vfs_lwip/@UPSTREAM_VERSION@
@UPSTREAM_USER@/src/zlib/@UPSTREAM_VERSION@
@DEPOT_USER@/src/icy_client/@DEPOT_VERSION@

View File

@ -1,10 +0,0 @@
include_rules
: ../runtime.in |> sed 's|@STREAM_URL@|$(STREAM_URL)|' %f > %o |> runtime
: runtime |> !runtime_to_depot |> {package}
: $(TUP_CWD)/archives |> !archives_to_depot |> {package}
ifdef DEPOT_KEY
: {package} |> !publish_pkg |>
endif

View File

@ -1,2 +1,2 @@
STREAM_URL = http://radio.intergalactic.fm:80/1
include ../icy-stream.tup
include_rules

View File

@ -1,2 +1,2 @@
STREAM_URL = http://radio.intergalactic.fm:80/2
include ../icy-stream.tup
include_rules

View File

@ -1,2 +1,2 @@
STREAM_URL = http://radio.intergalactic.fm:80/3
include ../icy-stream.tup
include_rules

View File

@ -1,7 +1,21 @@
include_rules
: runtime |> !runtime_to_depot |> {package}
: archives |> !archives_to_depot |> {package}
: README |> !pkg_extra_to_depot |> {package}
PKG_DEPENDS += \
ehmry/raw/templeos/2017-12-12 \
genodelabs/src/vbox5-nova/2019-02-25 \
genodelabs/src/base-nova/2019-02-25 \
genodelabs/src/libc/2019-02-25 \
genodelabs/src/init/2019-02-27 \
genodelabs/src/nit_fb/2019-02-25 \
genodelabs/src/libc/2019-02-25 \
genodelabs/src/posix/2019-02-25 \
genodelabs/src/zlib/2019-02-25 \
genodelabs/src/nit_fb/2019-02-25 \
genodelabs/src/libiconv/2019-02-25 \
genodelabs/src/stdcxx/2019-02-25 \
genodelabs/src/vfs/2019-02-27 \
: {package} |> !publish_pkg |>
: runtime |> !collect_pkg_runtime |>
: README |> !collect_pkg |>
: |> !pkg |>

View File

@ -1,13 +0,0 @@
ehmry/raw/templeos/2017-12-12
genodelabs/src/vbox5-nova/2019-02-25
genodelabs/src/base-nova/2019-02-25
genodelabs/src/libc/2019-02-25
genodelabs/src/init/2019-02-27
genodelabs/src/nit_fb/2019-02-25
genodelabs/src/libc/2019-02-25
genodelabs/src/posix/2019-02-25
genodelabs/src/zlib/2019-02-25
genodelabs/src/nit_fb/2019-02-25
genodelabs/src/libiconv/2019-02-25
genodelabs/src/stdcxx/2019-02-25
genodelabs/src/vfs/2019-02-27

0
runtimes/templeos/runtime Executable file → Normal file
View File