annotate packages/services/objloader/current/cdl/objloader.cdl @ 2925:7cbaadc92c67

* services/objloader/current/src/objloader.c, services/objloader/current/src/objelf.c services/objloader/current/include/objelf.h: Fixed a memory leak where a library section was loaded but memory allocated was not released. This bug was reported by Davy Wouters on the eCos list. Added minor cosmetics and a number of CYG_ASSERT and if() to test the values returned by cyg_ldr_load_elf_section() * services/objloader/current/cdl/objloader.cdl: Eliminate workarounds for file path handling issue in obsolete Cygwin tclsh. Use ACTUAL_CFLAGS for robustness. * fs/rom/current/cdl/romfs.cdl: Eliminate workarounds for file path handling issue in obsolete Cygwin tclsh. Build the mk_romfs tool with higher priority than the custom rules which use it.
author jld
date Fri, 09 Oct 2009 13:53:09 +0000
parents f8dd12428f1d
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
1 # ====================================================================
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
2 #
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
3 # objloader.cdl
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
4 #
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
5 # Object loader configuration data
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
6 #
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
7 # ====================================================================
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
8 ## ####ECOSGPLCOPYRIGHTBEGIN####
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
9 ## -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
10 ## This file is part of eCos, the Embedded Configurable Operating System.
2890
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
11 ## Copyright (C) 2005, 2008, 2009 Free Software Foundation, Inc.
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
12 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
13 ## eCos is free software; you can redistribute it and/or modify it under
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
14 ## the terms of the GNU General Public License as published by the Free
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
15 ## Software Foundation; either version 2 or (at your option) any later
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
16 ## version.
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
17 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
18 ## eCos is distributed in the hope that it will be useful, but WITHOUT
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
19 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
20 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
21 ## for more details.
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
22 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
23 ## You should have received a copy of the GNU General Public License
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
24 ## along with eCos; if not, write to the Free Software Foundation, Inc.,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
25 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
26 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
27 ## As a special exception, if other files instantiate templates or use
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
28 ## macros or inline functions from this file, or you compile this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
29 ## and link it with other works to produce a work based on this file,
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
30 ## this file does not by itself cause the resulting work to be covered by
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
31 ## the GNU General Public License. However the source code for this file
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
32 ## must still be made available in accordance with section (3) of the GNU
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
33 ## General Public License v2.
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
34 ##
2729
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
35 ## This exception does not invalidate any other reasons why a work based
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
36 ## on this file might be covered by the GNU General Public License.
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
37 ## -------------------------------------------
74dbf4c3f2e1 Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents: 2243
diff changeset
38 ## ####ECOSGPLCOPYRIGHTEND####
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
39 # ====================================================================
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
40 ######DESCRIPTIONBEGIN####
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
41 #
2243
6fd46febe457 Warnings, cosmetic fixes from Anthony Tonizzo
gthomas
parents: 2013
diff changeset
42 # Author(s): Anthony Tonizzo (atonizzo@gmail.com)
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
43 # Contributors: Andrew Lunn
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
44 # Date: 2005-05-13
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
45 #
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
46 #####DESCRIPTIONEND####
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
47 #
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
48 # ====================================================================
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
49
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
50 cdl_package CYGPKG_OBJLOADER {
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
51 display "Object file loader"
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
52 description "This package provides support for loading and relocating
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
53 object files within eCos."
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
54 include_dir cyg/objloader
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
55 include_files elf.h objelf.h loader_fs.h relocate_ppc.h relocate_i386.h
2890
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
56 include_files relocate_arm.h loader_memory.h
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
57 compile objloader.c objelf.c
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
58 requires CYGPKG_MEMALLOC
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
59 # ====================================================================
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
60
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
61 cdl_component CYGPKG_SERVICES_OBJLOADER_ARCHITECTURE {
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
62 display "Architecture dependent settings"
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
63 flavor none
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
64 no_define
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
65 requires CYGINT_SERVICES_OBJLOADER_RELOCATOR == 1
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
66
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
67 description "Each of the options here enables the correct
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
68 relocation support for the architectures supported."
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
69
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
70 cdl_interface CYGINT_SERVICES_OBJLOADER_RELOCATOR {
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
71 display "Suitable function to perform a symbol relocation"
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
72 description "
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
73 For each architecture we need a function which relocate
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
74 a symbol. If we don't have a relocator the loader
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
75 cannot work."
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
76 }
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
77
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
78 cdl_option CYGBLD_OBJLOADER_ARCHITECTURE_POWERPC {
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
79 display "Support loading on PowerPC processors"
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
80 calculated CYGPKG_HAL_POWERPC
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
81 implements CYGINT_SERVICES_OBJLOADER_RELOCATOR
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
82 define_proc {
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
83 puts $::cdl_header "#include <cyg/objloader/relocate_ppc.h>"
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
84 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
85 compile relocate_ppc.c
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
86 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
87
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
88 cdl_option CYGBLD_OBJLOADER_ARCHITECTURE_I386 {
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
89 display "Support loading on I386 processors"
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
90 calculated CYGPKG_HAL_I386 || CYGPKG_HAL_SYNTH_I386
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
91 implements CYGINT_SERVICES_OBJLOADER_RELOCATOR
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
92 define_proc {
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
93 puts $::cdl_header "#include <cyg/objloader/relocate_i386.h>"
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
94 }
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
95 compile relocate_i386.c
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
96 }
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
97
2890
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
98 cdl_option CYGBLD_OBJLOADER_ARCHITECTURE_ARM {
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
99 display "Support loading on ARM processors"
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
100 calculated CYGPKG_HAL_ARM
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
101 implements CYGINT_SERVICES_OBJLOADER_RELOCATOR
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
102 define_proc {
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
103 puts $::cdl_header "#include <cyg/objloader/relocate_arm.h>"
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
104 }
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
105 compile relocate_arm.c
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
106 }
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
107
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
108 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
109
2890
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
110 cdl_component CYGOPT_SERVICES_OBJLOADER_LOADERS {
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
111 display "Loaders to compile"
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
112 flavor none
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
113 no_define
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
114 description "Options to select which types of loaders (e.g. from file
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
115 system, memory, http etc. to compile."
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
116
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
117 cdl_option CYGOPT_SERVICES_OBJLOADER_LOADERS_FS {
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
118 display "Load module from file system"
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
119 flavor bool
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
120 default_value 1
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
121 requires CYGPKG_IO_FILEIO
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
122 description "This option will compile the code required to load an
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
123 object library from a generic file system."
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
124 compile loader_fs.c
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
125 }
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
126
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
127 cdl_option CYGOPT_SERVICES_OBJLOADER_LOADERS_MEMORY {
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
128 display "Load module from memory"
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
129 flavor bool
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
130 default_value 1
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
131 description "This option will compile the module required to load an
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
132 object library from a ROM memory."
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
133 compile loader_memory.c
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
134 }
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
135 }
f8dd12428f1d * cdl/objloader.cdl, src/objelf.c, src/relocate_ppc.c,
jld
parents: 2770
diff changeset
136
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
137 cdl_option CYGPKG_SERVICES_OBJLOADER_DEBUG_LEVEL {
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
138 display "Verbosity of debug output"
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
139 flavor data
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
140 legal_values 0 1 2
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
141 default_value 0
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
142 description "This option allows controls over the verbosity of
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
143 the debug output. 1 is moderate, 2 is very
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
144 verbose, including the symbol name of each relocation
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
145 performed. Any value other than 0 will prevent the
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
146 unloading of unused library data, thus increasing the
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
147 heap memory requirements of the package."
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
148 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
149
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
150 cdl_component CYGPKG_SERVICES_OBJLOADER_OPTIONS {
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
151 display "Object loader build options"
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
152 flavor none
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
153 description "
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
154 Package specific build options including control over
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
155 compiler flags used only in building this package,
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
156 and details of which tests are built."
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
157
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
158
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
159 cdl_option CYGPKG_SERVICES_OBJLOADER_CFLAGS_ADD {
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
160 display "Additional compiler flags"
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
161 flavor data
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
162 no_define
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
163 default_value { "" }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
164 description "
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
165 This option modifies the set of compiler flags for
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
166 building the serial device drivers. These flags are
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
167 used in addition to the set of global flags."
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
168 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
169
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
170 cdl_option CYGPKG_SERVICES_OBJLOADER_CFLAGS_REMOVE {
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
171 display "Suppressed compiler flags"
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
172 flavor data
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
173 no_define
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
174 default_value { "" }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
175 description "
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
176 This option modifies the set of compiler flags for
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
177 building the serial device drivers. These flags are
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
178 removed from the set of global flags if present."
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
179 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
180 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
181
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
182 cdl_component CYGTST_SERVICES_OBJLOADER_BUILD_TESTS {
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
183 display "Build test library"
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
184 default_value 0
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
185 active_if CYGPKG_FS_ROM
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
186 active_if CYGINT_SERVICES_OBJLOADER_RELOCATOR
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
187 requires CYGBLD_FS_ROMFS_MK_ROMFS
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
188 no_define
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
189 description "
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
190 This option enables the building of a library and an
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
191 application for testing the loader."
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
192
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
193 make -priority 320 {
2925
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
194 testobj/hello.o : <PACKAGE>/tests/library/hello.c
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
195 @mkdir -p "$(dir $@)"
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
196 $(CC) -c $(INCLUDE_PATH) -I$(dir $<) $(ACTUAL_CFLAGS) -o $@ $<
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
197 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
198
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
199 make -priority 322 {
2925
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
200 <PREFIX>/include/cyg/objloader/testromfs_be.h : testobj/hello.o
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
201 $(PREFIX)/bin/mk_romfs -b $(dir $<) testromfs_be.bin
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
202 @mkdir -p "$(dir $@)"
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
203 @tclsh $(PREFIX)/bin/file2c.tcl testromfs_be.bin $@
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
204 }
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
205
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
206 make -priority 322 {
2925
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
207 <PREFIX>/include/cyg/objloader/testromfs_le.h : testobj/hello.o
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
208 $(PREFIX)/bin/mk_romfs $(dir $<) testromfs_le.bin
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
209 @mkdir -p "$(dir $@)"
7cbaadc92c67 * services/objloader/current/src/objloader.c,
jld
parents: 2890
diff changeset
210 @tclsh $(PREFIX)/bin/file2c.tcl testromfs_le.bin $@
2013
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
211 }
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
212
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
213 cdl_option CYGPKG_OBJLOADER_TESTS {
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
214 display "Objloader tests"
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
215 flavor data
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
216 no_define
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
217 calculated { "tests/test_mods" }
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
218 description "
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
219 This option specifies the set of tests for the object
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
220 loader package"
8bf90d16b837 * include/objelf.h: Include hal_tables.h otherwise we get strange
asl
parents: 2011
diff changeset
221 }
2011
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
222 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
223 }
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
224
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
225 # ====================================================================
662e1b34b811 Added OBJLOADER package.
nickg
parents:
diff changeset
226 # EOF objloader.cdl