summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurus Cuelenaere <mcuelenaere@gmail.com>2008-09-04 14:49:53 +0000
committerMaurus Cuelenaere <mcuelenaere@gmail.com>2008-09-04 14:49:53 +0000
commit561df3827e091c5646648a50b94278843a7554aa (patch)
tree997ea7525cf3140f47b5a05ce7669cbf4ffaa7b8
parentebe3e032b9dcc4aec2aac7892a190477700bb6c9 (diff)
downloadrockbox-561df3827e091c5646648a50b94278843a7554aa.tar.gz
rockbox-561df3827e091c5646648a50b94278843a7554aa.zip
WPS editor:
* Simplify Makefile * Get rid of buildall.* * Change library loading behaviour to work with MODEL_NAME Screenshot: * Simplify Makefile config-*.h: * Add MODEL_NAME git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18407 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/export/config-c100.h2
-rw-r--r--firmware/export/config-c200.h2
-rw-r--r--firmware/export/config-cowond2.h2
-rw-r--r--firmware/export/config-creativezv.h2
-rw-r--r--firmware/export/config-creativezvm.h4
-rw-r--r--firmware/export/config-creativezvm60gb.h2
-rw-r--r--firmware/export/config-e200.h2
-rw-r--r--firmware/export/config-fmrecorder.h2
-rw-r--r--firmware/export/config-gigabeat-s.h2
-rw-r--r--firmware/export/config-gigabeat.h2
-rw-r--r--firmware/export/config-h100.h2
-rw-r--r--firmware/export/config-h120.h2
-rw-r--r--firmware/export/config-h300.h2
-rwxr-xr-xfirmware/export/config-hdd1630.h2
-rw-r--r--firmware/export/config-iaudiom3.h2
-rw-r--r--firmware/export/config-iaudiom5.h2
-rw-r--r--firmware/export/config-iaudiox5.h2
-rw-r--r--firmware/export/config-ifp7xx.h2
-rw-r--r--firmware/export/config-ipod1g2g.h2
-rw-r--r--firmware/export/config-ipod3g.h2
-rw-r--r--firmware/export/config-ipod4g.h2
-rw-r--r--firmware/export/config-ipodcolor.h2
-rw-r--r--firmware/export/config-ipodmini.h2
-rw-r--r--firmware/export/config-ipodmini2g.h2
-rw-r--r--firmware/export/config-ipodnano.h2
-rw-r--r--firmware/export/config-ipodvideo.h2
-rw-r--r--firmware/export/config-logikdax.h2
-rw-r--r--firmware/export/config-m200.h2
-rw-r--r--firmware/export/config-meizu-m6sl.h4
-rw-r--r--firmware/export/config-mrobe500.h1
-rw-r--r--firmware/export/config-ondavx747.h2
-rw-r--r--firmware/export/config-ondiofm.h2
-rw-r--r--firmware/export/config-ondiosp.h2
-rw-r--r--firmware/export/config-player.h2
-rw-r--r--firmware/export/config-recorder.h2
-rw-r--r--firmware/export/config-recorderv2.h2
-rw-r--r--firmware/export/config-tpj1022.h2
-rw-r--r--utils/wpseditor/buildall.bat9
-rwxr-xr-xutils/wpseditor/buildall.sh4
-rw-r--r--utils/wpseditor/gui/src/qwpsdrawer.cpp27
-rw-r--r--utils/wpseditor/gui/src/qwpsdrawer.h8
-rw-r--r--utils/wpseditor/libwps/Makefile113
-rw-r--r--utils/wpseditor/libwps/buildall.bat4
-rwxr-xr-xutils/wpseditor/libwps/buildall.sh9
-rw-r--r--utils/wpseditor/libwps/cleanall.sh7
-rw-r--r--utils/wpseditor/libwps/src/proxy.c4
-rw-r--r--utils/wpseditor/libwps/targets.txt9
-rw-r--r--utils/wpseditor/screenshot/Makefile28
-rw-r--r--utils/wpseditor/wpseditor.pro4
49 files changed, 160 insertions, 143 deletions
diff --git a/firmware/export/config-c100.h b/firmware/export/config-c100.h
index 91e21d0f3b..5bf0fc83a6 100644
--- a/firmware/export/config-c100.h
+++ b/firmware/export/config-c100.h
@@ -3,6 +3,8 @@
3 */ 3 */
4#define TARGET_TREE /* this target is using the target tree system */ 4#define TARGET_TREE /* this target is using the target tree system */
5 5
6#define MODEL_NAME "Sandisk Sansa c100 series"
7
6/* For Rolo and boot loader */ 8/* For Rolo and boot loader */
7#define MODEL_NUMBER 30 9#define MODEL_NUMBER 30
8 10
diff --git a/firmware/export/config-c200.h b/firmware/export/config-c200.h
index d7b8e7e824..bb8adae505 100644
--- a/firmware/export/config-c200.h
+++ b/firmware/export/config-c200.h
@@ -5,7 +5,7 @@
5 5
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 20 7#define MODEL_NUMBER 20
8#define MODEL_NAME "Sandisk Sansa c200" 8#define MODEL_NAME "Sandisk Sansa c200 series"
9 9
10#define HW_SAMPR_CAPS (SAMPR_CAP_44) 10#define HW_SAMPR_CAPS (SAMPR_CAP_44)
11 11
diff --git a/firmware/export/config-cowond2.h b/firmware/export/config-cowond2.h
index 841390b479..1bcb406837 100644
--- a/firmware/export/config-cowond2.h
+++ b/firmware/export/config-cowond2.h
@@ -6,6 +6,8 @@
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 24 7#define MODEL_NUMBER 24
8 8
9#define MODEL_NAME "Cowon iAudio D2"
10
9/* Produce a dual-boot bootloader.bin for mktccboot */ 11/* Produce a dual-boot bootloader.bin for mktccboot */
10#define TCCBOOT 12#define TCCBOOT
11 13
diff --git a/firmware/export/config-creativezv.h b/firmware/export/config-creativezv.h
index bf7b45b4a9..78055018d1 100644
--- a/firmware/export/config-creativezv.h
+++ b/firmware/export/config-creativezv.h
@@ -28,6 +28,8 @@
28 28
29#define CREATIVE_ZV 1 29#define CREATIVE_ZV 1
30 30
31#define MODEL_NAME "Creative Zen Vision"
32
31/* This makes it part of the Creative Zen Vision family :) */ 33/* This makes it part of the Creative Zen Vision family :) */
32#define CREATIVE_ZVx 1 34#define CREATIVE_ZVx 1
33 35
diff --git a/firmware/export/config-creativezvm.h b/firmware/export/config-creativezvm.h
index 647e8e986c..c2abcda7f5 100644
--- a/firmware/export/config-creativezvm.h
+++ b/firmware/export/config-creativezvm.h
@@ -28,6 +28,8 @@
28 28
29#define CREATIVE_ZVM 1 29#define CREATIVE_ZVM 1
30 30
31#define MODEL_NAME "Creative Zen Vision: M"
32
31/* This makes it part of the Creative Zen Vision family :) */ 33/* This makes it part of the Creative Zen Vision family :) */
32#define CREATIVE_ZVx 1 34#define CREATIVE_ZVx 1
33 35
@@ -160,7 +162,7 @@
160#define BOOTFILE "rockbox." BOOTFILE_EXT 162#define BOOTFILE "rockbox." BOOTFILE_EXT
161#define BOOTDIR "/.rockbox" 163#define BOOTDIR "/.rockbox"
162 164
163#define CONFIG_USBOTG USBOTG_ISP1583 165#define CONFIG_USBOTG USBOTG_ISP1583
164#define HAVE_USBSTACK 166#define HAVE_USBSTACK
165#define USB_VENDOR_ID 0x041e 167#define USB_VENDOR_ID 0x041e
166#define USB_PRODUCT_ID 0x4133 168#define USB_PRODUCT_ID 0x4133
diff --git a/firmware/export/config-creativezvm60gb.h b/firmware/export/config-creativezvm60gb.h
index e9ad101a34..93fb2e5ec0 100644
--- a/firmware/export/config-creativezvm60gb.h
+++ b/firmware/export/config-creativezvm60gb.h
@@ -28,6 +28,8 @@
28 28
29#define CREATIVE_ZVM60GB 1 29#define CREATIVE_ZVM60GB 1
30 30
31#define MODEL_NAME "Creative Zen Vision:M 60GB"
32
31/* This makes it part of the Creative Zen Vision family :) */ 33/* This makes it part of the Creative Zen Vision family :) */
32#define CREATIVE_ZVx 1 34#define CREATIVE_ZVx 1
33 35
diff --git a/firmware/export/config-e200.h b/firmware/export/config-e200.h
index 3a4ab69082..f187c973f5 100644
--- a/firmware/export/config-e200.h
+++ b/firmware/export/config-e200.h
@@ -5,7 +5,7 @@
5 5
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 16 7#define MODEL_NUMBER 16
8#define MODEL_NAME "Sandisk Sansa e200" 8#define MODEL_NAME "Sandisk Sansa e200 series"
9 9
10#define HW_SAMPR_CAPS (SAMPR_CAP_44) 10#define HW_SAMPR_CAPS (SAMPR_CAP_44)
11 11
diff --git a/firmware/export/config-fmrecorder.h b/firmware/export/config-fmrecorder.h
index c3c894edb9..fd85e51b46 100644
--- a/firmware/export/config-fmrecorder.h
+++ b/firmware/export/config-fmrecorder.h
@@ -1,6 +1,8 @@
1/* define this if you use an ATA controller */ 1/* define this if you use an ATA controller */
2#define HAVE_ATA 2#define HAVE_ATA
3 3
4#define MODEL_NAME "Archos FM Recorder"
5
4/* define this if you have recording possibility */ 6/* define this if you have recording possibility */
5#define HAVE_RECORDING 7#define HAVE_RECORDING
6 8
diff --git a/firmware/export/config-gigabeat-s.h b/firmware/export/config-gigabeat-s.h
index cafb202ebe..1f40339065 100644
--- a/firmware/export/config-gigabeat-s.h
+++ b/firmware/export/config-gigabeat-s.h
@@ -7,6 +7,8 @@
7 7
8#define TOSHIBA_GIGABEAT_S 1 8#define TOSHIBA_GIGABEAT_S 1
9 9
10#define MODEL_NAME "Toshiba Gigabeat S"
11
10/* For Rolo and boot loader */ 12/* For Rolo and boot loader */
11#define MODEL_NUMBER 21 13#define MODEL_NUMBER 21
12 14
diff --git a/firmware/export/config-gigabeat.h b/firmware/export/config-gigabeat.h
index cf64baab12..27bd51e3ab 100644
--- a/firmware/export/config-gigabeat.h
+++ b/firmware/export/config-gigabeat.h
@@ -5,6 +5,8 @@
5 5
6#define TOSHIBA_GIGABEAT_F 1 6#define TOSHIBA_GIGABEAT_F 1
7 7
8#define MODEL_NAME "Toshiba Gigabeat F"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 18 11#define MODEL_NUMBER 18
10 12
diff --git a/firmware/export/config-h100.h b/firmware/export/config-h100.h
index 987f9a686e..f250c5f862 100644
--- a/firmware/export/config-h100.h
+++ b/firmware/export/config-h100.h
@@ -9,6 +9,8 @@
9 */ 9 */
10#define IRIVER_H100_SERIES 1 10#define IRIVER_H100_SERIES 1
11 11
12#define MODEL_NAME "iriver iHP-100 series"
13
12/* For Rolo and boot loader */ 14/* For Rolo and boot loader */
13#define MODEL_NUMBER 1 15#define MODEL_NUMBER 1
14 16
diff --git a/firmware/export/config-h120.h b/firmware/export/config-h120.h
index afb848898c..9cea95eb6f 100644
--- a/firmware/export/config-h120.h
+++ b/firmware/export/config-h120.h
@@ -4,6 +4,8 @@
4 */ 4 */
5#define IRIVER_H100_SERIES 1 5#define IRIVER_H100_SERIES 1
6 6
7#define MODEL_NAME "iriver H120/H140"
8
7/* For Rolo and boot loader */ 9/* For Rolo and boot loader */
8#define MODEL_NUMBER 0 10#define MODEL_NUMBER 0
9 11
diff --git a/firmware/export/config-h300.h b/firmware/export/config-h300.h
index c9b473a2f3..4aae255daa 100644
--- a/firmware/export/config-h300.h
+++ b/firmware/export/config-h300.h
@@ -4,6 +4,8 @@
4 */ 4 */
5#define IRIVER_H300_SERIES 1 5#define IRIVER_H300_SERIES 1
6 6
7#define MODEL_NAME "iriver H300 series"
8
7/* For Rolo and boot loader */ 9/* For Rolo and boot loader */
8#define MODEL_NUMBER 2 10#define MODEL_NUMBER 2
9 11
diff --git a/firmware/export/config-hdd1630.h b/firmware/export/config-hdd1630.h
index 19ca190a57..5b89bded21 100755
--- a/firmware/export/config-hdd1630.h
+++ b/firmware/export/config-hdd1630.h
@@ -1,5 +1,5 @@
1/* 1/*
2 * This config file is for the iriver H10 20Gb 2 * This config file is for the Philips GoGear HDD1630
3 */ 3 */
4 4
5#define TARGET_TREE /* this target is using the target tree system */ 5#define TARGET_TREE /* this target is using the target tree system */
diff --git a/firmware/export/config-iaudiom3.h b/firmware/export/config-iaudiom3.h
index 1541f7cee5..b8dc52c91e 100644
--- a/firmware/export/config-iaudiom3.h
+++ b/firmware/export/config-iaudiom3.h
@@ -6,6 +6,8 @@
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 25 7#define MODEL_NUMBER 25
8 8
9#define MODEL_NAME "iAudio M3"
10
9/* define this if you use an ATA controller */ 11/* define this if you use an ATA controller */
10#define HAVE_ATA 12#define HAVE_ATA
11 13
diff --git a/firmware/export/config-iaudiom5.h b/firmware/export/config-iaudiom5.h
index e54fb15231..a5b0f3d7bd 100644
--- a/firmware/export/config-iaudiom5.h
+++ b/firmware/export/config-iaudiom5.h
@@ -6,6 +6,8 @@
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 17 7#define MODEL_NUMBER 17
8 8
9#define MODEL_NAME "iAudio M5"
10
9/* define this if you use an ATA controller */ 11/* define this if you use an ATA controller */
10#define HAVE_ATA 12#define HAVE_ATA
11 13
diff --git a/firmware/export/config-iaudiox5.h b/firmware/export/config-iaudiox5.h
index 0d6e50053f..c29d4242fe 100644
--- a/firmware/export/config-iaudiox5.h
+++ b/firmware/export/config-iaudiox5.h
@@ -6,6 +6,8 @@
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 10 7#define MODEL_NUMBER 10
8 8
9#define MODEL_NAME "iAudio X5"
10
9/* define this if you use an ATA controller */ 11/* define this if you use an ATA controller */
10#define HAVE_ATA 12#define HAVE_ATA
11 13
diff --git a/firmware/export/config-ifp7xx.h b/firmware/export/config-ifp7xx.h
index 41193e251d..bea4374fc1 100644
--- a/firmware/export/config-ifp7xx.h
+++ b/firmware/export/config-ifp7xx.h
@@ -5,6 +5,8 @@
5 5
6#define IRIVER_IFP7XX_SERIES 1 6#define IRIVER_IFP7XX_SERIES 1
7 7
8#define MODEL_NAME "iriver iFP-799"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 6 11#define MODEL_NUMBER 6
10 12
diff --git a/firmware/export/config-ipod1g2g.h b/firmware/export/config-ipod1g2g.h
index 6781fe608f..cbb5267331 100644
--- a/firmware/export/config-ipod1g2g.h
+++ b/firmware/export/config-ipod1g2g.h
@@ -5,6 +5,8 @@
5 5
6#define IPOD_ARCH 1 6#define IPOD_ARCH 1
7 7
8#define MODEL_NAME "Apple iPod 1g/2g"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 19 11#define MODEL_NUMBER 19
10 12
diff --git a/firmware/export/config-ipod3g.h b/firmware/export/config-ipod3g.h
index d5f403c1a9..6c78f408bf 100644
--- a/firmware/export/config-ipod3g.h
+++ b/firmware/export/config-ipod3g.h
@@ -6,6 +6,8 @@
6 6
7#define IPOD_ARCH 1 7#define IPOD_ARCH 1
8 8
9#define MODEL_NAME "Apple iPod 3g"
10
9/* For Rolo and boot loader */ 11/* For Rolo and boot loader */
10#define MODEL_NUMBER 7 12#define MODEL_NUMBER 7
11 13
diff --git a/firmware/export/config-ipod4g.h b/firmware/export/config-ipod4g.h
index ad03f41b90..c5c592dfca 100644
--- a/firmware/export/config-ipod4g.h
+++ b/firmware/export/config-ipod4g.h
@@ -5,6 +5,8 @@
5 5
6#define IPOD_ARCH 1 6#define IPOD_ARCH 1
7 7
8#define MODEL_NAME "Apple iPod 4g Grayscale"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 8 11#define MODEL_NUMBER 8
10 12
diff --git a/firmware/export/config-ipodcolor.h b/firmware/export/config-ipodcolor.h
index 9a7c055d53..cda0857b19 100644
--- a/firmware/export/config-ipodcolor.h
+++ b/firmware/export/config-ipodcolor.h
@@ -5,6 +5,8 @@
5 5
6#define IPOD_ARCH 1 6#define IPOD_ARCH 1
7 7
8#define MODEL_NAME "Apple iPod Color/Photo"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 3 11#define MODEL_NUMBER 3
10 12
diff --git a/firmware/export/config-ipodmini.h b/firmware/export/config-ipodmini.h
index 15aa95bce5..b5c566f4c5 100644
--- a/firmware/export/config-ipodmini.h
+++ b/firmware/export/config-ipodmini.h
@@ -5,6 +5,8 @@
5 5
6#define IPOD_ARCH 1 6#define IPOD_ARCH 1
7 7
8#define MODEL_NAME "Apple iPod Mini 1g"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 9 11#define MODEL_NUMBER 9
10 12
diff --git a/firmware/export/config-ipodmini2g.h b/firmware/export/config-ipodmini2g.h
index c861f5ae13..6a6ab7b07a 100644
--- a/firmware/export/config-ipodmini2g.h
+++ b/firmware/export/config-ipodmini2g.h
@@ -5,6 +5,8 @@
5 5
6#define IPOD_ARCH 1 6#define IPOD_ARCH 1
7 7
8#define MODEL_NAME "Apple iPod Mini 2g"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 11 11#define MODEL_NUMBER 11
10 12
diff --git a/firmware/export/config-ipodnano.h b/firmware/export/config-ipodnano.h
index ced2c47b4e..bfdf7fdc30 100644
--- a/firmware/export/config-ipodnano.h
+++ b/firmware/export/config-ipodnano.h
@@ -5,6 +5,8 @@
5 5
6#define IPOD_ARCH 1 6#define IPOD_ARCH 1
7 7
8#define MODEL_NAME "Apple iPod Nano 1g"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 4 11#define MODEL_NUMBER 4
10 12
diff --git a/firmware/export/config-ipodvideo.h b/firmware/export/config-ipodvideo.h
index d15494cfd1..4c56d74c72 100644
--- a/firmware/export/config-ipodvideo.h
+++ b/firmware/export/config-ipodvideo.h
@@ -5,6 +5,8 @@
5 5
6#define IPOD_ARCH 1 6#define IPOD_ARCH 1
7 7
8#define MODEL_NAME "Apple iPod Video"
9
8/* For Rolo and boot loader */ 10/* For Rolo and boot loader */
9#define MODEL_NUMBER 5 11#define MODEL_NUMBER 5
10 12
diff --git a/firmware/export/config-logikdax.h b/firmware/export/config-logikdax.h
index 175bf7ccdf..c66a2ab581 100644
--- a/firmware/export/config-logikdax.h
+++ b/firmware/export/config-logikdax.h
@@ -6,6 +6,8 @@
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 27 7#define MODEL_NUMBER 27
8 8
9#define MODEL_NAME "Logik DAX MP3/DAB"
10
9/* define this if you have recording possibility */ 11/* define this if you have recording possibility */
10//#define HAVE_RECORDING 12//#define HAVE_RECORDING
11 13
diff --git a/firmware/export/config-m200.h b/firmware/export/config-m200.h
index 875debd257..f7ab78d87e 100644
--- a/firmware/export/config-m200.h
+++ b/firmware/export/config-m200.h
@@ -6,6 +6,8 @@
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 29 7#define MODEL_NUMBER 29
8 8
9#define MODEL_NAME "Sandisk Sansa m200 series"
10
9/* Enable FAT16 support */ 11/* Enable FAT16 support */
10#define HAVE_FAT16SUPPORT 12#define HAVE_FAT16SUPPORT
11 13
diff --git a/firmware/export/config-meizu-m6sl.h b/firmware/export/config-meizu-m6sl.h
index 96c163ce11..f10f548dd3 100644
--- a/firmware/export/config-meizu-m6sl.h
+++ b/firmware/export/config-meizu-m6sl.h
@@ -1,11 +1,13 @@
1/* 1/*
2 * This config file is for iAudio X5 2 * This config file is for Meizu M6SL
3 */ 3 */
4#define TARGET_TREE /* this target is using the target tree system */ 4#define TARGET_TREE /* this target is using the target tree system */
5 5
6/* For Rolo and boot loader */ 6/* For Rolo and boot loader */
7#define MODEL_NUMBER 1 7#define MODEL_NUMBER 1
8 8
9#define MODEL_NAME "Meizu M6SL"
10
9/* define this if you have recording possibility */ 11/* define this if you have recording possibility */
10//#define HAVE_RECORDING 12//#define HAVE_RECORDING
11 13
diff --git a/firmware/export/config-mrobe500.h b/firmware/export/config-mrobe500.h
index 285a53a014..b9b8ee65ab 100644
--- a/firmware/export/config-mrobe500.h
+++ b/firmware/export/config-mrobe500.h
@@ -27,6 +27,7 @@
27#define CONFIG_SDRAM_START 0x00900000 27#define CONFIG_SDRAM_START 0x00900000
28 28
29#define OLYMPUS_MROBE_500 1 29#define OLYMPUS_MROBE_500 1
30#define MODEL_NAME "Olympus M:Robe 500i"
30 31
31/* For Rolo and boot loader */ 32/* For Rolo and boot loader */
32#define MODEL_NUMBER 22 33#define MODEL_NUMBER 22
diff --git a/firmware/export/config-ondavx747.h b/firmware/export/config-ondavx747.h
index 9f5c800d3c..66570d4622 100644
--- a/firmware/export/config-ondavx747.h
+++ b/firmware/export/config-ondavx747.h
@@ -28,6 +28,8 @@
28 28
29#define ONDA_VX747 1 29#define ONDA_VX747 1
30 30
31#define MODEL_NAME "Onda VX747"
32
31/* For Rolo and boot loader */ 33/* For Rolo and boot loader */
32#define MODEL_NUMBER 30 34#define MODEL_NUMBER 30
33 35
diff --git a/firmware/export/config-ondiofm.h b/firmware/export/config-ondiofm.h
index d750b2d756..8d3b040745 100644
--- a/firmware/export/config-ondiofm.h
+++ b/firmware/export/config-ondiofm.h
@@ -1,6 +1,8 @@
1/* define this if you have recording possibility */ 1/* define this if you have recording possibility */
2#define HAVE_RECORDING 2#define HAVE_RECORDING
3 3
4#define MODEL_NAME "Ondio FM"
5
4/* Define bitmask of input sources - recordable bitmask can be defined 6/* Define bitmask of input sources - recordable bitmask can be defined
5 explicitly if different */ 7 explicitly if different */
6#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN) 8#define INPUT_SRC_CAPS (SRC_CAP_MIC | SRC_CAP_LINEIN)
diff --git a/firmware/export/config-ondiosp.h b/firmware/export/config-ondiosp.h
index 43dbaaf06b..fc99bf459d 100644
--- a/firmware/export/config-ondiosp.h
+++ b/firmware/export/config-ondiosp.h
@@ -1,6 +1,8 @@
1/* define this if you have a bitmap LCD display */ 1/* define this if you have a bitmap LCD display */
2#define HAVE_LCD_BITMAP 2#define HAVE_LCD_BITMAP
3 3
4#define MODEL_NAME "Ondio SP"
5
4/* define this if you can flip your LCD */ 6/* define this if you can flip your LCD */
5#define HAVE_LCD_FLIP 7#define HAVE_LCD_FLIP
6 8
diff --git a/firmware/export/config-player.h b/firmware/export/config-player.h
index 2fefcbdcac..186bd5a58d 100644
--- a/firmware/export/config-player.h
+++ b/firmware/export/config-player.h
@@ -1,6 +1,8 @@
1/* define this if you use an ATA controller */ 1/* define this if you use an ATA controller */
2#define HAVE_ATA 2#define HAVE_ATA
3 3
4#define MODEL_NAME "Archos Player/Studio"
5
4/* define this if you have a charcell LCD display */ 6/* define this if you have a charcell LCD display */
5#define HAVE_LCD_CHARCELLS 7#define HAVE_LCD_CHARCELLS
6 8
diff --git a/firmware/export/config-recorder.h b/firmware/export/config-recorder.h
index bd9bd07d58..b86e31630a 100644
--- a/firmware/export/config-recorder.h
+++ b/firmware/export/config-recorder.h
@@ -1,6 +1,8 @@
1/* define this if you use an ATA controller */ 1/* define this if you use an ATA controller */
2#define HAVE_ATA 2#define HAVE_ATA
3 3
4#define MODEL_NAME "Archos Recorder"
5
4/* define this if you have recording possibility */ 6/* define this if you have recording possibility */
5#define HAVE_RECORDING 7#define HAVE_RECORDING
6 8
diff --git a/firmware/export/config-recorderv2.h b/firmware/export/config-recorderv2.h
index 50066918b1..fd00b78887 100644
--- a/firmware/export/config-recorderv2.h
+++ b/firmware/export/config-recorderv2.h
@@ -1,6 +1,8 @@
1/* define this if you use an ATA controller */ 1/* define this if you use an ATA controller */
2#define HAVE_ATA 2#define HAVE_ATA
3 3
4#define MODEL_NAME "Archos Recorder v2"
5
4/* define this if you have recording possibility */ 6/* define this if you have recording possibility */
5#define HAVE_RECORDING 7#define HAVE_RECORDING
6 8
diff --git a/firmware/export/config-tpj1022.h b/firmware/export/config-tpj1022.h
index 5a633ecee1..ea235edc24 100644
--- a/firmware/export/config-tpj1022.h
+++ b/firmware/export/config-tpj1022.h
@@ -4,6 +4,8 @@
4 4
5#define TARGET_TREE /* this target is using the target tree system */ 5#define TARGET_TREE /* this target is using the target tree system */
6 6
7#define MODEL_NAME "Tatung Elio TPJ-1022"
8
7/* For Rolo and boot loader */ 9/* For Rolo and boot loader */
8#define MODEL_NUMBER 15 10#define MODEL_NUMBER 15
9 11
diff --git a/utils/wpseditor/buildall.bat b/utils/wpseditor/buildall.bat
deleted file mode 100644
index b813a38510..0000000000
--- a/utils/wpseditor/buildall.bat
+++ /dev/null
@@ -1,9 +0,0 @@
1@echo off
2echo qmake...
3qmake
4echo Building gui...
5mingw32-make 1>nul
6echo Building libs...
7cd libwps
8call buildall.bat 2>nul
9cd ..
diff --git a/utils/wpseditor/buildall.sh b/utils/wpseditor/buildall.sh
deleted file mode 100755
index c891900813..0000000000
--- a/utils/wpseditor/buildall.sh
+++ /dev/null
@@ -1,4 +0,0 @@
1#!/bin/sh
2qmake && make
3cd libwps
4./buildall.sh 2> /dev/null
diff --git a/utils/wpseditor/gui/src/qwpsdrawer.cpp b/utils/wpseditor/gui/src/qwpsdrawer.cpp
index a506d5c03b..096d835491 100644
--- a/utils/wpseditor/gui/src/qwpsdrawer.cpp
+++ b/utils/wpseditor/gui/src/qwpsdrawer.cpp
@@ -17,14 +17,14 @@ QImage QWpsDrawer::backdrop;
17proxy_api QWpsDrawer::api; 17proxy_api QWpsDrawer::api;
18 18
19QWpsDrawer::QWpsDrawer( QWpsState *ws,QTrackState *ms, QWidget *parent ) 19QWpsDrawer::QWpsDrawer( QWpsState *ws,QTrackState *ms, QWidget *parent )
20 : QWidget(parent),wpsState(ws),trackState(ms),showGrid(false),mCurTarget("h10_5gb") { 20 : QWidget(parent),wpsState(ws),trackState(ms),showGrid(false),mCurTarget(qApp->applicationDirPath()+"/libwps_IRIVER_H10_5GB") {
21 21
22 tryResolve(); 22 tryResolve();
23 newTempWps(); 23 newTempWps();
24} 24}
25 25
26bool QWpsDrawer::tryResolve() { 26bool QWpsDrawer::tryResolve() {
27 QLibrary lib(qApp->applicationDirPath()+"/libwps_"+mCurTarget); 27 QLibrary lib(mCurTarget);
28 lib_wps_init = (pfwps_init)lib.resolve("wps_init"); 28 lib_wps_init = (pfwps_init)lib.resolve("wps_init");
29 lib_wps_display = (pfwps_display)lib.resolve("wps_display"); 29 lib_wps_display = (pfwps_display)lib.resolve("wps_display");
30 lib_wps_refresh = (pfwps_refresh)lib.resolve("wps_refresh"); 30 lib_wps_refresh = (pfwps_refresh)lib.resolve("wps_refresh");
@@ -47,7 +47,7 @@ bool QWpsDrawer::tryResolve() {
47 api.load_wps_backdrop = &QWpsDrawer::load_wps_backdrop; 47 api.load_wps_backdrop = &QWpsDrawer::load_wps_backdrop;
48 api.read_bmp_file = &QWpsDrawer::read_bmp_file; 48 api.read_bmp_file = &QWpsDrawer::read_bmp_file;
49 api.debugf = &qlogger; 49 api.debugf = &qlogger;
50 qDebug()<<(qApp->applicationDirPath()+"/libwps_"+mCurTarget+" resolved"); 50 qDebug()<<(mCurTarget+" resolved");
51 } 51 }
52 return mResolved; 52 return mResolved;
53} 53}
@@ -222,7 +222,7 @@ QString QWpsDrawer::getModelName(QString libraryName) {
222QList<QString> QWpsDrawer::getTargets() { 222QList<QString> QWpsDrawer::getTargets() {
223 QList<QString> list ; 223 QList<QString> list ;
224 QDir d = QDir(qApp->applicationDirPath()); 224 QDir d = QDir(qApp->applicationDirPath());
225 QFileInfoList libs = d.entryInfoList(QStringList("libwps*")); 225 QFileInfoList libs = d.entryInfoList(QStringList("libwps_*"));
226 qDebug() << libs.size()<<"libs found"; 226 qDebug() << libs.size()<<"libs found";
227 for (int i = 0; i < libs.size(); i++) { 227 for (int i = 0; i < libs.size(); i++) {
228 QString modelName = getModelName(libs[i].absoluteFilePath()); 228 QString modelName = getModelName(libs[i].absoluteFilePath());
@@ -230,15 +230,24 @@ QList<QString> QWpsDrawer::getTargets() {
230 if (modelName == "unknown") 230 if (modelName == "unknown")
231 continue; 231 continue;
232 list.append(modelName); 232 list.append(modelName);
233 libs_array[i].target_name = modelName;
234 libs_array[i].lib = libs[i].absoluteFilePath();
233 } 235 }
234 return list; 236 return list;
235} 237}
236bool QWpsDrawer::setTarget(QString target) { 238bool QWpsDrawer::setTarget(QString target) {
237 QLibrary lib(qApp->applicationDirPath()+"/libwps_"+mCurTarget); 239 foreach(lib_t cur_lib, libs_array)
238 //lib.unload(); 240 {
239 if (getModelName("libwps_"+target)!="unknown") { 241 if(cur_lib.target_name == target)
240 mCurTarget = target; 242 {
241 return tryResolve(); 243 QLibrary lib(cur_lib.lib);
244 //lib.unload();
245 if (getModelName(cur_lib.lib) != "unknown")
246 {
247 mCurTarget = cur_lib.lib;
248 return tryResolve();
249 }
250 }
242 } 251 }
243 return false; 252 return false;
244} 253}
diff --git a/utils/wpseditor/gui/src/qwpsdrawer.h b/utils/wpseditor/gui/src/qwpsdrawer.h
index 65e98723f5..eec4300286 100644
--- a/utils/wpseditor/gui/src/qwpsdrawer.h
+++ b/utils/wpseditor/gui/src/qwpsdrawer.h
@@ -5,6 +5,7 @@
5#include <QPixmap> 5#include <QPixmap>
6#include <QPointer> 6#include <QPointer>
7#include <QTemporaryFile> 7#include <QTemporaryFile>
8#include <QMap>
8 9
9#include "wpsstate.h" 10#include "wpsstate.h"
10 11
@@ -37,6 +38,13 @@ class QWpsDrawer : public QWidget {
37 QString mWpsString; 38 QString mWpsString;
38 QString mCurTarget; 39 QString mCurTarget;
39 static QString mTmpWpsString; 40 static QString mTmpWpsString;
41
42 struct lib_t
43 {
44 QString target_name;
45 QString lib;
46 };
47 QMap<int, lib_t> libs_array;
40 48
41 49
42protected: 50protected:
diff --git a/utils/wpseditor/libwps/Makefile b/utils/wpseditor/libwps/Makefile
index c5d0a39de1..879cc8e4db 100644
--- a/utils/wpseditor/libwps/Makefile
+++ b/utils/wpseditor/libwps/Makefile
@@ -8,15 +8,13 @@
8# 8#
9ROOT=../../.. 9ROOT=../../..
10 10
11OS = w32 11ifneq ($or($(findstring MINGW,$(shell uname)),$(findstring Windows_NT,$(OS))),)
12CC = gcc
13MKDIR = mkdir -p
14
15ifeq ($(findstring MINGW,$(shell uname)),MINGW)
16 OS = w32 12 OS = w32
17 CC = mingw32-gcc 13 CC = mingw32-gcc
18 COPY = copy 14 COPY = copy
19 RM = rm 15 RM = del
16 EXT = .dll
17 LDFLAGS = -DBUILD_DLL
20endif 18endif
21 19
22ifeq ($(findstring Linux,$(shell uname)),Linux) 20ifeq ($(findstring Linux,$(shell uname)),Linux)
@@ -24,39 +22,48 @@ ifeq ($(findstring Linux,$(shell uname)),Linux)
24 CC = gcc 22 CC = gcc
25 COPY = cp 23 COPY = cp
26 RM = rm -f 24 RM = rm -f
25 EXT = .so
26 LDFLAGS = -fPIC
27endif 27endif
28 28
29 29TARGETS=IRIVER_H10 \
30 IRIVER_H10_5GB \
31 IPOD_COLOR \
32 IPOD_NANO \
33 IPOD_VIDEO \
34 GIGABEAT_F \
35 GIGABEAT_S \
36 SANSA_E200 \
37 SANSA_C200
30 38
31SOURCES= \ 39SOURCES= \
32 src/api.c \ 40 src/api.c \
33 src/dummies.c \ 41 src/dummies.c \
34 src/lcd.c \ 42 src/lcd.c \
35 src/proxy.c \ 43 src/proxy.c \
36 $(ROOT)/apps/gui/scrollbar.c \ 44 $(ROOT)/apps/gui/scrollbar.c \
37 $(ROOT)/apps/gui/gwps-common.c \ 45 $(ROOT)/apps/gui/gwps-common.c \
38 $(ROOT)/apps/gui/wps_parser.c \ 46 $(ROOT)/apps/gui/wps_parser.c \
39 $(ROOT)/apps/gui/wps_debug.c \ 47 $(ROOT)/apps/gui/wps_debug.c \
40 $(ROOT)/apps/recorder/peakmeter.c \ 48 $(ROOT)/apps/recorder/peakmeter.c \
41 $(ROOT)/apps/recorder/icons.c \ 49 $(ROOT)/apps/recorder/icons.c \
42 $(ROOT)/apps/misc.c \ 50 $(ROOT)/apps/misc.c \
43 $(ROOT)/apps/status.c \ 51 $(ROOT)/apps/status.c \
44 $(ROOT)/firmware/common/ctype.c \ 52 $(ROOT)/firmware/common/ctype.c \
45 $(ROOT)/firmware/common/timefuncs.c \ 53 $(ROOT)/firmware/common/timefuncs.c \
46 $(ROOT)/firmware/common/unicode.c \ 54 $(ROOT)/firmware/common/unicode.c \
47 $(ROOT)/firmware/font.c \ 55 $(ROOT)/firmware/font.c \
48 $(ROOT)/firmware/font_cache.c \ 56 $(ROOT)/firmware/font_cache.c \
49 $(ROOT)/firmware/id3.c \ 57 $(ROOT)/firmware/id3.c \
50 $(ROOT)/firmware/lru.c \ 58 $(ROOT)/firmware/lru.c \
51 $(ROOT)/firmware/mp3data.c \ 59 $(ROOT)/firmware/mp3data.c \
52 $(ROOT)/firmware/replaygain.c 60 $(ROOT)/firmware/replaygain.c
53 61# $(ROOT)/apps/recorder/bmp.c
54# $(ROOT)/apps/recorder/bmp.c 62# $(ROOT)/apps/abrepeat.c \
55# $(ROOT)/apps/abrepeat.c \ 63# $(ROOT)/apps/action.c \
56# $(ROOT)/apps/action.c \ 64# $(ROOT)/apps/cuesheet.c \
57# $(ROOT)/apps/cuesheet.c \ 65# $(ROOT)/apps/gui/statusbar.c \
58# $(ROOT)/apps/gui/statusbar.c \ 66# $(ROOT)/apps/gui/gwps.c \
59# $(ROOT)/apps/gui/gwps.c \
60 67
61INCLUDE=-I src/include \ 68INCLUDE=-I src/include \
62 -I $(ROOT)/apps/gui \ 69 -I $(ROOT)/apps/gui \
@@ -68,34 +75,14 @@ INCLUDE=-I src/include \
68 75
69CFLAGS = -g -Wall -D__PCTOOL__ -DWPSEDITOR -DDEBUG -DROCKBOX_DIR_LEN=1 -DBUTTON_REMOTE 76CFLAGS = -g -Wall -D__PCTOOL__ -DWPSEDITOR -DDEBUG -DROCKBOX_DIR_LEN=1 -DBUTTON_REMOTE
70 77
71all: 78RESULTS := $(patsubst %,libwps_%$(EXT),$(TARGETS))
72 @echo To build, run the buildall.sh script
73
74build: build-$(OS)
75
76build-w32: $(SOURCES)
77 @echo CC [$(TARGET)]
78 @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" -DBUILD_DLL $(SOURCES) -shared -o libwps_$(MODEL).dll
79
80build-linux: $(SOURCES)
81 @echo CC [$(TARGET)]
82 @$(CC) $(INCLUDE) $(CFLAGS) -D$(TARGET) -DTARGET_MODEL=\"$(MODEL)\" -shared -Wl,-soname,libwps_$(MODEL).so,-olibwps_$(MODEL).so -fPIC $(SOURCES)
83
84clean: clean-$(OS)
85
86clean-w32:
87 $(RM) "libwps_$(MODEL).dll"
88
89clean-linux:
90 $(RM) "libwps_$(MODEL).so"
91 79
92shared: shared-$(OS) 80all: $(RESULTS)
81 @$(COPY) $(RESULTS) ../gui/bin/
93 82
94shared-w32: $(SOURCES) 83libwps_%$(EXT): $(SOURCES)
95 @echo CC [IRIVER_H10_5GB] 84 @echo CC [$(subst libwps_,,$(subst $(EXT),,$@))]
96 @$(CC) $(INCLUDE) $(CFLAGS) -DIRIVER_H10_5GB -DTARGET_MODEL=\"h10_5gb\" -DBUILD_DLL -shared $(SOURCES) -o ../gui/bin/libwps_h10_5gb.dll 85 @$(CC) $(INCLUDE) $(CFLAGS) -D$(subst libwps_,,$(subst $(EXT),,$@)) $(LDFLAGS) -shared -o $@ $+
97 86
98shared-linux: $(SOURCES) 87clean:
99 @echo CC [IRIVER_H10_5GB] 88 $(RM) $(RESULTS)
100 @$(CC) $(INCLUDE) $(CFLAGS) -DIRIVER_H10_5GB -DTARGET_MODEL=\"h10_5gb\" -shared -Wl,-soname,libwps_h10_5gb.so,-olibwps_h10_5gb.so -fPIC $(SOURCES)
101 @$(COPY) libwps_h10_5gb.so ../gui/bin/libwps_h10_5gb.so
diff --git a/utils/wpseditor/libwps/buildall.bat b/utils/wpseditor/libwps/buildall.bat
deleted file mode 100644
index fb66b41904..0000000000
--- a/utils/wpseditor/libwps/buildall.bat
+++ /dev/null
@@ -1,4 +0,0 @@
1@echo off
2FOR /F "tokens=1,2* delims=, " %%i in (targets.txt) do @mingw32-make MODEL=%%j TARGET=%%i build 2>nul
3echo Copying files...
4xcopy /I /Y *.dll ..\gui\bin
diff --git a/utils/wpseditor/libwps/buildall.sh b/utils/wpseditor/libwps/buildall.sh
deleted file mode 100755
index 0f32bb9b9a..0000000000
--- a/utils/wpseditor/libwps/buildall.sh
+++ /dev/null
@@ -1,9 +0,0 @@
1#!/bin/sh
2cat targets.txt | (
3 while read target model
4 do
5 make MODEL=$model TARGET=$target build
6 done
7 cp *.dll ../gui/bin
8 cp *.so ../gui/bin
9)
diff --git a/utils/wpseditor/libwps/cleanall.sh b/utils/wpseditor/libwps/cleanall.sh
deleted file mode 100644
index 15b733a6a7..0000000000
--- a/utils/wpseditor/libwps/cleanall.sh
+++ /dev/null
@@ -1,7 +0,0 @@
1#!/bin/sh
2cat targets.txt | (
3 while read target model
4 do
5 make MODEL=$model TARGET=$target clean
6 done
7)
diff --git a/utils/wpseditor/libwps/src/proxy.c b/utils/wpseditor/libwps/src/proxy.c
index 8f9218e3ff..1e4804cd11 100644
--- a/utils/wpseditor/libwps/src/proxy.c
+++ b/utils/wpseditor/libwps/src/proxy.c
@@ -23,8 +23,8 @@ pfdebugf dbgf = 0;
23static char pluginbuf[PLUGIN_BUFFER_SIZE]; 23static char pluginbuf[PLUGIN_BUFFER_SIZE];
24 24
25const char* get_model_name(){ 25const char* get_model_name(){
26#ifdef TARGET_MODEL 26#ifdef MODEL_NAME
27 return TARGET_MODEL; 27 return MODEL_NAME;
28#else 28#else
29 return "unknown"; 29 return "unknown";
30#endif 30#endif
diff --git a/utils/wpseditor/libwps/targets.txt b/utils/wpseditor/libwps/targets.txt
deleted file mode 100644
index 547a2ba42c..0000000000
--- a/utils/wpseditor/libwps/targets.txt
+++ /dev/null
@@ -1,9 +0,0 @@
1IRIVER_H10 h10
2IRIVER_H10_5GB h10_5gb
3IPOD_COLOR ipodcolor
4IPOD_NANO ipodnano
5IPOD_VIDEO ipodvideo
6GIGABEAT_F gigabeatf
7GIGABEAT_S gigabeats
8SANSA_E200 e200
9SANSA_C200 c200
diff --git a/utils/wpseditor/screenshot/Makefile b/utils/wpseditor/screenshot/Makefile
index 18a6de35a5..f9309f58a5 100644
--- a/utils/wpseditor/screenshot/Makefile
+++ b/utils/wpseditor/screenshot/Makefile
@@ -8,31 +8,17 @@
8# 8#
9ROOT=../../.. 9ROOT=../../..
10 10
11OS = w32
12CC = gcc
13
14ifeq ($(findstring MINGW,$(shell uname)),MINGW)
15OS = w32
16CC = mingw32-gcc
17RM = rm
18endif
19
20ifeq ($(findstring Linux,$(shell uname)),Linux)
21OS = linux
22CC = gcc 11CC = gcc
23RM = rm -f 12RM = rm -f
24endif
25
26
27 13
28COMMON= main.c gd_bmp.c 14COMMON = main.c gd_bmp.c
29 15
30INCLUDE=-I ../libwps/src \ 16INCLUDE = -I ../libwps/src \
31 -I $(ROOT)/apps/gui \ 17 -I $(ROOT)/apps/gui \
32 -I $(ROOT)/firmware/export \ 18 -I $(ROOT)/firmware/export \
33 -I $(ROOT)/apps/recorder \ 19 -I $(ROOT)/apps/recorder \
34 -I $(ROOT)/apps \ 20 -I $(ROOT)/apps \
35 -I . 21 -I .
36 22
37CFLAGS = -g -Wall 23CFLAGS = -g -Wall
38 24
diff --git a/utils/wpseditor/wpseditor.pro b/utils/wpseditor/wpseditor.pro
index 0e9ecbbf51..df954ed68a 100644
--- a/utils/wpseditor/wpseditor.pro
+++ b/utils/wpseditor/wpseditor.pro
@@ -1,2 +1,4 @@
1SUBDIRS =gui/src/QPropertyEditor gui
2TEMPLATE = subdirs 1TEMPLATE = subdirs
2SUBDIRS = gui/src/QPropertyEditor gui libwps
3libwps.commands = @$(MAKE) -C libwps
4QMAKE_EXTRA_TARGETS += libwps