source: rtems/c/src/lib/libbsp/powerpc/motorola_powerpc/configure.ac @ 9c13e52

Last change on this file since 9c13e52 was 9c13e52, checked in by Peter Dufault <dufault@…>, on 04/27/21 at 17:48:46

powerpc/shared/console: Make console baud rate configurable.

The "powerpc/shared/console" code has the start-up console value fixed
at 9600 baud. This changes the hard-wired constant "9600" in the code
to the configuration setting "BSP_CONSOLE_BAUD" and adds configuration
support in both the "waf" and the legacy configuration systems.

Note that the VME BSPs beatnik, mvme3100, and mve5100 can be improved
by adding a "mvmexxxx" BSP family. This configuration change, as well
as future configuration changes, could then be made in a "grp.yml" file.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1## Process this file with autoconf to produce a configure script.
2
3AC_PREREQ([2.69])
4AC_INIT([rtems-c-src-lib-libbsp-powerpc-motorola_powerpc],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
5RTEMS_TOP(../../../../../..)
6RTEMS_SOURCE_TOP
7RTEMS_BUILD_TOP
8RTEMS_BSP_LINKCMDS
9
10RTEMS_CANONICAL_TARGET_CPU
11AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
12RTEMS_BSP_CONFIGURE
13
14RTEMS_CHECK_TOOL(NM,nm,no)
15
16
17AS=$CC
18AM_PROG_AS
19
20RTEMS_BSPOPTS_SET_DATA_CACHE_ENABLED([*],[1])
21RTEMS_BSPOPTS_HELP_DATA_CACHE_ENABLED
22
23RTEMS_BSPOPTS_SET_INSTRUCTION_CACHE_ENABLED([*],[1])
24RTEMS_BSPOPTS_HELP_INSTRUCTION_CACHE_ENABLED
25
26RTEMS_BSPOPTS_SET([CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK], [*], [1])
27RTEMS_BSPOPTS_HELP([CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK],
28[If defined then the BSP may reduce the available memory size
29initially. This can be useful for debugging (reduce the core
30size) or dynamic loading (std gcc text offsets/jumps are < +/-32M).
31Note that the policy can still be defined by the application
32(see sbrk.c, BSP_sbrk_policy). By undefining
33CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK this feature is removed
34and a little memory is saved.])
35
36RTEMS_BSPOPTS_SET([BSP_CONSOLE_BAUD],[*],[9600])
37RTEMS_BSPOPTS_HELP([BSP_CONSOLE_BAUD],
38[default console baud])
39
40RTEMS_BSPOPTS_SET([mvme2100],[mvme2100],[1])
41RTEMS_BSPOPTS_SET([mvme2100],[*],[])
42RTEMS_BSPOPTS_HELP([mvme2100],
43[Defined for MVME2100 -- undefined for others])
44
45RTEMS_BSPOPTS_SET([mpc8240],[mvme2100],[1])
46RTEMS_BSPOPTS_SET([mpc8240],[*],[])
47RTEMS_BSPOPTS_HELP([mpc8240],
48[Defined for boards with MPC8240 -- undefined for others])
49
50RTEMS_BSPOPTS_SET([qemu],[qemuprep*],[1])
51RTEMS_BSPOPTS_SET([qemu],[*],[])
52RTEMS_BSPOPTS_HELP([qemu],[Defined for QEMU BSP -- undefined for others])
53
54RTEMS_BSPOPTS_SET([mpc750],[mcp750],[1])
55RTEMS_BSPOPTS_SET([mpc750],[*],[])
56RTEMS_BSPOPTS_HELP([mpc750],[Define when mpc750 -- undefined for others])
57
58RTEMS_BSPOPTS_SET([mpc603e],[mtx603e],[1])
59RTEMS_BSPOPTS_SET([mpc603e],[mvme2100],[1])
60RTEMS_BSPOPTS_SET([mpc603e],[*],[])
61RTEMS_BSPOPTS_HELP([mpc603e],[Define when ppc603e -- undefined for others])
62
63RTEMS_BSPOPTS_SET([__ppc_generic],[qemuprep],[1])
64RTEMS_BSPOPTS_SET([__ppc_generic],[qemuprep-altivec],[1])
65RTEMS_BSPOPTS_SET([__ppc_generic],[*],[])
66RTEMS_BSPOPTS_HELP([__ppc_generic],[Define when generic PPC -- undefined for others])
67
68RTEMS_BSP_CLEANUP_OPTIONS
69
70# Explicitly list all Makefiles here
71AC_CONFIG_FILES([Makefile])
72case "${RTEMS_BSP}" in
73        qemuprep* )
74AC_CONFIG_FILES([qemu_fakerom/Makefile])
75        ;;
76esac
77AC_CONFIG_FILES([bootloader/Makefile])
78
79RTEMS_PPC_EXCEPTIONS
80
81AM_CONDITIONAL([QEMU],[case xx"${RTEMS_BSP}" in xxqemuprep*) true;; *) false;; esac])
82
83AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.