FreeCalypso > hg > freecalypso-sw
comparison nuc-fw/cfgmagic/processconf.sh @ 122:28f967578233
RVT compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Thu, 31 Oct 2013 04:37:17 +0000 |
parents | ccde45a06737 |
children | 595631eee4bc |
comparison
equal
deleted
inserted
replaced
121:15e972110527 | 122:28f967578233 |
---|---|
13 TARGET= | 13 TARGET= |
14 c_export_list= | 14 c_export_list= |
15 mk_export_list= | 15 mk_export_list= |
16 m4_export_list= | 16 m4_export_list= |
17 | 17 |
18 # some defaults | |
19 RVTMUX_UART_port=IrDA | |
20 RVTMUX_UART_baud=115200 | |
21 | |
18 . ./build.conf | 22 . ./build.conf |
19 | 23 |
20 if [ -z "$TARGET" ] | 24 if [ -z "$TARGET" ] |
21 then | 25 then |
22 echo "Error: target not set in build.conf" 1>&2 | 26 echo "Error: target not set in build.conf" 1>&2 |
23 exit 1 | 27 exit 1 |
24 fi | 28 fi |
25 | 29 |
30 # Serial configuration | |
31 case "$RVTMUX_UART_port" in | |
32 IrDA) | |
33 ;; | |
34 MODEM) | |
35 CONFIG_RVTMUX_ON_MODEM=1 | |
36 export_to_c CONFIG_RVTMUX_ON_MODEM | |
37 ;; | |
38 *) | |
39 echo "Error: unknown RTVMUX_UART_port=$RTVMUX_UART_port" 1>&2 | |
40 exit 1 | |
41 ;; | |
42 esac | |
43 | |
44 TR_BAUD_CONFIG=TR_BAUD_$RVTMUX_UART_baud | |
45 export_to_c TR_BAUD_CONFIG | |
46 | |
26 # Once we get some actual functionality, the following definitions | 47 # Once we get some actual functionality, the following definitions |
27 # will likely depend on the target and feature configuration, | 48 # will likely depend on the target and feature configuration, |
28 # but for now all we have is a FreeNucleus RTOS demo. | 49 # but for now all we have is a FreeNucleus RTOS demo. |
29 | 50 |
30 BUILD_COMPONENTS="nucdemo nucleus sprintf sysglue" | 51 BUILD_COMPONENTS="bsp nucdemo nucleus serial sprintf sysglue" |
31 export_to_mk BUILD_COMPONENTS | 52 export_to_mk BUILD_COMPONENTS |
32 | 53 |
33 BUILD_DEFAULT_IMAGE=ramImage | 54 BUILD_DEFAULT_IMAGE=ramImage |
34 export_to_mk BUILD_DEFAULT_IMAGE | 55 export_to_mk BUILD_DEFAULT_IMAGE |
35 | 56 |