makefile : Change to add MEMRWOFF for targets this is not declared.

Change to add MEMRWOFF as 0, for targets this is not declared.

Change-Id: Ie982cc67b72430712c985b30c6f092bad9e34e8b
diff --git a/makefile b/makefile
index 417b414..b2d40a6 100644
--- a/makefile
+++ b/makefile
@@ -211,6 +211,13 @@
 	ARCH_$(ARCH)=1 \
 	$(addsuffix =1,$(addprefix WITH_,$(ALLMODULES)))
 
+# Add MEMRWOFF as . for targets this is not declared.
+# . will be replaced as string in linker file.
+ifeq ($(MEMRWOFF),)
+MEMRWOFF:= .
+DEFINES += MEMRWOFF=$(MEMRWOFF)
+endif
+
 # debug build?
 ifneq ($(DEBUG),)
 DEFINES += \