fix clean build
authornotaz <notasas@gmail.com>
Thu, 13 Aug 2009 22:18:12 +0000 (22:18 +0000)
committernotaz <notasas@gmail.com>
Thu, 13 Aug 2009 22:18:12 +0000 (22:18 +0000)
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@751 be3aeb3a-fb24-0410-a615-afba39da0efa

platform/gp2x/Makefile
platform/gp2x/PicoDrive.gpe [new file with mode: 0644]

index f2000ad..682a652 100644 (file)
@@ -157,8 +157,9 @@ ifeq ($(VER),)
 $(error need VER)\r
 endif\r
 endif\r
+CODE940 = code940/pico940_v3.bin\r
 \r
-rel: PicoDrive PicoDrive.gpe code940/pico940_v3.bin readme.txt PicoDrive.png ../game_def.cfg \\r
+rel: PicoDrive PicoDrive.gpe $(CODE940) readme.txt PicoDrive.png ../game_def.cfg \\r
                warm_2.4.25.o warm_2.4.26-open2x.o warm_2.6.24.ko\r
        zip -9 -j ../../PicoDrive_$(VER).zip $^\r
        zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt\r
@@ -167,6 +168,6 @@ rel: PicoDrive PicoDrive.gpe code940/pico940_v3.bin readme.txt PicoDrive.png ../
        zip -9 -r ../../PicoDrive_$(VER).zip bin_to_cso_mp3\r
        rm -rf bin_to_cso_mp3\r
 \r
-code940/code940.bin:\r
+$(CODE940):\r
        make -C code940/\r
 \r
diff --git a/platform/gp2x/PicoDrive.gpe b/platform/gp2x/PicoDrive.gpe
new file mode 100644 (file)
index 0000000..80b1326
--- /dev/null
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+export LD_PRELOAD=
+
+export POLLUX_RAM_TIMINGS='ram_timings=2,9,4,1,1,1,1'
+export POLLUX_LCD_TIMINGS_NTSC='lcd_timings=397,1,37,277,341,0,17,337;clkdiv0=9'
+export POLLUX_LCD_TIMINGS_PAL='lcd_timings=428,1,37,277,341,0,17,337;clkdiv0=10'
+
+./PicoDrive $*
+
+cd /usr/gp2x
+exec ./gp2xmenu