source: rtems/c/src/lib/libbsp/riscv/riscv/configure.ac @ fe2cd01b

5
Last change on this file since fe2cd01b was fe2cd01b, checked in by Sebastian Huber <sebastian.huber@…>, on 06/22/18 at 06:01:48

bsp/riscv: Add device tree support

Update #3433.

  • Property mode set to 100644
File size: 1.7 KB
Line 
1##
2#
3# @file
4#
5# @brief Configure script of LibBSP for riscv BSP.
6#
7
8AC_PREREQ([2.69])
9AC_INIT([rtems-c-src-lib-libbsp-riscv],[_RTEMS_VERSION],[http://www.rtems.org/bugzilla])
10RTEMS_TOP(../../../../../..)
11RTEMS_SOURCE_TOP
12RTEMS_BUILD_TOP
13
14RTEMS_CANONICAL_TARGET_CPU
15AM_INIT_AUTOMAKE([no-define nostdinc foreign 1.12.2])
16RTEMS_BSP_CONFIGURE
17
18RTEMS_BSPOPTS_SET([BSP_START_COPY_FDT_FROM_U_BOOT],[*],[1])
19RTEMS_BSPOPTS_HELP([BSP_START_COPY_FDT_FROM_U_BOOT],[copy the U-Boot provided FDT to an internal storage])
20
21RTEMS_BSPOPTS_SET([BSP_FDT_BLOB_SIZE_MAX],[*],[65536])
22RTEMS_BSPOPTS_HELP([BSP_FDT_BLOB_SIZE_MAX],[maximum size of the FDT blob in bytes])
23
24RTEMS_BSPOPTS_SET([BSP_FDT_BLOB_READ_ONLY],[*],[1])
25RTEMS_BSPOPTS_HELP([BSP_FDT_BLOB_READ_ONLY],[place the FDT blob into the read-only data area])
26
27RTEMS_BSPOPTS_SET([BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA],[*],[1])
28RTEMS_BSPOPTS_HELP([BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA],[copy the FDT blob into the read-only load area via bsp_fdt_copy()])
29
30RTEMS_BSP_CLEANUP_OPTIONS
31
32case "${RTEMS_BSP}" in
33  rv64*medany)
34    RISCV_RAM_REGION_BEGIN_DEFAULT=0x80000000
35    ;;
36  rv64*)
37    RISCV_RAM_REGION_BEGIN_DEFAULT=0x70000000
38    ;;
39  *)
40    RISCV_RAM_REGION_BEGIN_DEFAULT=0x80000000
41    ;;
42esac
43
44AC_DEFUN([RISCV_LINKCMD],[
45AC_ARG_VAR([$1],[$2])dnl
46[$1]=[$]{[$1]:-[$3]}
47])
48
49RISCV_LINKCMD([RISCV_RAM_REGION_BEGIN],[begin of the RAM region for linker command file (default is 0x70000000 for 64-bit with -mcmodel=medlow and 0x80000000 for all other)],[${RISCV_RAM_REGION_BEGIN_DEFAULT}])
50RISCV_LINKCMD([RISCV_RAM_REGION_SIZE],[size of the RAM region for linker command file (default 64MiB)],[0x04000000])
51
52AC_CONFIG_FILES([
53Makefile
54linkcmds:../../../../../../bsps/riscv/riscv/start/linkcmds.in
55])
56AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.