changeset 2751:a0205b9ffd22

Update compiler flags
author bartv
date Tue, 03 Feb 2009 18:49:47 +0000
parents 3b9ce76ce56c
children b3aec2531be4
files packages/hal/powerpc/adder/current/ChangeLog packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl packages/hal/powerpc/cme555/current/ChangeLog packages/hal/powerpc/cme555/current/cdl/hal_powerpc_cme555.cdl packages/hal/powerpc/cogent/current/ChangeLog packages/hal/powerpc/cogent/current/cdl/hal_powerpc_cogent.cdl packages/hal/powerpc/csb281/current/ChangeLog packages/hal/powerpc/csb281/current/cdl/hal_powerpc_csb281.cdl packages/hal/powerpc/ec555/current/ChangeLog packages/hal/powerpc/ec555/current/cdl/hal_powerpc_ec555.cdl packages/hal/powerpc/fads/current/ChangeLog packages/hal/powerpc/fads/current/cdl/hal_powerpc_fads.cdl packages/hal/powerpc/mbx/current/ChangeLog packages/hal/powerpc/mbx/current/cdl/hal_powerpc_mbx.cdl packages/hal/powerpc/moab/current/ChangeLog packages/hal/powerpc/moab/current/cdl/hal_powerpc_moab.cdl packages/hal/powerpc/pati/current/ChangeLog packages/hal/powerpc/pati/current/cdl/hal_powerpc_pati.cdl packages/hal/powerpc/rattler/current/ChangeLog packages/hal/powerpc/rattler/current/cdl/hal_powerpc_rattler.cdl packages/hal/powerpc/sim/current/ChangeLog packages/hal/powerpc/sim/current/cdl/hal_powerpc_sim.cdl packages/hal/powerpc/ts1000/current/ChangeLog packages/hal/powerpc/ts1000/current/cdl/hal_powerpc_ts1000.cdl packages/hal/powerpc/ts6/current/ChangeLog packages/hal/powerpc/ts6/current/cdl/hal_powerpc_ts6.cdl packages/hal/powerpc/vads/current/ChangeLog packages/hal/powerpc/vads/current/cdl/hal_powerpc_vads.cdl packages/hal/powerpc/viper/current/ChangeLog packages/hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl
diffstat 30 files changed, 330 insertions(+), 270 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/powerpc/adder/current/ChangeLog
+++ b/packages/hal/powerpc/adder/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_adder.cdl: update compiler flags for gcc 4.x
+
 2008-11-13  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* src/adder_flash.c: Dev id is really 0x22f6, not 0xf6.
