Index: /trunk/softs/tsar_boot/Makefile
===================================================================
--- /trunk/softs/tsar_boot/Makefile	(revision 661)
+++ /trunk/softs/tsar_boot/Makefile	(revision 662)
@@ -3,4 +3,6 @@
 
 MAKECMDGOALS ?= none
+RAMDISK      ?= 0
+SOCLIB       ?= 0
 
 ifneq ($(MAKECMDGOALS),$(filter $(MAKECMDGOALS),clean distclean clean-doc doc))
@@ -8,6 +10,6 @@
     $(error please define PLATFORM_DIR 'make PLATFORM_DIR=foo')
   else
-    ifdef SOCLIB
-      ifdef RAMDISK
+    ifeq ($(SOCLIB),1)
+      ifeq ($(RAMDISK),1)
         DEFS+= -DUSE_RDK
       else
@@ -71,5 +73,5 @@
               reset_exception.c
 
-ifndef SOCLIB
+ifeq ($(SOCLIB),0)
   C_SRCS   += sdcard.c spi.c
 endif
