1 |
51 |
ameziti |
diff -rup sdcc-src-3.1.0/Makefile.common.in sdcc-src-3.1.0-pblaze/Makefile.common.in
|
2 |
|
|
--- sdcc-src-3.1.0/Makefile.common.in 2011-10-20 11:10:56.000000000 +0200
|
3 |
|
|
+++ sdcc-src-3.1.0-pblaze/Makefile.common.in 2011-12-04 13:58:18.197756400 +0100
|
4 |
|
|
@@ -51,6 +51,7 @@ OPT_DISABLE_Z80 = @OPT_DISABLE_Z80@
|
5 |
|
|
OPT_DISABLE_Z180 = @OPT_DISABLE_Z180@
|
6 |
|
|
OPT_DISABLE_R2K = @OPT_DISABLE_R2K@
|
7 |
|
|
OPT_DISABLE_GBZ80 = @OPT_DISABLE_GBZ80@
|
8 |
|
|
+OPT_DISABLE_PBLAZE = @OPT_DISABLE_PBLAZE@
|
9 |
|
|
|
10 |
|
|
OPT_DISABLE_UCSIM = @OPT_DISABLE_UCSIM@
|
11 |
|
|
OPT_DISABLE_DEVICE_LIB= @OPT_DISABLE_DEVICE_LIB@
|
12 |
|
|
diff -rup sdcc-src-3.1.0/configure sdcc-src-3.1.0-pblaze/configure
|
13 |
|
|
--- sdcc-src-3.1.0/configure 2011-10-25 20:43:54.000000000 +0200
|
14 |
|
|
+++ sdcc-src-3.1.0-pblaze/configure 2011-12-05 22:37:52.945707300 +0100
|
15 |
|
|
@@ -620,6 +620,7 @@ OPT_DISABLE_R2K
|
16 |
|
|
OPT_DISABLE_Z180
|
17 |
|
|
OPT_DISABLE_Z80
|
18 |
|
|
OPT_DISABLE_MCS51
|
19 |
|
|
+OPT_DISABLE_PBLAZE
|
20 |
|
|
non_free_lib_dir_suffix
|
21 |
|
|
lib_dir_suffix
|
22 |
|
|
non_free_include_dir_suffix
|
23 |
|
|
@@ -716,6 +717,7 @@ enable_pic16_port
|
24 |
|
|
enable_hc08_port
|
25 |
|
|
enable_avr_port
|
26 |
|
|
enable_xa51_port
|
27 |
|
|
+enable_pblaze_port
|
28 |
|
|
enable_ucsim
|
29 |
|
|
enable_device_lib
|
30 |
|
|
enable_packihx
|
31 |
|
|
@@ -1373,6 +1375,7 @@ Optional Features:
|
32 |
|
|
--disable-pic14-port Excludes the PIC14 port
|
33 |
|
|
--disable-pic16-port Excludes the PIC16 port
|
34 |
|
|
--disable-hc08-port Excludes the HC08 port
|
35 |
|
|
+ --disable-pblaze-port Excludes the PBLAZE port
|
36 |
|
|
--enable-avr-port Includes the AVR port (disabled by default)
|
37 |
|
|
--enable-xa51-port Includes the XA51 port (disabled by default)
|
38 |
|
|
--disable-ucsim Disables configuring and building of ucsim
|
39 |
|
|
@@ -6580,6 +6583,32 @@ _ACEOF
|
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|
43 |
|
|
+ # Check whether --enable-pblaze-port was given.
|
44 |
|
|
+if test "${enable_pblaze_port+set}" = set; then :
|
45 |
|
|
+ enableval=$enable_pblaze_port;
|
46 |
|
|
+fi
|
47 |
|
|
+
|
48 |
|
|
+
|
49 |
|
|
+ if test "$enable_pblaze_port" = "no"; then
|
50 |
|
|
+ OPT_DISABLE_PBLAZE=1
|
51 |
|
|
+ else
|
52 |
|
|
+ enable_pblaze_port="yes"
|
53 |
|
|
+ OPT_DISABLE_PBLAZE=0
|
54 |
|
|
+ fi
|
55 |
|
|
+
|
56 |
|
|
+
|
57 |
|
|
+cat >>confdefs.h <<_ACEOF
|
58 |
|
|
+#define OPT_DISABLE_PBLAZE $OPT_DISABLE_PBLAZE
|
59 |
|
|
+_ACEOF
|
60 |
|
|
+
|
61 |
|
|
+
|
62 |
|
|
+
|
63 |
|
|
+ echo pblaze >>ports.all
|
64 |
|
|
+ if test $OPT_DISABLE_PBLAZE = 0; then
|
65 |
|
|
+ echo pblaze >>ports.build
|
66 |
|
|
+ fi
|
67 |
|
|
+
|
68 |
|
|
+
|
69 |
|
|
# Check whether --enable-ucsim was given.
|
70 |
|
|
if test "${enable_ucsim+set}" = set; then :
|
71 |
|
|
enableval=$enable_ucsim;
|
72 |
|
|
@@ -7068,6 +7097,10 @@ if test $OPT_DISABLE_Z80 = 0 || test $OP
|
73 |
|
|
|
74 |
|
|
fi
|
75 |
|
|
|
76 |
|
|
+if test $OPT_DISABLE_PBLAZE = 0; then
|
77 |
|
|
+ ac_config_files="$ac_config_files src/pblaze/Makefile"
|
78 |
|
|
+fi
|
79 |
|
|
+
|
80 |
|
|
if test $OPT_DISABLE_Z80 = 0 || test $OPT_DISABLE_Z180 = 0; then
|
81 |
|
|
ac_config_files="$ac_config_files sdas/asz80/Makefile"
|
82 |
|
|
|
83 |
|
|
@@ -7797,6 +7830,7 @@ do
|
84 |
|
|
"src/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES src/hc08/Makefile" ;;
|
85 |
|
|
"sdas/as6808/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as6808/Makefile" ;;
|
86 |
|
|
"device/lib/hc08/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/hc08/Makefile" ;;
|
87 |
|
|
+ "src/pblaze/Makefile") CONFIG_FILES="$CONFIG_FILES src/pblaze/Makefile" ;;
|
88 |
|
|
"src/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES src/mcs51/Makefile" ;;
|
89 |
|
|
"sdas/as8051/Makefile") CONFIG_FILES="$CONFIG_FILES sdas/as8051/Makefile" ;;
|
90 |
|
|
"device/lib/mcs51/Makefile") CONFIG_FILES="$CONFIG_FILES device/lib/mcs51/Makefile" ;;
|
91 |
|
|
@@ -8805,6 +8839,7 @@ sdcc ${VERSION} is now configured for
|
92 |
|
|
z80 ${enable_z80_port}
|
93 |
|
|
z180 ${enable_z180_port}
|
94 |
|
|
r2k ${enable_r2k_port}
|
95 |
|
|
+ pblaze ${enable_pblaze_port}
|
96 |
|
|
|
97 |
|
|
Disable packihx: ${OPT_DISABLE_PACKIHX}
|
98 |
|
|
Disable ucsim: ${OPT_DISABLE_UCSIM}
|
99 |
|
|
@@ -8865,6 +8900,7 @@ sdcc ${VERSION} is now configured for
|
100 |
|
|
z80 ${enable_z80_port}
|
101 |
|
|
z180 ${enable_z180_port}
|
102 |
|
|
r2k ${enable_r2k_port}
|
103 |
|
|
+ pblaze ${enable_pblaze_port}
|
104 |
|
|
|
105 |
|
|
Disable packihx: ${OPT_DISABLE_PACKIHX}
|
106 |
|
|
Disable ucsim: ${OPT_DISABLE_UCSIM}
|
107 |
|
|
diff -rup sdcc-src-3.1.0/configure.in sdcc-src-3.1.0-pblaze/configure.in
|
108 |
|
|
--- sdcc-src-3.1.0/configure.in 2011-10-25 20:43:54.000000000 +0200
|
109 |
|
|
+++ sdcc-src-3.1.0-pblaze/configure.in 2011-12-04 14:42:23.262045400 +0100
|
110 |
|
|
@@ -815,6 +815,7 @@ AC_DO_PORT(ds400, ds400, DS400, [Exclude
|
111 |
|
|
AC_DO_PORT(pic14, pic14, PIC14, [Excludes the PIC14 port])
|
112 |
|
|
AC_DO_PORT(pic16, pic16, PIC16, [Excludes the PIC16 port])
|
113 |
|
|
AC_DO_PORT(hc08, hc08, HC08, [Excludes the HC08 port])
|
114 |
|
|
+AC_DO_PORT(pblaze, pblaze, PBLAZE, [Excludes the PBLAZE port])
|
115 |
|
|
|
116 |
|
|
# Unsupported targets
|
117 |
|
|
AC_DO_PORT_ENABLER(avr, avr, AVR, [Includes the AVR port (disabled by default)])
|
118 |
|
|
@@ -906,6 +907,10 @@ if test $OPT_DISABLE_Z80 = 0 || test $OP
|
119 |
|
|
AC_CONFIG_FILES([src/z80/Makefile])
|
120 |
|
|
fi
|
121 |
|
|
|
122 |
|
|
+if test $OPT_DISABLE_PBLAZE = 0; then
|
123 |
|
|
+ AC_CONFIG_FILES([src/pblaze/Makefile])
|
124 |
|
|
+fi
|
125 |
|
|
+
|
126 |
|
|
if test $OPT_DISABLE_Z80 = 0 || test $OPT_DISABLE_Z180 = 0; then
|
127 |
|
|
AC_CONFIG_FILES([sdas/asz80/Makefile])
|
128 |
|
|
test $OPT_DISABLE_DEVICE_LIB = 0 && AC_CONFIG_FILES([device/lib/z80/Makefile
|
129 |
|
|
@@ -991,6 +996,7 @@ sdcc ${VERSION} is now configured for
|
130 |
|
|
z80 ${enable_z80_port}
|
131 |
|
|
z180 ${enable_z180_port}
|
132 |
|
|
r2k ${enable_r2k_port}
|
133 |
|
|
+ pblaze ${enable_pblaze_port}
|
134 |
|
|
|
135 |
|
|
Disable packihx: ${OPT_DISABLE_PACKIHX}
|
136 |
|
|
Disable ucsim: ${OPT_DISABLE_UCSIM}
|
137 |
|
|
Only in sdcc-src-3.1.0-pblaze/device/examples: pblaze
|
138 |
|
|
diff -rup sdcc-src-3.1.0/device/include/Makefile.in sdcc-src-3.1.0-pblaze/device/include/Makefile.in
|
139 |
|
|
--- sdcc-src-3.1.0/device/include/Makefile.in 2011-10-12 16:09:15.000000000 +0200
|
140 |
|
|
+++ sdcc-src-3.1.0-pblaze/device/include/Makefile.in 2011-12-05 22:46:57.573665600 +0100
|
141 |
|
|
@@ -71,6 +71,10 @@ install: all installdirs
|
142 |
|
|
done; \
|
143 |
|
|
done; \
|
144 |
|
|
fi
|
145 |
|
|
+ # picoblaze
|
146 |
|
|
+ if [ "`grep pblaze $(top_builddir)/ports.build`" = pblaze ]; then \
|
147 |
|
|
+ $(CP) $(srcdir)/pblaze/*.h $(sdcc_includedir)/pblaze; \
|
148 |
|
|
+ fi
|
149 |
|
|
find $(sdcc_includedir) -type d -name '.svn' -exec rm -rf {} \;
|
150 |
|
|
# correct file modes
|
151 |
|
|
find $(sdcc_includedir) -type f -exec chmod 644 {} \;
|
152 |
|
|
@@ -96,7 +100,7 @@ installcheck:
|
153 |
|
|
# ---------------------------------
|
154 |
|
|
installdirs:
|
155 |
|
|
mkdir -p $(sdcc_includedir)
|
156 |
|
|
- for target in mcs51 ds390 ds400 pic14 pic16 z80 z180 gbz80 hc08; \
|
157 |
|
|
+ for target in mcs51 ds390 ds400 pic14 pic16 z80 z180 gbz80 hc08 pblaze; \
|
158 |
|
|
do \
|
159 |
|
|
if [ -d $(srcdir)/$${target} ]; \
|
160 |
|
|
then \
|
161 |
|
|
Only in sdcc-src-3.1.0-pblaze/device/include: pblaze
|
162 |
|
|
diff -rup sdcc-src-3.1.0/device/lib/Makefile.in sdcc-src-3.1.0-pblaze/device/lib/Makefile.in
|
163 |
|
|
--- sdcc-src-3.1.0/device/lib/Makefile.in 2011-11-01 17:35:46.000000000 +0100
|
164 |
|
|
+++ sdcc-src-3.1.0-pblaze/device/lib/Makefile.in 2011-12-04 13:55:53.223464300 +0100
|
165 |
|
|
@@ -70,6 +70,7 @@ OPT_DISABLE_XA51 = @OPT_DISABLE_XA51@
|
166 |
|
|
OPT_DISABLE_Z80 = @OPT_DISABLE_Z80@
|
167 |
|
|
OPT_DISABLE_Z180 = @OPT_DISABLE_Z180@
|
168 |
|
|
OPT_DISABLE_R2K = @OPT_DISABLE_R2K@
|
169 |
|
|
+OPT_DISABLE_PBLAZE= @OPT_DISABLE_PBLAZE@
|
170 |
|
|
|
171 |
|
|
SOURCES_FLOAT = $(COMMON_FLOAT) \
|
172 |
|
|
_fscmp.c \
|
173 |
|
|
diff -rup sdcc-src-3.1.0/device/non-free/lib/Makefile.in sdcc-src-3.1.0-pblaze/device/non-free/lib/Makefile.in
|
174 |
|
|
--- sdcc-src-3.1.0/device/non-free/lib/Makefile.in 2011-10-25 20:43:54.000000000 +0200
|
175 |
|
|
+++ sdcc-src-3.1.0-pblaze/device/non-free/lib/Makefile.in 2011-12-04 13:57:07.901735700 +0100
|
176 |
|
|
@@ -68,6 +68,7 @@ OPT_DISABLE_PIC14 = @OPT_DISABLE_PIC14@
|
177 |
|
|
OPT_DISABLE_PIC16 = @OPT_DISABLE_PIC16@
|
178 |
|
|
OPT_DISABLE_XA51 = @OPT_DISABLE_XA51@
|
179 |
|
|
OPT_DISABLE_Z80 = @OPT_DISABLE_Z80@
|
180 |
|
|
+OPT_DISABLE_PBLAZE= @OPT_DISABLE_PBLAZE@
|
181 |
|
|
|
182 |
|
|
SOURCES_FLOAT = $(COMMON_FLOAT) \
|
183 |
|
|
_fscmp.c \
|
184 |
|
|
Only in sdcc-src-3.1.0-pblaze/doc: sdcc_pblaze_instructions.txt
|
185 |
|
|
diff -rup sdcc-src-3.1.0/sdcc_vc_in.h sdcc-src-3.1.0-pblaze/sdcc_vc_in.h
|
186 |
|
|
--- sdcc-src-3.1.0/sdcc_vc_in.h 2011-06-10 23:19:02.000000000 +0200
|
187 |
|
|
+++ sdcc-src-3.1.0-pblaze/sdcc_vc_in.h 2011-12-04 15:18:59.087639400 +0100
|
188 |
|
|
@@ -77,6 +77,7 @@
|
189 |
|
|
#undef OPT_DISABLE_PIC14
|
190 |
|
|
#undef OPT_DISABLE_PIC16
|
191 |
|
|
#define OPT_DISABLE_XA51 1
|
192 |
|
|
+#undef OPT_DISABLE_PBLAZE
|
193 |
|
|
|
194 |
|
|
#endif /* SDCC_VC_HEADER */
|
195 |
|
|
|
196 |
|
|
diff -rup sdcc-src-3.1.0/sdccconf_in.h sdcc-src-3.1.0-pblaze/sdccconf_in.h
|
197 |
|
|
--- sdcc-src-3.1.0/sdccconf_in.h 2011-10-09 20:21:10.000000000 +0200
|
198 |
|
|
+++ sdcc-src-3.1.0-pblaze/sdccconf_in.h 2011-12-04 13:59:25.373598600 +0100
|
199 |
|
|
@@ -138,6 +138,9 @@
|
200 |
|
|
#undef OPT_DISABLE_R2K
|
201 |
|
|
|
202 |
|
|
/* XXX */
|
203 |
|
|
+#undef OPT_DISABLE_PBLAZE
|
204 |
|
|
+
|
205 |
|
|
+/* XXX */
|
206 |
|
|
#undef OPT_DISABLE_SDCDB
|
207 |
|
|
|
208 |
|
|
/* XXX */
|
209 |
|
|
diff -rup sdcc-src-3.1.0/src/SDCCmain.c sdcc-src-3.1.0-pblaze/src/SDCCmain.c
|
210 |
|
|
--- sdcc-src-3.1.0/src/SDCCmain.c 2011-10-09 20:21:10.000000000 +0200
|
211 |
|
|
+++ sdcc-src-3.1.0-pblaze/src/SDCCmain.c 2011-12-04 14:01:09.673564200 +0100
|
212 |
|
|
@@ -340,6 +340,9 @@ static PORT *_ports[] = {
|
213 |
|
|
#if !OPT_DISABLE_HC08
|
214 |
|
|
&hc08_port,
|
215 |
|
|
#endif
|
216 |
|
|
+#if !OPT_DISABLE_PBLAZE
|
217 |
|
|
+ &pblaze_port,
|
218 |
|
|
+#endif
|
219 |
|
|
};
|
220 |
|
|
|
221 |
|
|
#define NUM_PORTS (sizeof(_ports)/sizeof(_ports[0]))
|
222 |
|
|
Only in sdcc-src-3.1.0-pblaze/src: json
|
223 |
|
|
Only in sdcc-src-3.1.0-pblaze/src: pblaze
|
224 |
|
|
diff -rup sdcc-src-3.1.0/src/port.h sdcc-src-3.1.0-pblaze/src/port.h
|
225 |
|
|
--- sdcc-src-3.1.0/src/port.h 2011-10-09 20:21:10.000000000 +0200
|
226 |
|
|
+++ sdcc-src-3.1.0-pblaze/src/port.h 2011-12-04 15:56:51.809631700 +0100
|
227 |
|
|
@@ -22,6 +22,7 @@
|
228 |
|
|
#define TARGET_ID_HC08 11
|
229 |
|
|
#define TARGET_ID_Z180 12
|
230 |
|
|
#define TARGET_ID_R2K 13
|
231 |
|
|
+#define TARGET_ID_PBLAZE 14
|
232 |
|
|
|
233 |
|
|
/* Macro to test the target we are compiling for.
|
234 |
|
|
Can only be used after SDCCmain has defined the port
|
235 |
|
|
@@ -38,6 +39,7 @@
|
236 |
|
|
#define TARGET_IS_XA51 (port->id == TARGET_ID_XA51)
|
237 |
|
|
#define TARGET_IS_HC08 (port->id == TARGET_ID_HC08)
|
238 |
|
|
#define TARGET_IS_R2K (port->id == TARGET_ID_R2K)
|
239 |
|
|
+#define TARGET_IS_PBLAZE (port->id == TARGET_ID_PBLAZE)
|
240 |
|
|
|
241 |
|
|
#define TARGET_MCS51_LIKE (TARGET_IS_MCS51 || TARGET_IS_DS390 || TARGET_IS_DS400)
|
242 |
|
|
#define TARGET_Z80_LIKE (TARGET_IS_Z80 || TARGET_IS_Z180 || TARGET_IS_GBZ80 || TARGET_IS_R2K)
|
243 |
|
|
@@ -427,5 +429,8 @@ extern PORT ds400_port;
|
244 |
|
|
#if !OPT_DISABLE_HC08
|
245 |
|
|
extern PORT hc08_port;
|
246 |
|
|
#endif
|
247 |
|
|
+#if !OPT_DISABLE_PBLAZE
|
248 |
|
|
+extern PORT pblaze_port;
|
249 |
|
|
+#endif
|
250 |
|
|
|
251 |
|
|
#endif /* PORT_INCLUDE */
|