Changeset 38a5385 in rtems


Ignore:
Timestamp:
Sep 1, 2016, 7:55:51 PM (3 years ago)
Author:
Pavel Pisa <pisa@…>
Branches:
master
Children:
df2ee9d
Parents:
dfbedf3
git-author:
Pavel Pisa <pisa@…> (09/01/16 19:55:51)
git-committer:
Pavel Pisa <pisa@…> (09/07/16 18:29:39)
Message:

arm/raspberrypi: propagate number of configured CPUs into linker script.

Location:
c/src/lib/libbsp/arm/raspberrypi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/arm/raspberrypi/configure.ac

    rdfbedf3 r38a5385  
    4141AM_CONDITIONAL(RTEMS_RPI2,[test "$BSP_IS_RPI2" = "1"])
    4242
     43# Hom many CPUs are used?
     44RASPBERRYPI_CPUS="1"
     45RTEMS_CHECK_SMP
     46AM_CONDITIONAL(HAS_SMP,[test "$rtems_cv_HAS_SMP" = "yes"])
     47AS_IF([test "$rtems_cv_HAS_SMP" = "yes"],
     48      [RASPBERRYPI_CPUS="4"])
     49
     50AC_DEFUN([RASPBERRYPI_LINKCMD],[
     51AC_ARG_VAR([$1],[$2; default $3])dnl
     52[$1]=[$]{[$1]:-[$3]}
     53])
     54
     55RASPBERRYPI_LINKCMD([RASPBERRYPI_CPUS],[Number of active cores],[${RASPBERRYPI_CPUS}])
     56
    4357RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
    4458
  • c/src/lib/libbsp/arm/raspberrypi/startup/linkcmds.in

    rdfbedf3 r38a5385  
    4242}
    4343
     44bsp_processor_count = DEFINED (bsp_processor_count) ? bsp_processor_count : @RASPBERRYPI_CPUS@;
     45
    4446REGION_ALIAS ("REGION_START", RAM);
    4547REGION_ALIAS ("REGION_VECTOR", VECTOR_RAM);
Note: See TracChangeset for help on using the changeset viewer.