OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [services/] [gfx/] [mw/] [v2_0/] [cdl/] [microwindows.cdl] - Blame information for rev 565

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
# ====================================================================
2
#
3
#      microwindows.cdl
4
#
5
#      MicroWindows configuration data
6
#
7
# ====================================================================
8
#####ECOSGPLCOPYRIGHTBEGIN####
9
## -------------------------------------------
10
## This file is part of eCos, the Embedded Configurable Operating System.
11
## Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
12
##
13
## eCos is free software; you can redistribute it and/or modify it under
14
## the terms of the GNU General Public License as published by the Free
15
## Software Foundation; either version 2 or (at your option) any later version.
16
##
17
## eCos is distributed in the hope that it will be useful, but WITHOUT ANY
18
## WARRANTY; without even the implied warranty of MERCHANTABILITY or
19
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20
## for more details.
21
##
22
## You should have received a copy of the GNU General Public License along
23
## with eCos; if not, write to the Free Software Foundation, Inc.,
24
## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
25
##
26
## As a special exception, if other files instantiate templates or use macros
27
## or inline functions from this file, or you compile this file and link it
28
## with other works to produce a work based on this file, this file does not
29
## by itself cause the resulting work to be covered by the GNU General Public
30
## License. However the source code for this file must still be made available
31
## in accordance with section (3) of the GNU General Public License.
32
##
33
## This exception does not invalidate any other reasons why a work based on
34
## this file might be covered by the GNU General Public License.
35
##
36
## Alternative licenses for eCos may be arranged by contacting Red Hat, Inc.
37
## at http://sources.redhat.com/ecos/ecos-license/
38
## -------------------------------------------
39
#####ECOSGPLCOPYRIGHTEND####
40
# ====================================================================
41
######DESCRIPTIONBEGIN####
42
#
43
# Author(s):      jskov
44
# Original data:  jskov
45
# Contributors:
46
# Date:           2002-03-25
47
#
48
#####DESCRIPTIONEND####
49
#
50
# ====================================================================
51
 
