Mercurial > ecos-v3_0-branch
annotate packages/hal/powerpc/rattler/current/cdl/hal_powerpc_rattler.cdl @ 2729:74dbf4c3f2e1 after-copyright-change-20090129
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
| author | jlarmour |
|---|---|
| date | Thu, 29 Jan 2009 17:47:46 +0000 |
| parents | b1c975b96245 |
| children | a0205b9ffd22 |
| rev | line source |
|---|---|
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
1 # ==================================================================== |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
2 # |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
3 # hal_powerpc_rattler.cdl |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
4 # |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
5 # Analogue & Micro Rattler (MPC8250) HAL package configuration data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
6 # |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
7 # ==================================================================== |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
diff
changeset
|
8 ## ####ECOSGPLCOPYRIGHTBEGIN#### |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
diff
changeset
|
9 ## ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
diff
changeset
|
10 ## This file is part of eCos, the Embedded Configurable Operating System. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
diff
changeset
|
11 ## Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
12 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
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:
1327
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:
1327
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:
1327
diff
changeset
|
16 ## version. |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
17 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
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:
1327
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:
1327
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:
1327
diff
changeset
|
21 ## for more details. |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
22 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
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:
1327
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:
1327
diff
changeset
|
25 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
26 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
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:
1327
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:
1327
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:
1327
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:
1327
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:
1327
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:
1327
diff
changeset
|
33 ## General Public License v2. |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
34 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
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:
1327
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:
1327
diff
changeset
|
37 ## ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
1327
diff
changeset
|
38 ## ####ECOSGPLCOPYRIGHTEND#### |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
39 # ==================================================================== |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
40 ######DESCRIPTIONBEGIN#### |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
41 # |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
42 # Author(s): gthomas |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
43 # Original data: hmt |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
44 # Contributors: |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
45 # Date: 2003-06-30 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
46 # |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
47 #####DESCRIPTIONEND#### |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
48 # |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
49 # ==================================================================== |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
50 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
51 cdl_package CYGPKG_HAL_POWERPC_RATTLER { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
52 display "Analogue & Micro Rattler board" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
53 parent CYGPKG_HAL_POWERPC |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
54 requires CYGPKG_HAL_POWERPC_MPC8XXX |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
55 define_header hal_powerpc_rattler.h |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
56 include_dir cyg/hal |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
57 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
58 The RATTLER HAL package provides the support needed to run |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
59 eCos on an Analogue & Micro Rattler board." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
60 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
61 compile hal_diag.c hal_aux.c rattler.S |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
62 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
63 implements CYGINT_HAL_DEBUG_GDB_STUBS |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
64 implements CYGINT_HAL_DEBUG_GDB_STUBS_BREAK |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
65 implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
66 requires CYGSEM_HAL_POWERPC_RESET_USES_JUMP |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
67 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
68 implements CYGNUM_HAL_MPC8XXX_SCC1 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
69 implements CYGNUM_HAL_MPC8XXX_SMC1 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
70 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
71 # Note: uncomment this to get old-style debug behaviour |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
72 # implements CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT_NOT_GUARANTEED |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
73 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
74 define_proc { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
75 puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H <pkgconf/hal_powerpc_mpc8xxx.h>" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
76 puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_powerpc_rattler.h>" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
77 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
78 puts $::cdl_header "#define HAL_PLATFORM_CPU \"PowerPC MPC8250\"" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
79 puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Rattler\"" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
80 puts $::cdl_header "#define HAL_PLATFORM_EXTRA \"\"" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
81 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
82 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
83 cdl_component CYG_HAL_STARTUP { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
84 display "Startup type" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
85 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
86 legal_values { "RAM" "ROM" "ROMRAM" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
87 default_value { "RAM" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
88 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
89 define -file system.h CYG_HAL_STARTUP |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
90 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
91 This option is used to control where the application program will |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
92 run, either from RAM or ROM (flash) memory. ROM based applications |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
93 must be self contained, while RAM applications will typically assume |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
94 the existence of a debug environment, such as GDB stubs." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
95 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
96 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
97 cdl_option CYGHWR_HAL_POWERPC_DISABLE_MMU { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
98 display "DISABLE MMU" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
99 flavor bool |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
100 default_value 0 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
101 # calculated 1 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
102 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
103 This option will disable the MMU enabled." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
104 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
105 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
106 cdl_option CYGHWR_HAL_POWERPC_BUS_SPEED { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
107 display "Development board clock speed (MHz)" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
108 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
109 legal_values 66 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
110 default_value 66 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
111 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
112 The Rattler currently only runs at 66MHz" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
113 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
114 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
115 cdl_option CYGHWR_HAL_POWERPC_CPU_SPEED { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
116 display "Development board clock speed (MHz)" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
117 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
118 legal_values 200 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
119 default_value 200 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
120 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
121 The Rattler is configured to run the CPU at 3.5x" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
122 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
123 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
124 cdl_option CYGHWR_HAL_POWERPC_CPM_SPEED { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
125 display "Development board clock speed (MHz)" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
126 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
127 legal_values 166 133 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
128 default_value { (CYGHWR_HAL_POWERPC_RATTLER_PCI == 0) ? 166 : 133 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
129 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
130 The Rattler is configured to run the CPM at 2.5x |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
131 This clock is used by the baud rate generators" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
132 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
133 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
134 cdl_option CYGHWR_HAL_POWERPC_RATTLER_PCI { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
135 display "Rattler with PCI (agent) support" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
136 flavor bool |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
137 default_value 0 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
138 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
139 The Rattler comes in two variants - one with PCI |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
140 and another without." |
| 1327 | 141 define_proc { |
| 142 puts $::cdl_header "#undef HAL_PLATFORM_BOARD" | |
| 143 puts $::cdl_header "#define HAL_PLATFORM_BOARD \"Rattler-PCI\"" | |
| 144 } | |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
145 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
146 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
147 # Real-time clock/counter specifics |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
148 cdl_component CYGNUM_HAL_RTC_CONSTANTS { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
149 display "Real-time clock constants." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
150 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
151 Period is busclock/4/CYGNUM_HAL_RTC_DENOMINATOR. VERIFY THIS!!!" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
152 flavor none |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
153 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
154 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
155 cdl_option CYGNUM_HAL_RTC_NUMERATOR { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
156 display "Real-time clock numerator" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
157 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
158 calculated 1000000000 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
159 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
160 cdl_option CYGNUM_HAL_RTC_DENOMINATOR { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
161 display "Real-time clock denominator" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
162 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
163 default_value 100 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
164 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
165 This option selects the number of system clock 'ticks' |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
166 per second. This rate is sometimes known as the heartbeat rate." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
167 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
168 cdl_option CYGNUM_HAL_RTC_PERIOD { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
169 display "Real-time clock period" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
170 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
171 calculated { (((CYGHWR_HAL_POWERPC_BUS_SPEED*1000000)/4)/CYGNUM_HAL_RTC_DENOMINATOR) } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
172 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
173 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
174 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
175 cdl_component CYGBLD_GLOBAL_OPTIONS { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
176 display "Global build options" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
177 flavor none |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
178 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
179 Global build options including control over |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
180 compiler flags, linker flags and choice of toolchain." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
181 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
182 parent CYGPKG_NONE |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
183 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
184 cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
185 display "Global command prefix" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
186 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
187 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
188 default_value { "powerpc-eabi" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
189 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
190 This option specifies the command prefix used when |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
191 invoking the build tools." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
192 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
193 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
194 cdl_option CYGBLD_GLOBAL_CFLAGS { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
195 display "Global compiler flags" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
196 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
197 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
198 default_value { "-msoft-float -mcpu=603e -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
199 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
200 This option controls the global compiler flags which |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
201 are used to compile all packages by |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
202 default. Individual packages may define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
203 options which override these global flags." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
204 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
205 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
206 cdl_option CYGBLD_GLOBAL_LDFLAGS { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
207 display "Global linker flags" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
208 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
209 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
210 default_value { "-msoft-float -mcpu=603e -g -nostdlib -Wl,--gc-sections -Wl,-static" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
211 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
212 This option controls the global linker flags. Individual |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
213 packages may define options which override these global flags." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
214 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
215 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
216 cdl_option CYGBLD_BUILD_GDB_STUBS { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
217 display "Build GDB stub ROM image" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
218 default_value 0 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
219 requires { (CYG_HAL_STARTUP == "ROM") || (CYG_HAL_STARTUP == "ROMRAM") } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
220 requires CYGSEM_HAL_ROM_MONITOR |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
221 requires CYGBLD_BUILD_COMMON_GDB_STUBS |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
222 requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
223 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
224 requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
225 requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
226 requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
227 requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
228 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
229 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
230 This option enables the building of the GDB stubs for the |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
231 board. The common HAL controls takes care of most of the |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
232 build process, but the platform CDL takes care of creating |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
233 an S-Record data file. -- This needs more work" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
234 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
235 make -priority 320 { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
236 <PREFIX>/bin/gdb_module.bin : <PREFIX>/bin/gdb_module.img |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
237 $(OBJCOPY) -O srec --srec-forceS3 $< $(@:.bin=.s19) |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
238 $(OBJCOPY) -O binary $< $@ |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
239 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
240 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
241 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
242 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
243 cdl_component CYGPKG_HAL_POWERPC_RATTLER_OPTIONS { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
244 display "MPC8260 RATTLER build options" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
245 flavor none |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
246 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
247 Package specific build options including control over |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
248 compiler flags used only in building this package, |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
249 and details of which tests are built." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
250 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
251 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
252 cdl_option CYGPKG_HAL_POWERPC_RATTLER_CFLAGS_ADD { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
253 display "Additional compiler flags" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
254 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
255 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
256 default_value { "" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
257 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
258 This option modifies the set of compiler flags for |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
259 building the RATTLER HAL. These flags are used in addition |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
260 to the set of global flags." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
261 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
262 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
263 cdl_option CYGPKG_HAL_POWERPC_RATTLER_CFLAGS_REMOVE { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
264 display "Suppressed compiler flags" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
265 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
266 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
267 default_value { "" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
268 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
269 This option modifies the set of compiler flags for |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
270 building the RATTLER HAL. These flags are removed from |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
271 the set of global flags if present." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
272 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
273 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
274 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
275 cdl_component CYGHWR_MEMORY_LAYOUT { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
276 display "Memory layout" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
277 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
278 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
279 calculated { CYG_HAL_STARTUP == "RAM" ? "powerpc_rattler_ram" : \ |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
280 CYG_HAL_STARTUP == "ROM" ? "powerpc_rattler_rom" : \ |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
281 "powerpc_rattler_romram" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
282 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
283 cdl_option CYGHWR_MEMORY_LAYOUT_LDI { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
284 display "Memory layout linker script fragment" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
285 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
286 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
287 define -file system.h CYGHWR_MEMORY_LAYOUT_LDI |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
288 calculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_powerpc_rattler_ram.ldi>" : \ |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
289 CYG_HAL_STARTUP == "ROM" ? "<pkgconf/mlt_powerpc_rattler_rom.ldi>" : \ |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
290 "<pkgconf/mlt_powerpc_rattler_romram.ldi>" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
291 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
292 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
293 cdl_option CYGHWR_MEMORY_LAYOUT_H { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
294 display "Memory layout header file" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
295 flavor data |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
296 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
297 define -file system.h CYGHWR_MEMORY_LAYOUT_H |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
298 calculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_powerpc_rattler_ram.h>" : \ |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
299 CYG_HAL_STARTUP == "ROM" ? "<pkgconf/mlt_powerpc_rattler_rom.h>" : \ |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
300 "<pkgconf/mlt_powerpc_rattler_romram.h>" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
301 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
302 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
303 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
304 cdl_option CYGSEM_HAL_ROM_MONITOR { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
305 display "Behave as a ROM monitor" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
306 flavor bool |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
307 default_value 0 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
308 parent CYGPKG_HAL_ROM_MONITOR |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
309 requires { (CYG_HAL_STARTUP == "ROM") || (CYG_HAL_STARTUP == "ROMRAM") } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
310 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
311 Enable this option if this program is to be used as a ROM monitor, |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
312 i.e. applications will be loaded into RAM on the board, and this |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
313 ROM monitor may process exceptions or interrupts generated from the |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
314 application. This enables features such as utilizing a separate |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
315 interrupt stack when exceptions are generated." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
316 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
317 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
318 cdl_option CYGSEM_HAL_USE_ROM_MONITOR { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
319 display "Work with a ROM monitor" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
320 flavor bool |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
321 default_value { (CYG_HAL_STARTUP == "RAM" && |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
322 !CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS && |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
323 !CYGINT_HAL_USE_ROM_MONITOR_UNSUPPORTED && |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
324 !CYGSEM_HAL_POWERPC_COPY_VECTORS) ? 1 : 0 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
325 parent CYGPKG_HAL_ROM_MONITOR |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
326 requires { CYG_HAL_STARTUP == "RAM" } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
327 requires ! CYGSEM_HAL_POWERPC_COPY_VECTORS |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
328 requires ! CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
329 requires ! CYGINT_HAL_USE_ROM_MONITOR_UNSUPPORTED |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
330 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
331 Allow coexistence with ROM monitor (CygMon or GDB stubs) by |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
332 only initializing interrupt vectors on startup, thus leaving |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
333 exception handling to the ROM monitor." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
334 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
335 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
336 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
337 # FIXME: the option above should be adjusted to select between monitor |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
338 # variants |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
339 cdl_option CYGSEM_HAL_USE_ROM_MONITOR_GDB_stubs { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
340 parent CYGPKG_HAL_ROM_MONITOR |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
341 display "Bad CDL workaround" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
342 calculated 1 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
343 active_if CYGSEM_HAL_USE_ROM_MONITOR |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
344 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
345 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
346 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
347 cdl_component CYGPKG_REDBOOT_HAL_OPTIONS { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
348 display "Redboot HAL options" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
349 flavor none |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
350 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
351 parent CYGPKG_REDBOOT |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
352 active_if CYGPKG_REDBOOT |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
353 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
354 This option lists the target's requirements for a valid Redboot |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
355 configuration." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
356 |
|
1182
8c272f96c3ed
Better handling of RedBoot Linux 'exec' with architecture/platform layering
gthomas
parents:
1171
diff
changeset
|
357 cdl_option CYGSEM_REDBOOT_PLF_LINUX_BOOT { |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
358 active_if CYGBLD_BUILD_REDBOOT_WITH_EXEC |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
359 display "Support booting Linux via RedBoot" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
360 flavor bool |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
361 default_value 1 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
362 description " |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
363 This option enables RedBoot to support booting of a Linux kernel." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
364 |
|
1182
8c272f96c3ed
Better handling of RedBoot Linux 'exec' with architecture/platform layering
gthomas
parents:
1171
diff
changeset
|
365 compile plf_redboot_linux_exec.c |
|
1171
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
366 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
367 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
368 cdl_option CYGBLD_BUILD_REDBOOT_BIN { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
369 display "Build Redboot ROM binary image" |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
370 active_if CYGBLD_BUILD_REDBOOT |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
371 default_value 1 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
372 no_define |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
373 description "This option enables the conversion of the Redboot ELF |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
374 image to a binary image suitable for ROM programming. |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
375 This needs more work." |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
376 |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
377 make -priority 325 { |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
378 <PREFIX>/bin/redboot.bin : <PREFIX>/bin/redboot.elf |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
379 $(OBJCOPY) --strip-debug $< $(@:.bin=.img) |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
380 $(OBJCOPY) -O srec $< $(@:.bin=.srec) |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
381 $(OBJCOPY) -O binary $< $@ |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
382 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
383 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
384 } |
|
02b328ea4e09
New platform and variant support for A&M Rattler (MPC8250)
gthomas
parents:
diff
changeset
|
385 } |
