source: rtems/c/src/lib/libbsp/arm/raspberrypi/configure.ac

Last change on this file was eca25ef, checked in by G S Niteesh <gsnb.gn@…>, on Jan 3, 2020 at 3:26:14 AM

bsp/raspberrypi: Enable FDT support.

This commit adds FDT support to the BSP.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1##
2#
3# @file
4#
5# @brief Configure script of LibBSP for the Raspberry Pi boards.
6#
7
8AC_PREREQ([2.68])
9AC_INIT([rtems-c-src-lib-libbsp-arm-raspberrypi],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
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],[*],[262144])
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_BSPOPTS_SET([BSP_START_RESET_VECTOR],[*],[])
31RTEMS_BSPOPTS_HELP([BSP_START_RESET_VECTOR],[reset vector address for BSP start])
32
33RTEMS_BSPOPTS_SET([BSP_START_IN_HYP_SUPPORT],[*],[1])
34RTEMS_BSPOPTS_HELP([BSP_START_IN_HYP_SUPPORT], [Support start of BSP in ARM HYP mode])
35AM_CONDITIONAL(BSP_START_IN_HYP_SUPPORT,test "$BSP_START_IN_HYP_SUPPORT" = "1")
36
37RTEMS_BSPOPTS_SET([I2C_IO_MODE],[*],[1])
38RTEMS_BSPOPTS_HELP([I2C_IO_MODE],[Define to 1 to use interrupt-driven I/O with the Raspberry Pi I2C bus. If defined to other value the access will be polled-driven.])
39
40RTEMS_BSPOPTS_SET([SPI_IO_MODE],[*],[1])
41RTEMS_BSPOPTS_HELP([SPI_IO_MODE],[Define to 1 to use interrupt-driven I/O with the Raspberry Pi SPI bus. If defined to other value the access will be polled-driven.])
42
43# Is this a Raspberry Pi 2?
44RTEMS_BSPOPTS_SET([BSP_IS_RPI2],[raspberrypi2],[1])
45RTEMS_BSPOPTS_SET([BSP_IS_RPI2],[*],[0])
46RTEMS_BSPOPTS_HELP([BSP_IS_RPI2],[Set if the BSP variant is Raspberry Pi 2.])
47AM_CONDITIONAL(RTEMS_RPI2,[test "$BSP_IS_RPI2" = "1"])
48
49RPI_RAM_MMU_LENGTH="16k"
50RPI_RAM_LENGTH_AVAILABLE="256M"
51RPI_RAM_NOCACHE_LENGTH="2M"
52
53AC_DEFUN([RPI_LINKCMD],[
54AC_ARG_VAR([$1],[$2; default $3])dnl
55[$1]=[$]{[$1]:-[$3]}
56])
57
58RPI_LINKCMD([RPI_RAM_MMU_LENGTH],[MMU region length],[${BSP_RPI_RAM_MMU_LENGTH}])
59RPI_LINKCMD([RPI_RAM_LENGTH_AVAILABLE],[RAM region length],[${BSP_RPI_RAM_LENGTH_AVAILABLE}])
60RPI_LINKCMD([RPI_RAM_NOCACHE_LENGTH],[No-cache region length],[${BSP_RPI_RAM_NOCACHE_LENGTH}])
61
62RTEMS_BSP_CLEANUP_OPTIONS
63
64AC_CONFIG_FILES([
65Makefile
66linkcmds:../../../../../../bsps/arm/raspberrypi/start/linkcmds.in])
67AC_OUTPUT
Note: See TracBrowser for help on using the repository browser.