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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [fs/] [rom/] [current/] [cdl/] [romfs.cdl] - Blame information for rev 786

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 786 skrzyp
# ====================================================================
2
#
3
#      romfs.cdl
4
#
5
#      ROM Filesystem 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, 2004, 2009, 2010 Free Software Foundation, 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
16
## version.
17
##
18
## eCos is distributed in the hope that it will be useful, but WITHOUT
19
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
## FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
21
## for more details.
22
##
23
## You should have received a copy of the GNU General Public License
24
## along with eCos; if not, write to the Free Software Foundation, Inc.,
25
## 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
26
##
27
## As a special exception, if other files instantiate templates or use
28
## macros or inline functions from this file, or you compile this file
29
## and link it with other works to produce a work based on this file,
30
## this file does not by itself cause the resulting work to be covered by
31
## the GNU General Public License. However the source code for this file
32
## must still be made available in accordance with section (3) of the GNU
33
## General Public License v2.
34
##
35
## This exception does not invalidate any other reasons why a work based
36
## on this file might be covered by the GNU General Public License.
37
## -------------------------------------------
38
## ####ECOSGPLCOPYRIGHTEND####
39
# ====================================================================
40
######DESCRIPTIONBEGIN####
41
#
42
# Author(s):      nickg
43
# Original data:  nickg
44
# Contributors:   richard.panton@3glab.com, jld
45
# Date:           2000-08-01
46
#
47
#####DESCRIPTIONEND####
48
#
49
# ====================================================================
50
 
51
cdl_package CYGPKG_FS_ROM {
52
    display        "ROM filesystem"
53
    doc            ref/fileio.html
54
    include_dir    cyg/romfs
55
 
56
    parent         CYGPKG_IO_FILEIO
57
    requires       CYGPKG_IO_FILEIO
58
 
59
    requires       CYGPKG_ISOINFRA
60
    requires       CYGINT_ISO_ERRNO
61
    requires       CYGINT_ISO_ERRNO_CODES
62
 
63
    implements     CYGINT_IO_FILEIO_FS
64
 
65
    compile        -library=libextras.a romfs.c
66
 
67
    cdl_option CYGBLD_FS_ROMFS_MK_ROMFS {
68
        display       "Build the tool used to build filesystems"
69
        flavor        bool
70
        default_value 1
71
 
72
        make -priority 98 {
73
            /bin/file2c.tcl: /support/file2c.tcl
74
            @mkdir -p "$(dir $@)"
75
            @cp $< $@
76
        }
77
 
78
        # FIXME: host compiler/flags should be provided by config system
79
        make -priority 98 {
80
            /bin/mk_romfs: /support/mk_romfs.c
81
            @mkdir -p "$(dir $@)"
82
            @$(HOST_CC) -g -O2 -o $@ $< || cc -g -O2 -o $@ $< || gcc -g -O2 -o $@ $<
83
        }
84
 
85
        description "
86
            When enabled this option will build a host tool which can be
87
            used to create a rom filesystem image."
88
    }
89
 
90
    cdl_option CYGPKG_FS_ROM_RET_DIRENT_DTYPE {
91
        display       "Support for fileio's struct dirent d_type field"
92
        flavor        bool
93
        default_value 0
94
        active_if     CYGPKG_FILEIO_DIRENT_DTYPE
95
 
96
        description "
97
            This option controls whether the ROM filesystem supports
98
            setting fileio's struct dirent d_type field.
99
            If this option is enabled, d_type will be set. Otherwise,
100
            nothing will be done, d_type's value will be zero because
101
            fileio already sets it."
102
    }
103
 
104
    cdl_option CYGFUN_FS_ROM_FLASH_BLOCK_DEVICE_LOOKUP {
105
        display "Lookup flash block device names"
106
        flavor bool
107
        requires CYGPKG_IO_FLASH
108
        requires CYGPKG_IO_FLASH_BLOCK_DEVICE
109
        default_value 0
110
        description "Enables the location of a ROM filesystem to
111
            be specified using a flash block device name such as
112
            \"/dev/flash/fis/romfs\" in the call to mount()."
113
    }
114
 
115
    # ----------------------------------------------------------------
116
    # Tests
117
 
118
    cdl_component CYGTST_ROMFS_BUILD_TESTS {
119
        display       "Build ROM filesystem tests"
120
        flavor        bool
121
        no_define
122
        default_value 0
123
        requires      CYGINT_LIBC_STARTUP_CONTEXT
124
        requires      CYGINT_ISO_STDIO_FORMATTED_IO
125
        requires      CYGINT_ISO_STRERROR
126
        requires      CYGBLD_FS_ROMFS_MK_ROMFS
127
        description   "
128
                This option enables the building of the ROM filesystem tests."
129
 
130
        make -priority 100 {
131
            /include/cyg/romfs/testromfs_le.h : /tests/testromfs /bin/mk_romfs /bin/file2c.tcl
132
            $(PREFIX)/bin/mk_romfs $< testromfs_le.bin
133
            @mkdir -p "$(dir $@)"
134
            tclsh $(PREFIX)/bin/file2c.tcl testromfs_le.bin $@
135
        }
136
 
137
        make -priority 100 {
138
            /include/cyg/romfs/testromfs_be.h : /tests/testromfs /bin/mk_romfs /bin/file2c.tcl
139
            $(PREFIX)/bin/mk_romfs -b $< testromfs_be.bin
140
            @mkdir -p "$(dir $@)"
141
            tclsh $(PREFIX)/bin/file2c.tcl testromfs_be.bin $@
142
        }
143
 
144
        cdl_option CYGPKG_FS_ROM_TESTS {
145
            display "ROM filesystem tests"
146
            flavor  data
147
            no_define
148
            calculated { "tests/romfs1" }
149
                description   "
150
                    This option specifies the set of tests for the ROM filesystem package."
151
        }
152
    }
153
}
154
 
155
# End of romfs.cdl

powered by: WebSVN 2.1.0

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