# release packaging makefile
-VER ?= $(shell head -n 1 ../common/version.h | \
+VER := $(shell head -n 1 ../common/version.h | \
sed 's/.*"\(.*\)\.\(.*\)".*/\1\2/g')
+BUILD := $(shell git describe HEAD | grep -- - | \
+ sed -e 's/.*\-\(.*\)\-.*/\1/')
+ifneq "$(BUILD)" ""
+VER := $(VER)_$(BUILD)
+endif
PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh
/tmp/readme.txt: ../../tools/textfilter ../base_readme.txt
../../tools/textfilter ../base_readme.txt $@ PANDORA
-/tmp/PicoDrive.pxml: PicoDrive.pxml.template
- ./make_pxml.sh $^ $@
+/tmp/PicoDrive.pxml: PicoDrive.pxml.template FORCE
+ ./make_pxml.sh $< $@
rel: ../../PicoDrive PicoDrive.sh picorestore \
PicoDrive.png PicoDrive_p.png \
cp -r $^ out/
$(PND_MAKE) -p PicoDrive_$(VER).pnd -d out -x out/PicoDrive.pxml -i out/PicoDrive.png -c
+FORCE:
+.PHONY: all rel FORCE
#!/bin/sh
-# 2x2M hugepages should be enough
-sudo -n /usr/pandora/scripts/op_hugetlb.sh 4
+# 3.2.30 on pandora has broken hugetlb
+if [ "`uname -r`" != "3.2.30" ]; then
+ # 2x2M hugepages should be enough
+ sudo -n /usr/pandora/scripts/op_hugetlb.sh 4
+fi
./PicoDrive "$@"
static int g_layer_w = 320, g_layer_h = 240;\r
static int g_osd_fps_x, g_osd_y, doing_bg_frame;\r
\r
-static const char pnd_script_base[] = "sudo -n /usr/pandora/scripts";\r
static unsigned char __attribute__((aligned(4))) fb_copy[320 * 240 * 2];\r
static void *temp_frame;\r
const char *renderer_names[] = { NULL };\r
void pemu_loop_prep(void)\r
{\r
// dirty buffers better go now than during gameplay\r
+ fflush(stdout);\r
+ fflush(stderr);\r
sync();\r
sleep(0);\r
}\r