This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
pxa2x0: only build hal_diag.c if the internal uarts are used
- From: David Vrabel <dvrabel at arcom dot com>
- To: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Thu, 15 Sep 2005 12:51:22 +0100
- Subject: pxa2x0: only build hal_diag.c if the internal uarts are used
Hi,
The attached patch causes the pxa2x0 HAL to only build hal_diag.c if at
least one of the internal UARTs is to used for diagnostics. This allows
platforms to supply their own HAL diagnostic routines.
David Vrabel
--
David Vrabel, Design Engineer
Arcom, Clifton Road Tel: +44 (0)1223 411200 ext. 3233
Cambridge CB1 7EA, UK Web: http://www.arcom.com/
%status
pending
%patch
Index: ecos-working/packages/hal/arm/xscale/pxa2x0/current/cdl/hal_arm_xscale_pxa2x0.cdl
===================================================================
--- ecos-working.orig/packages/hal/arm/xscale/pxa2x0/current/cdl/hal_arm_xscale_pxa2x0.cdl 2005-09-15 12:33:33.000000000 +0100
+++ ecos-working/packages/hal/arm/xscale/pxa2x0/current/cdl/hal_arm_xscale_pxa2x0.cdl 2005-09-15 12:35:57.000000000 +0100
@@ -68,7 +68,7 @@
puts $::cdl_system_header "#define CYGBLD_HAL_ARM_VAR_IO_H"
}
- compile hal_diag.c pxa2x0_misc.c
+ compile pxa2x0_misc.c
# Real-time clock/counter specifics
cdl_component CYGNUM_HAL_RTC_CONSTANTS {
@@ -129,6 +129,14 @@
serial port can be used as a diagnostic and/or debug channel."
}
+ cdl_option CYGBLD_BUILD_HAL_ARM_XSCALE_PXA2X0_SERIAL_DIAG {
+ display "Include support for PXA2X0 serial diagnostic/debug channels"
+ calculated { CYGHWR_HAL_ARM_PXA2X0_FFUART
+ | CYGHWR_HAL_ARM_PXA2X0_BTUART
+ | CYGHWR_HAL_ARM_PXA2X0_STUART }
+
+ compile hal_diag.c
+ }
}
Index: ecos-working/packages/hal/arm/xscale/pxa2x0/current/ChangeLog
===================================================================
--- ecos-working.orig/packages/hal/arm/xscale/pxa2x0/current/ChangeLog 2005-05-04 10:33:03.000000000 +0100
+++ ecos-working/packages/hal/arm/xscale/pxa2x0/current/ChangeLog 2005-09-15 12:37:16.000000000 +0100
@@ -1,3 +1,8 @@
+2005-09-15 David Vrabel <dvrabel@arcom.com>
+
+ * cdl/hal_arm_xscale_pxa2x0.cdl: Only build hal_diag.h if one of
+ the three internal UARTs is used.
+
2005-04-22 Ian Campbell <icampbell@arcom.com>
* include/hal_pxa2x0.h: OSCC was incorrectly name CSCC.