52
cdl_package CYGPKG_MICROWINDOWS {
53
    display       "MicroWindows"
54
    requires      CYGPKG_POSIX
55
    requires      CYGPKG_ISOINFRA
56
    requires      CYGINT_ISO_C_TIME_TYPES
57
    requires      CYGINT_ISO_STRERROR
58
    requires      CYGINT_ISO_ERRNO
59
    requires      CYGINT_ISO_ERRNO_CODES
60
    requires      CYGINT_ISO_MALLOC
61
    requires      CYGINT_ISO_STRING_BSD_FUNCS
62
    requires      CYGPKG_IO_FILEIO
63
    description   "Microwindows."
64
 
65
    # Note: separating the stack implementation from the common support leads
66
    # to some rather incestious config file relationships.
67
    define_proc {
68
    }
69
 
70
    # FB drivers
71
    compile                                             \
72
        drivers/fblin16.c                               \
73
        drivers/fblin1.c                                \
74
        drivers/fblin24.c                               \
75
        drivers/fblin2.c                                \
76
        drivers/fblin32.c                               \
77
        drivers/fblin4.c                                \
78
        drivers/fblin8.c                                \
79
        drivers/fb.c                                    \
80
        drivers/fbportrait_down.c                       \
81
        drivers/fbportrait_left.c                       \
82
        drivers/fbportrait_right.c                      \
83
        drivers/genfont.c                               \
84
        drivers/genmem.c
85
 
86
     # engine
87
     compile                                    \
88
        engine/devarc.c                         \
89
        engine/devclip.c                        \
90
        engine/devdraw.c                        \
91
        engine/devfont.c                        \
92
        engine/devimage.c                       \
93
        engine/devkbd.c                         \
94
        engine/devlist.c                        \
95
        engine/devmouse.c                       \
96
        engine/devopen.c                        \
97
        engine/devpal1.c                        \
98
        engine/devpal2.c                        \
99
        engine/devpal4.c                        \
100
        engine/devpal8.c                        \
101
        engine/devpoly.c                        \
102
        engine/devrgn2.c                        \
103
        engine/devrgn.c                         \
104
        engine/devtimer.c                       \
105
        engine/error.c                          \
106
        engine/selfont.c
107
 
108
     # NANO X
109
     compile                                    \
110
        nanox/srvmain.c                         \
111
        nanox/srvfunc.c                         \
112
        nanox/srvutil.c                         \
113
        nanox/srvevent.c                        \
114
        nanox/srvclip.c                         \
115
        nanox/srvnet.c                          \
116
        nanox/clientfb.c                        \
117
        nanox/client.c                          \
118
        nanox/error.c                           \
119
        nanox/nxdraw.c                          \
120
        nanox/nxproto.c                         \
121
        nanox/nxutil.c
122
 
123
     # FONTS
124
     compile                                    \
125
        fonts/helvB10.c                         \
126
        fonts/helvB12.c                         \
127
        fonts/helvR10.c                         \
128
        fonts/rom8x16.c                         \
129
        fonts/rom8x8.c                          \
130
        fonts/symbol.c                          \
131
        fonts/winFreeSansSerif11x13.c           \
132
        fonts/winFreeSystem14x16.c              \
133
        fonts/X5x7.c                            \
134
        fonts/X6x13.c
135
 
136
    # eCos stuff
137
    cdl_option CYGBLD_MICROWINDOWS_ECOS {
138
        display   "Build MicroWindows eCos support"
139
        default_value 0
140
 
141
        # These files are unique to eCos
142
        compile ecos/ecos_init.c ecos/nanox_thread.c
143
    }
144
 
145
    # eCos ARM drivers
146
    cdl_option CYGBLD_MICROWINDOWS_ARM_DRIVERS {
147
        display   "Build MicroWindows ARM drivers"
148
        default_value CYGPKG_HAL_ARM
149
 
150
        compile                                 \
151
            drivers/scr_ecos.c                  \
152
            drivers/kbd_ipaq.c                  \
153
            drivers/mou_ipaq.c
154
 
155
        requires CYGBLD_MICROWINDOWS_ECOS
156
        requires CYGBLD_MICROWINDOWS_NANOWM
157
        requires CYGBLD_MICROWINDOWS_NXKBD
158
        requires CYGBLD_MICROWINDOWS_NANOX_DEMOS
159
 
160
        # This should come from the HAL
161
        requires { !CYGPKG_HAL_ARM_SA11X0_IPAQ || is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565") }
162
        requires { !CYGPKG_HAL_ARM_ARM9_AAED2000 || is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_TRUECOLOR555") }
163
 
164
    }
165
 
166
    cdl_component CYGPKG_MICROWINDOWS_PC {
167
        display     "Build options for PC hardware"
168
        flavor      none
169
        active_if   CYGPKG_HAL_I386_PCMB
170
        compile     drivers/ps2kbdmou_ecos.c
171
 
172
        requires CYGBLD_MICROWINDOWS_ECOS
173
 
174
        cdl_option CYGIMP_MICROWINDOWS_PCSVGA32 {
175
            display "Assume 32 bits per pixel, RGB == 0888"
176
            description \
177
                "This mode can be used when building for a standard PC,
178
                 where bootstrap is handled via RedBoot. A custom version
179
                 of RedBoot is required, configured to switch the graphics
180
                 card to a suitable resolution before the processor enters
181
                 protected mode. A VESA-compliant video BIOS is used for
182
                 this. The graphics mode should be 32 bits per pixel true-color."
183
 
184
            implements CYGINT_MICROWINDOWS_PC_DRIVER
185
            default_value 1
186
            compile drivers/scr_ecospcsvga.c
187
            requires { is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 ") }
188
            requires { !is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 ") }
189
            requires { !is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_PALETTE ") }
190
        }
191
 
192
        cdl_option CYGIMP_MICROWINDOWS_PCSVGA16 {
193
            display "Assume 16 bits per pixel, RGB == 565"
194
            description \
195
                "This mode can be used when building for a standard PC,
196
                 where bootstrap is handled via RedBoot. A custom version
197
                 of RedBoot is required, configured to switch the graphics
198
                 card to a suitable resolution before the processor enters
199
                 protected mode. A VESA-compliant video BIOS is used for
200
                 this. The graphics mode should be 16 bits per pixel true-color."
201
 
202
            implements CYGINT_MICROWINDOWS_PC_DRIVER
203
            default_value 0
204
            compile drivers/scr_ecospcsvga.c
205
            requires { !is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 ") }
206
            requires { is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 ") }
207
            requires { !is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_PALETTE ") }
208
        }
209
 
210
        cdl_option CYGIMP_MICROWINDOWS_PCVGA {
211
            display "Build for VGA hardware"
212
            description \
213
                "This driver manipulates VGA hardware directly, rather than
214
                 going via the video BIOS. Only a limited resolution of
215
                 640x480 with 4 bits per pixel is available. The driver
216
                 does not implement all required microwindows functionality."
217
 
218
            implements CYGINT_MICROWINDOWS_PC_DRIVER
219
            default_value 0
220
            compile drivers/scr_bios.c drivers/vgainit.c drivers/vgaplan4.c drivers/memplan4.c
221
            requires { is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_PALETTE ") }
222
            requires { !is_substr(CYGPKG_MICROWINDOWS_CFLAGS_ADD, " -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 ") }
223
        }
224
 
225
        cdl_interface CYGINT_MICROWINDOWS_PC_DRIVER {
226
            display "Number of active PC graphics drivers"
227
            requires { CYGINT_MICROWINDOWS_PC_DRIVER == 1 }
228
        }
229
    }
230
 
231
 
232
    # Nano WM
233
    cdl_option CYGBLD_MICROWINDOWS_NANOWM {
234
        display   "Build MicroWindows NANOWM"
235
        default_value 0
236
 
237
 
238
        compile                                 \
239
            demos/nanowm/nanowm.c                       \
240
            demos/nanowm/events.c                       \
241
            demos/nanowm/wlist.c                        \
242
            demos/nanowm/clients.c                      \
243
            demos/nanowm/actions.c                      \
244
            ecos/nanowm_thread.c
245
    }
246
 
247
    # keyboard
248
    cdl_option CYGBLD_MICROWINDOWS_NXKBD {
249
        display   "Build MicroWindows NXKBD"
250
        default_value 0
251
 
252
        compile                                 \
253
            demos/nxkbd/nxkbd.c                 \
254
            demos/nxkbd/srvconn.c                       \
255
            demos/nxkbd/keynorm.c                       \
256
            demos/nxkbd/keyctrl.c                       \
257
            demos/nxkbd/keyshft.c                       \
258
            demos/nxkbd/keynum.c
259
    }
260
 
261
    # keyboard
262
    cdl_option CYGBLD_MICROWINDOWS_NANOX_DEMOS {
263
        display   "Build MicroWindows NanoX demos"
264
        default_value 0
265
 
266
        compile                                 \
267
            demos/nanox/world.c demos/nanox/ntetris.c \
268
            ecos/world_thread.c ecos/ntetris_thread.c
269
    }
270
 
271
    cdl_component CYGPKG_MICROWINDOWS_OPTIONS {
272
        display "Build options"
273
        flavor  none
274
        no_define
275
        description   "
276
            Package specific build options including control over
277
            compiler flags used only in building this package,
278
            and details of which tests are built."
279
 
280
 
281
        cdl_option CYGPKG_MICROWINDOWS_CFLAGS_ADD {
282
            display "Additional compiler flags"
283
            flavor  data
284
            no_define
285
            default_value { "-I$(PREFIX)/include/microwin -D__ECOS=1 -DMSDOS=0 -DELKS=0 -D__rtems__=0 -D_MINIX=0 -DNOTYET=0 -DUNIX=1 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DxHAVE_JPEG_SUPPORT=1 -DHAVESELECT=1" }
286
            description   "
287
                This option modifies the set of compiler flags for
288
                building the MicroWindows package.
289
                These flags are used in addition to the set of global flags."
290
        }
291
 
292
        cdl_option CYGPKG_MICROWINDOWS_CFLAGS_REMOVE {
293
            display "Suppressed compiler flags"
294
            flavor  data
295
            no_define
296
            default_value { "" }
297
            description   "
298
                This option modifies the set of compiler flags for
299
                building the MicroWindows package.
300
                These flags are removed from the set of global flags
301
                if present."
302
        }
303
    }
304
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.