source: rtems/c/src/aclocal/rtems-cpu-subdirs.m4 @ 7ea7178

5
Last change on this file since 7ea7178 was 76c03152, checked in by Amaan Cheval <amaan.cheval@…>, on 07/09/18 at 11:12:56

bsp/x86_64: Minimal bootable BSP

Current state:

  • Basic context initialization and switching code.
  • Stubbed console (empty functions).
  • Mostly functional linker script (may need tweaks if we ever want to move away from the large code model (see: CPU_CFLAGS).
  • Fully functional boot, by using FreeBSD's bootloader to load RTEMS's ELF for UEFI-awareness.

In short, the current state with this commit lets us boot, go through the system
initialization functions, and then call user application's Init task too.

Updates #2898.

  • Property mode set to 100644
File size: 1006 bytes
Line 
1AC_DEFUN([_RTEMS_CPU_SUBDIR],
2[
3$1 )    if test -d ${srcdir}/ifelse([$2],,[$1],[$2/$1]) ; then
4  AC_CONFIG_SUBDIRS(ifelse([$2],,[$1],[$2/$1]))
5  fi
6])
7
8## RTEMS_CPU_SUBDIRS([PREFIX])
9AC_DEFUN([RTEMS_CPU_SUBDIRS],
10[
11## EDIT: If adding a new cpu to RTEMS, add it to the case block below.
12case $RTEMS_CPU in
13_RTEMS_CPU_SUBDIR([arm],[$1]);;
14_RTEMS_CPU_SUBDIR([bfin],[$1]);;
15_RTEMS_CPU_SUBDIR([epiphany],[$1]);;
16_RTEMS_CPU_SUBDIR([i386],[$1]);;
17_RTEMS_CPU_SUBDIR([lm32],[$1]);;
18_RTEMS_CPU_SUBDIR([m32c],[$1]);;
19_RTEMS_CPU_SUBDIR([m68k],[$1]);;
20_RTEMS_CPU_SUBDIR([mips],[$1]);;
21_RTEMS_CPU_SUBDIR([moxie],[$1]);;
22_RTEMS_CPU_SUBDIR([nios2],[$1]);;
23_RTEMS_CPU_SUBDIR([no_cpu],[$1]);;
24_RTEMS_CPU_SUBDIR([or1k],[$1]);;
25_RTEMS_CPU_SUBDIR([powerpc],[$1]);;
26_RTEMS_CPU_SUBDIR([riscv],[$1]);;
27_RTEMS_CPU_SUBDIR([sh],[$1]);;
28_RTEMS_CPU_SUBDIR([sparc],[$1]);;
29_RTEMS_CPU_SUBDIR([sparc64],[$1]);;
30_RTEMS_CPU_SUBDIR([v850],[$1]);;
31_RTEMS_CPU_SUBDIR([x86_64],[$1]);;
32*) AC_MSG_ERROR([Invalid RTEMS_CPU <[$]{RTEMS_CPU}>])
33esac
34])
Note: See TracBrowser for help on using the repository browser.