Changeset 662


Ignore:
Timestamp:
Mar 17, 2014, 10:47:37 AM (9 years ago)
Author:
cfuguet
Message:

Bugfix in tsar_boot makefile:

  • when defining makefile parameters (SOCLIB, RAMDISK, USE_DT), the assigned value is used instead of only their definition.

Example: make PLATFORM_DIR=<path> SOCLIB=1 RAMDISK=1

make PLATFORM_DIR=<path> SOCLIB=1 RAMDISK=0

In the former example, the preloader sould be compiled for
SOCLIB using RAMDISK.
In the latter the preloader should be compiled for SOCLIB
without using RAMDISK.

Before modifications in this commit, the two invocations examples
would result on SOCLIB using RAMDISK because the value was not
used but only the definition.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/softs/tsar_boot/Makefile

    r654 r662  
    33
    44MAKECMDGOALS ?= none
     5RAMDISK      ?= 0
     6SOCLIB       ?= 0
    57
    68ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc))
     
    810    $(error please define PLATFORM_DIR 'make PLATFORM_DIR=foo')
    911  else
    10     ifdef SOCLIB
    11       ifdef RAMDISK
     12    ifeq ($(SOCLIB),1)
     13      ifeq ($(RAMDISK),1)
    1214        DEFS+= -DUSE_RDK
    1315      else
     
    7173              reset_exception.c
    7274
    73 ifndef SOCLIB
     75ifeq ($(SOCLIB),0)
    7476  C_SRCS   += sdcard.c spi.c
    7577endif
Note: See TracChangeset for help on using the changeset viewer.