Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • stable
  • extraversion
  • early-display
  • variant-emmc-nvme-boot
  • 2024-07-19
  • 2024-06-30
  • 2023-10-18
  • 2023-10-10
  • 2023-07-04
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
14 results

Makefile

  • Tom Rini's avatar
    82b9dc63
    common: Only build cli_readline.o for CMDLINE on non-SPL · 82b9dc63
    Tom Rini authored
    
    With gcc-6 and later we may get a warning such as:
    .../common/cli_readline.c:20:21: warning: ‘tab_seq’ defined but not used [-Wunused-const-variable=]
     static const char   tab_seq[] = "        "; /* used to expand TABs */
                         ^~~~~~~
    .../common/cli_readline.c:19:19: warning: ‘erase_seq’ defined but not used [-Wunused-const-variable=]
     static const char erase_seq[] = "\b \b"; /* erase sequence */
                       ^~~~~~~~~
    
    Because in SPL we're normally not doing interactive commands anyhow, so
    lets just not compile this at all in SPL.  This also means that we need
    to correct the logic (and comment) about what the drivers/ddr/fsl/ and
    CONFIG_FSL_DDR_INTERACTIVE requires and this will be included in SPL
    there.
    
    Signed-off-by: default avatarTom Rini <trini@konsulko.com>
    82b9dc63
    History
    common: Only build cli_readline.o for CMDLINE on non-SPL
    Tom Rini authored
    
    With gcc-6 and later we may get a warning such as:
    .../common/cli_readline.c:20:21: warning: ‘tab_seq’ defined but not used [-Wunused-const-variable=]
     static const char   tab_seq[] = "        "; /* used to expand TABs */
                         ^~~~~~~
    .../common/cli_readline.c:19:19: warning: ‘erase_seq’ defined but not used [-Wunused-const-variable=]
     static const char erase_seq[] = "\b \b"; /* erase sequence */
                       ^~~~~~~~~
    
    Because in SPL we're normally not doing interactive commands anyhow, so
    lets just not compile this at all in SPL.  This also means that we need
    to correct the logic (and comment) about what the drivers/ddr/fsl/ and
    CONFIG_FSL_DDR_INTERACTIVE requires and this will be included in SPL
    there.
    
    Signed-off-by: default avatarTom Rini <trini@konsulko.com>