--- a/packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl
+++ b/packages/hal/powerpc/adder/current/cdl/hal_powerpc_adder.cdl
@@ -187,7 +187,7 @@ cdl_package CYGPKG_HAL_POWERPC_ADDER {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=860 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions" }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/cme555/current/ChangeLog
+++ b/packages/hal/powerpc/cme555/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_cme555.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_cme555_ram.ldi:
--- a/packages/hal/powerpc/cme555/current/cdl/hal_powerpc_cme555.cdl
+++ b/packages/hal/powerpc/cme555/current/cdl/hal_powerpc_cme555.cdl
@@ -207,7 +207,7 @@ cdl_package CYGPKG_HAL_POWERPC_CME555 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=505 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -mmultiple -fno-rtti -fno-exceptions -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-mcpu=505 -g -O2 -ffunction-sections -fdata-sections -mmultiple -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/cogent/current/ChangeLog
+++ b/packages/hal/powerpc/cogent/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_cogent.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_cogent_ram.ldi:
--- a/packages/hal/powerpc/cogent/current/cdl/hal_powerpc_cogent.cdl
+++ b/packages/hal/powerpc/cogent/current/cdl/hal_powerpc_cogent.cdl
@@ -176,7 +176,7 @@ cdl_package CYGPKG_HAL_POWERPC_COGENT {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=860 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/csb281/current/ChangeLog
+++ b/packages/hal/powerpc/csb281/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_csb281.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_csb281_ram.ldi:
--- a/packages/hal/powerpc/csb281/current/cdl/hal_powerpc_csb281.cdl
+++ b/packages/hal/powerpc/csb281/current/cdl/hal_powerpc_csb281.cdl
@@ -250,7 +250,7 @@ cdl_package CYGPKG_HAL_POWERPC_CSB281 {
             display "Global compiler flags"
             flavor  data
             no_define
-            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" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=603e -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/ec555/current/ChangeLog
+++ b/packages/hal/powerpc/ec555/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_ec555.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_ec555_f02_s01_ram.ldi:
--- a/packages/hal/powerpc/ec555/current/cdl/hal_powerpc_ec555.cdl
+++ b/packages/hal/powerpc/ec555/current/cdl/hal_powerpc_ec555.cdl
@@ -207,7 +207,7 @@ cdl_package CYGPKG_HAL_POWERPC_EC555 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=505 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -mmultiple -fno-rtti -fno-exceptions -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-mcpu=505 -g -O2 -ffunction-sections -fdata-sections -mmultiple -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/fads/current/ChangeLog
+++ b/packages/hal/powerpc/fads/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_fads.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_fads_ram.ldi:
--- a/packages/hal/powerpc/fads/current/cdl/hal_powerpc_fads.cdl
+++ b/packages/hal/powerpc/fads/current/cdl/hal_powerpc_fads.cdl
@@ -157,7 +157,7 @@ cdl_package CYGPKG_HAL_POWERPC_FADS {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=860 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/mbx/current/ChangeLog
+++ b/packages/hal/powerpc/mbx/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_mbx.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_mbx_ram.ldi:
--- a/packages/hal/powerpc/mbx/current/cdl/hal_powerpc_mbx.cdl
+++ b/packages/hal/powerpc/mbx/current/cdl/hal_powerpc_mbx.cdl
@@ -167,7 +167,7 @@ cdl_package CYGPKG_HAL_POWERPC_MBX {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=860 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/moab/current/ChangeLog
+++ b/packages/hal/powerpc/moab/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_moab.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_moab_ram.ldi:
--- a/packages/hal/powerpc/moab/current/cdl/hal_powerpc_moab.cdl
+++ b/packages/hal/powerpc/moab/current/cdl/hal_powerpc_moab.cdl
@@ -177,7 +177,7 @@ cdl_package CYGPKG_HAL_POWERPC_MOAB {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-msoft-float -mcpu=405 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=405 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/pati/current/ChangeLog
+++ b/packages/hal/powerpc/pati/current/ChangeLog
@@ -1,14 +1,18 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_pati.cdl: update compiler flags for recent gcc
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_pati_ram.ldi:
 	* include/pkgconf/mlt_powerpc_pati_rom.ldi:
 	Add SECTION_eh_frame and SECTION_RELOCS.
 
-2008-05-08  Steven Clugston  <steven.clugston@ncl.ac.uk>
-
-	* New package.
-
-//===========================================================================
+2008-05-08  Steven Clugston  <steven.clugston@ncl.ac.uk>
+
+	* New package.
+
+//===========================================================================
 // ####GPLCOPYRIGHTBEGIN####                                                
 // -------------------------------------------                              
 // This file is part of eCos, the Embedded Configurable Operating System.   
@@ -30,4 +34,4 @@ 2008-05-08  Steven Clugston  <steven.clu
 // Fifth Floor, Boston, MA  02110-1301, USA.                                
 // -------------------------------------------                              
 // ####GPLCOPYRIGHTEND####                                                  
-//===========================================================================
+//===========================================================================
--- a/packages/hal/powerpc/pati/current/cdl/hal_powerpc_pati.cdl
+++ b/packages/hal/powerpc/pati/current/cdl/hal_powerpc_pati.cdl
@@ -1,10 +1,10 @@
-# ====================================================================
-#
-#      hal_powerpc_pati.cdl
-#
-#      PowerPC/pati board HAL package configuration data
-#
-# ====================================================================
+# ====================================================================
+#
+#      hal_powerpc_pati.cdl
+#
+#      PowerPC/pati board HAL package configuration data
+#
+# ====================================================================
 ## ####ECOSGPLCOPYRIGHTBEGIN####                                            
 ## -------------------------------------------                              
 ## This file is part of eCos, the Embedded Configurable Operating System.   
@@ -36,246 +36,246 @@
 ## on this file might be covered by the GNU General Public License.         
 ## -------------------------------------------                              
 ## ####ECOSGPLCOPYRIGHTEND####                                              
-# ====================================================================
-######DESCRIPTIONBEGIN####
-#
-# Author(s):   Steven Clugston
-# Original:    Bob Koninckx, bartv
-# Date:        2008-05-08
-#
-#####DESCRIPTIONEND####
-#
-# ====================================================================
-
-cdl_package CYGPKG_HAL_POWERPC_PATI {
-    display       "PATI MPC555 development board"
-    parent        CYGPKG_HAL_POWERPC
-    requires      CYGPKG_HAL_POWERPC_MPC5xx
-    define_header hal_powerpc_pati.h
-    include_dir   cyg/hal
-    description   "
-        The PATI HAL package provides the support needed to run
-        eCos on an PATI PCI target board from MPL elektronik."
-
-    compile       hal_diag.c plf_misc.c pati.S plf_stub.c
-
-    implements    CYGINT_HAL_DEBUG_GDB_STUBS
-    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
-    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
-    implements    CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
-
-    define_proc {
-        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   <pkgconf/hal_powerpc_mpc5xx.h>"
-        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_powerpc_pati.h>"
-    }
-
-    cdl_component CYG_HAL_STARTUP {
-        display       "Startup type"
-        flavor        data
-        legal_values  {"RAM" "ROM"}
-        default_value {"RAM"}
-	no_define
-	define -file system.h CYG_HAL_STARTUP
-        description   "
-           When targetting the PATI board it is possible to build
-           the system for either RAM bootstrap or ROM bootstrap. RAM
-           bootstrap generally requires that the board
-           is equipped with ROMs containing a suitable ROM monitor or
-           equivalent software that allows GDB to download the eCos
-           application on to the board. The ROM bootstrap requires that 
-	   the eCos application be blown into the MPC555 internal flash 
-	   array. Both types of startup require the internal flash array to 
-	   be enabled."
-    }
-
-    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
-        display      "Number of communication channels on the board"
-        flavor       data
-        calculated   2
-        description      "
-            The PATI has two serial ports."
-    }
-    
-    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
-        display          "Debug serial port"
-        flavor data
-        legal_values     0 to 1
-        default_value    0
-        description      "
-           The PATI has two serial ports. This option
-            chooses which port will be used to connect to a host running GDB."
-    }
-    
-    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
-        display          "Diagnostic serial port"
-        flavor data
-        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
-        default_value    1
-        description      "
-           The PATI has two serial ports. This option
-            chooses which port will be used for diagnostic output."
-    }
-
-    cdl_option CYGHWR_HAL_POWERPC_BOARD_SPEED {
-        display          "Development board clock speed (MHz)"
-        flavor           data
-        default_value    40
-        description      "
-             The board is fitted with a 4MHz crystal. This frequency
-             is internally boosted to maximum 40MHz. The value is fixed to the
-             maximum."
-    }
-
-    cdl_option CYGHWR_HAL_POWERPC_FORCE_VECTOR_BASE_LOW {
-        display          "Force vector base at address 0x0000 0000"
-        flavor           bool
-        calculated       1
-        description      "
-             The PowerPC architecture allows the vectorbase to live at either
-             0x0000 0000 or 0xfff0 0000. Since there is no memory at the
-             high addresses, vectors may never be located at 0xfff0 0000 for this
-             board. They can be still be copied though if the internal flash is
-             disabled and relocated to somewhere else"
-    }
-
-    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
-        display          "Baud rate for serial ports"
-        flavor           data
-        legal_values     300 600 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200
-        default_value    57600
-        description      "
-             This option determines the baud rate that will be used on both the console
-             cannel and the debug channel."
-    }
-
-    # Real-time clock/counter specifics
-    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
-        display       "Real-time clock constants."
-        description   "
-            Period is busclock/16/100."
-        flavor        none
-    
-        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
-            display       "Real-time clock numerator"
-            flavor        data
-            default_value 1000000000
-        }
-        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
-            display       "Real-time clock denominator"
-            flavor        data
-            default_value    100
-        }
-        cdl_option CYGNUM_HAL_RTC_PERIOD {
-            display       "Real-time clock period"
-            flavor        data
-            default_value { (((CYGHWR_HAL_POWERPC_BOARD_SPEED*1000000)/16)/CYGNUM_HAL_RTC_DENOMINATOR) }
-        }
-    }
-
-    cdl_component CYGBLD_GLOBAL_OPTIONS {
-        display "Global build options"
-        flavor  none
-        parent  CYGPKG_NONE
-        description   "
-	    Global build options including control over
-	    compiler flags, linker flags and choice of toolchain."
-
-
-        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
-            display "Global command prefix"
-            flavor  data
-            no_define
-            default_value { "powerpc-eabi" }
-            description "
-                This option specifies the command prefix used when
-                invoking the build tools."
-        }
-
-        cdl_option CYGBLD_GLOBAL_CFLAGS {
-            display "Global compiler flags"
-            flavor  data
-            no_define
-            default_value { "-mcpu=505 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -mmultiple -fno-rtti -fno-exceptions -finit-priority" }
-            description   "
-                This option controls the global compiler flags which
-                are used to compile all packages by
-                default. Individual packages may define
-                options which override these global flags."
-        }
-
-        cdl_option CYGBLD_GLOBAL_LDFLAGS {
-            display "Global linker flags"
-            flavor  data
-            no_define
-            default_value { "-mcpu=505 -g -nostdlib -Wl,--gc-sections -Wl,-static" }
-            description   "
-                This option controls the global linker flags. Individual
-                packages may define options which override these global flags."
-        }
-
-        cdl_option CYGBLD_BUILD_GDB_STUBS {
-            display "Build GDB stub ROM image"
-            default_value 0
-            requires { CYG_HAL_STARTUP == "ROM" }
-            requires CYGSEM_HAL_ROM_MONITOR
-            requires CYGBLD_BUILD_COMMON_GDB_STUBS
-            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
-            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
-            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
-            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
-            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
-            no_define
-            description "
-                This option enables the building of the GDB stubs for the
-                board. The common HAL controls takes care of most of the
-                build process, but the final conversion from ELF image to
-                binary data is handled by the platform CDL, allowing
-                relocation of the data if necessary."
-
-            make -priority 320 {
-                <PREFIX>/bin/gdb_module.bin : <PREFIX>/bin/gdb_module.img
-                $(OBJCOPY) -O binary $< $@
-            }
-        }
-    }
-
-    cdl_component CYGHWR_MEMORY_LAYOUT {
-        display "Memory layout"
-        flavor data
-        no_define
-        calculated { CYG_HAL_STARTUP == "RAM" ? "powerpc_pati_ram" : \
-                                                "powerpc_pati_rom" }
-
-        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
-            display "Memory layout linker script fragment"
-            flavor data
-            no_define
-            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
-            calculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_powerpc_pati_ram.ldi>" : \
-                                                    "<pkgconf/mlt_powerpc_pati_rom.ldi>" }
-        }
-
-        cdl_option CYGHWR_MEMORY_LAYOUT_H {
-            display "Memory layout header file"
-            flavor data
-            no_define
-            define -file system.h CYGHWR_MEMORY_LAYOUT_H
-            calculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_powerpc_pati_ram.h>" : \
-                                                    "<pkgconf/mlt_powerpc_pati_rom.h>" }
-        }
-    }
-
-    cdl_option CYGSEM_HAL_ROM_MONITOR {
-        display       "Behave as a ROM monitor"
-        flavor        bool
-        default_value 0
-        parent        CYGPKG_HAL_ROM_MONITOR
-        requires      { CYG_HAL_STARTUP == "ROM" }
-        description   "
-            Enable this option if this program is to be used as a ROM monitor,
-            i.e. applications will be loaded into RAM on the board, and this
-            ROM monitor may process exceptions or interrupts generated from the
-            application. This enables features such as utilizing a separate
-            interrupt stack when exceptions are generated."
-    }
-}
+# ====================================================================
+######DESCRIPTIONBEGIN####
+#
+# Author(s):   Steven Clugston
+# Original:    Bob Koninckx, bartv
+# Date:        2008-05-08
+#
+#####DESCRIPTIONEND####
+#
+# ====================================================================
+
+cdl_package CYGPKG_HAL_POWERPC_PATI {
+    display       "PATI MPC555 development board"
+    parent        CYGPKG_HAL_POWERPC
+    requires      CYGPKG_HAL_POWERPC_MPC5xx
+    define_header hal_powerpc_pati.h
+    include_dir   cyg/hal
+    description   "
+        The PATI HAL package provides the support needed to run
+        eCos on an PATI PCI target board from MPL elektronik."
+
+    compile       hal_diag.c plf_misc.c pati.S plf_stub.c
+
+    implements    CYGINT_HAL_DEBUG_GDB_STUBS
+    implements    CYGINT_HAL_DEBUG_GDB_STUBS_BREAK
+    implements    CYGINT_HAL_VIRTUAL_VECTOR_SUPPORT
+    implements    CYGINT_HAL_VIRTUAL_VECTOR_COMM_BAUD_SUPPORT
+
+    define_proc {
+        puts $::cdl_system_header "#define CYGBLD_HAL_TARGET_H   <pkgconf/hal_powerpc_mpc5xx.h>"
+        puts $::cdl_system_header "#define CYGBLD_HAL_PLATFORM_H <pkgconf/hal_powerpc_pati.h>"
+    }
+
+    cdl_component CYG_HAL_STARTUP {
+        display       "Startup type"
+        flavor        data
+        legal_values  {"RAM" "ROM"}
+        default_value {"RAM"}
+	no_define
+	define -file system.h CYG_HAL_STARTUP
+        description   "
+           When targetting the PATI board it is possible to build
+           the system for either RAM bootstrap or ROM bootstrap. RAM
+           bootstrap generally requires that the board
+           is equipped with ROMs containing a suitable ROM monitor or
+           equivalent software that allows GDB to download the eCos
+           application on to the board. The ROM bootstrap requires that 
+	   the eCos application be blown into the MPC555 internal flash 
+	   array. Both types of startup require the internal flash array to 
+	   be enabled."
+    }
+
+    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS {
+        display      "Number of communication channels on the board"
+        flavor       data
+        calculated   2
+        description      "
+            The PATI has two serial ports."
+    }
+    
+    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_DEBUG_CHANNEL {
+        display          "Debug serial port"
+        flavor data
+        legal_values     0 to 1
+        default_value    0
+        description      "
+           The PATI has two serial ports. This option
+            chooses which port will be used to connect to a host running GDB."
+    }
+    
+    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL {
+        display          "Diagnostic serial port"
+        flavor data
+        legal_values     0 to CYGNUM_HAL_VIRTUAL_VECTOR_COMM_CHANNELS-1
+        default_value    1
+        description      "
+           The PATI has two serial ports. This option
+            chooses which port will be used for diagnostic output."
+    }
+
+    cdl_option CYGHWR_HAL_POWERPC_BOARD_SPEED {
+        display          "Development board clock speed (MHz)"
+        flavor           data
+        default_value    40
+        description      "
+             The board is fitted with a 4MHz crystal. This frequency
+             is internally boosted to maximum 40MHz. The value is fixed to the
+             maximum."
+    }
+
+    cdl_option CYGHWR_HAL_POWERPC_FORCE_VECTOR_BASE_LOW {
+        display          "Force vector base at address 0x0000 0000"
+        flavor           bool
+        calculated       1
+        description      "
+             The PowerPC architecture allows the vectorbase to live at either
+             0x0000 0000 or 0xfff0 0000. Since there is no memory at the
+             high addresses, vectors may never be located at 0xfff0 0000 for this
+             board. They can be still be copied though if the internal flash is
+             disabled and relocated to somewhere else"
+    }
+
+    cdl_option CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL_BAUD {
+        display          "Baud rate for serial ports"
+        flavor           data
+        legal_values     300 600 1200 2400 4800 9600 14400 19200 28800 38400 57600 115200
+        default_value    57600
+        description      "
+             This option determines the baud rate that will be used on both the console
+             cannel and the debug channel."
+    }
+
+    # Real-time clock/counter specifics
+    cdl_component CYGNUM_HAL_RTC_CONSTANTS {
+        display       "Real-time clock constants."
+        description   "
+            Period is busclock/16/100."
+        flavor        none
+    
+        cdl_option CYGNUM_HAL_RTC_NUMERATOR {
+            display       "Real-time clock numerator"
+            flavor        data
+            default_value 1000000000
+        }
+        cdl_option CYGNUM_HAL_RTC_DENOMINATOR {
+            display       "Real-time clock denominator"
+            flavor        data
+            default_value    100
+        }
+        cdl_option CYGNUM_HAL_RTC_PERIOD {
+            display       "Real-time clock period"
+            flavor        data
+            default_value { (((CYGHWR_HAL_POWERPC_BOARD_SPEED*1000000)/16)/CYGNUM_HAL_RTC_DENOMINATOR) }
+        }
+    }
+
+    cdl_component CYGBLD_GLOBAL_OPTIONS {
+        display "Global build options"
+        flavor  none
+        parent  CYGPKG_NONE
+        description   "
+	    Global build options including control over
+	    compiler flags, linker flags and choice of toolchain."
+
+
+        cdl_option CYGBLD_GLOBAL_COMMAND_PREFIX {
+            display "Global command prefix"
+            flavor  data
+            no_define
+            default_value { "powerpc-eabi" }
+            description "
+                This option specifies the command prefix used when
+                invoking the build tools."
+        }
+
+        cdl_option CYGBLD_GLOBAL_CFLAGS {
+            display "Global compiler flags"
+            flavor  data
+            no_define
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-mcpu=505 -g -O2 -ffunction-sections -fdata-sections -mmultiple -fno-rtti -fno-exceptions" }
+            description   "
+                This option controls the global compiler flags which
+                are used to compile all packages by
+                default. Individual packages may define
+                options which override these global flags."
+        }
+
+        cdl_option CYGBLD_GLOBAL_LDFLAGS {
+            display "Global linker flags"
+            flavor  data
+            no_define
+            default_value { "-mcpu=505 -g -nostdlib -Wl,--gc-sections -Wl,-static" }
+            description   "
+                This option controls the global linker flags. Individual
+                packages may define options which override these global flags."
+        }
+
+        cdl_option CYGBLD_BUILD_GDB_STUBS {
+            display "Build GDB stub ROM image"
+            default_value 0
+            requires { CYG_HAL_STARTUP == "ROM" }
+            requires CYGSEM_HAL_ROM_MONITOR
+            requires CYGBLD_BUILD_COMMON_GDB_STUBS
+            requires CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
+            requires CYGDBG_HAL_DEBUG_GDB_BREAK_SUPPORT
+            requires CYGDBG_HAL_DEBUG_GDB_THREAD_SUPPORT
+            requires ! CYGDBG_HAL_COMMON_INTERRUPTS_SAVE_MINIMUM_CONTEXT
+            requires ! CYGDBG_HAL_COMMON_CONTEXT_SAVE_MINIMUM
+            no_define
+            description "
+                This option enables the building of the GDB stubs for the
+                board. The common HAL controls takes care of most of the
+                build process, but the final conversion from ELF image to
+                binary data is handled by the platform CDL, allowing
+                relocation of the data if necessary."
+
+            make -priority 320 {
+                <PREFIX>/bin/gdb_module.bin : <PREFIX>/bin/gdb_module.img
+                $(OBJCOPY) -O binary $< $@
+            }
+        }
+    }
+
+    cdl_component CYGHWR_MEMORY_LAYOUT {
+        display "Memory layout"
+        flavor data
+        no_define
+        calculated { CYG_HAL_STARTUP == "RAM" ? "powerpc_pati_ram" : \
+                                                "powerpc_pati_rom" }
+
+        cdl_option CYGHWR_MEMORY_LAYOUT_LDI {
+            display "Memory layout linker script fragment"
+            flavor data
+            no_define
+            define -file system.h CYGHWR_MEMORY_LAYOUT_LDI
+            calculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_powerpc_pati_ram.ldi>" : \
+                                                    "<pkgconf/mlt_powerpc_pati_rom.ldi>" }
+        }
+
+        cdl_option CYGHWR_MEMORY_LAYOUT_H {
+            display "Memory layout header file"
+            flavor data
+            no_define
+            define -file system.h CYGHWR_MEMORY_LAYOUT_H
+            calculated { CYG_HAL_STARTUP == "RAM" ? "<pkgconf/mlt_powerpc_pati_ram.h>" : \
+                                                    "<pkgconf/mlt_powerpc_pati_rom.h>" }
+        }
+    }
+
+    cdl_option CYGSEM_HAL_ROM_MONITOR {
+        display       "Behave as a ROM monitor"
+        flavor        bool
+        default_value 0
+        parent        CYGPKG_HAL_ROM_MONITOR
+        requires      { CYG_HAL_STARTUP == "ROM" }
+        description   "
+            Enable this option if this program is to be used as a ROM monitor,
+            i.e. applications will be loaded into RAM on the board, and this
+            ROM monitor may process exceptions or interrupts generated from the
+            application. This enables features such as utilizing a separate
+            interrupt stack when exceptions are generated."
+    }
+}
--- a/packages/hal/powerpc/rattler/current/ChangeLog
+++ b/packages/hal/powerpc/rattler/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_rattler.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_rattler_ram.ldi:
--- a/packages/hal/powerpc/rattler/current/cdl/hal_powerpc_rattler.cdl
+++ b/packages/hal/powerpc/rattler/current/cdl/hal_powerpc_rattler.cdl
@@ -195,7 +195,7 @@ cdl_package CYGPKG_HAL_POWERPC_RATTLER {
             display "Global compiler flags"
             flavor  data
             no_define
-            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" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=603e -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/sim/current/ChangeLog
+++ b/packages/hal/powerpc/sim/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_sim.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_sim_ram.ldi:
--- a/packages/hal/powerpc/sim/current/cdl/hal_powerpc_sim.cdl
+++ b/packages/hal/powerpc/sim/current/cdl/hal_powerpc_sim.cdl
@@ -142,7 +142,7 @@ cdl_package CYGPKG_HAL_POWERPC_SIM {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-mcpu=603 -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-mcpu=603 -msoft-float -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/ts1000/current/ChangeLog
+++ b/packages/hal/powerpc/ts1000/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_ts1000.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_ts1000_ram.ldi:
--- a/packages/hal/powerpc/ts1000/current/cdl/hal_powerpc_ts1000.cdl
+++ b/packages/hal/powerpc/ts1000/current/cdl/hal_powerpc_ts1000.cdl
@@ -149,7 +149,7 @@ cdl_package CYGPKG_HAL_POWERPC_TS1000 {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=860 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/ts6/current/ChangeLog
+++ b/packages/hal/powerpc/ts6/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_ts6.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_ts6_ram.ldi:
--- a/packages/hal/powerpc/ts6/current/cdl/hal_powerpc_ts6.cdl
+++ b/packages/hal/powerpc/ts6/current/cdl/hal_powerpc_ts6.cdl
@@ -187,7 +187,7 @@ cdl_package CYGPKG_HAL_POWERPC_TS6 {
             display "Global compiler flags"
             flavor  data
             no_define
-            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" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=603e -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/vads/current/ChangeLog
+++ b/packages/hal/powerpc/vads/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_vads.cdl: update compiler flags for gcc 4.x
+
 2008-11-07  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* include/pkgconf/mlt_powerpc_vads_ram.ldi:
--- a/packages/hal/powerpc/vads/current/cdl/hal_powerpc_vads.cdl
+++ b/packages/hal/powerpc/vads/current/cdl/hal_powerpc_vads.cdl
@@ -193,7 +193,7 @@ cdl_package CYGPKG_HAL_POWERPC_VADS {
             display "Global compiler flags"
             flavor  data
             no_define
-            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" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=603e -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by
--- a/packages/hal/powerpc/viper/current/ChangeLog
+++ b/packages/hal/powerpc/viper/current/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-31  Bart Veer <bartv@ecoscentric.com>
+
+	* cdl/hal_powerpc_viper.cdl: update compiler flags for gcc 4.x
+
 2004-09-30  John Dallaway  <jld@ecoscentric.com>
 
 	* cdl/hal_powerpc_viper.cdl: Clean up of CDL strings.
--- a/packages/hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl
+++ b/packages/hal/powerpc/viper/current/cdl/hal_powerpc_viper.cdl
@@ -183,7 +183,7 @@ cdl_package CYGPKG_HAL_POWERPC_VIPER {
             display "Global compiler flags"
             flavor  data
             no_define
-            default_value { "-msoft-float -mcpu=860 -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -finit-priority" }
+            default_value { CYGBLD_GLOBAL_WARNFLAGS . "-msoft-float -mcpu=860 -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions " }
             description   "
                 This option controls the global compiler flags which
                 are used to compile all packages by