make, improve build for devices using (open)dingux

This commit is contained in:
kub 2021-03-30 20:14:27 +02:00
parent 5d3b7ae27b
commit 40a7d177b2
3 changed files with 23 additions and 16 deletions

View file

@ -87,9 +87,11 @@ ifeq "$(PLATFORM)" "opendingux"
# TODO this should somehow go to the platform/opendingux directory?
.od_data: $(TARGET)
$(RM) -rf .od_data
cp -r platform/opendingux/data .od_data
cp -r platform/opendingux/data/. .od_data
cp platform/game_def.cfg .od_data
cp $< .od_data/PicoDrive
$(STRIP) .od_data/PicoDrive
.PHONY: .od_data
ifneq (,$(filter %__DINGUX__, $(CFLAGS)))
# "legacy" dingux without opk support