This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Re: pxa2x0: only build hal_diag.c if the internal uarts are used
- From: David Vrabel <dvrabel at arcom dot com>
- To: David Vrabel <dvrabel at arcom dot com>
- Cc: eCos Patches <ecos-patches at ecos dot sourceware dot org>
- Date: Mon, 19 Sep 2005 16:13:55 +0100
- Subject: Re: pxa2x0: only build hal_diag.c if the internal uarts are used
- References: <4329603A.8070603@arcom.com>
David Vrabel wrote:
> + calculated { CYGHWR_HAL_ARM_PXA2X0_FFUART
> + | CYGHWR_HAL_ARM_PXA2X0_BTUART
> + | CYGHWR_HAL_ARM_PXA2X0_STUART }
Oops. Those are the wrong sort of or operator. Pass me a brown paper
bag, please. Updated patch applied.
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-19 15:14:48.000000000 +0100
+++ ecos-working/packages/hal/arm/xscale/pxa2x0/current/cdl/hal_arm_xscale_pxa2x0.cdl 2005-09-19 16:08:48.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-09-19 15:14:48.000000000 +0100
+++ ecos-working/packages/hal/arm/xscale/pxa2x0/current/ChangeLog 2005-09-19 16:09:05.000000000 +0100
@@ -1,3 +1,8 @@
+2005-09-15 David Vrabel <dvrabel@arcom.com>
+
+ * cdl/hal_arm_xscale_pxa2x0.cdl: Only build hal_diag.c 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.