changeset 363:b36c557b7d90

Protect other make targets, that can work w/o defined board/soc/arch/etc
author ray@terran.dlink.ua
date Mon, 06 Feb 2012 20:12:31 +0200
parents 06512527b6d5
children f3bf18ca59a1
files socs/socs.mk
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/socs/socs.mk	Mon Feb 06 20:11:14 2012 +0200
+++ b/socs/socs.mk	Mon Feb 06 20:12:31 2012 +0200
@@ -13,9 +13,11 @@
 SOC_PAIRS!=ls -d ${ZROUTER_ROOT}/socs/*/* | sed 's/^.*\/socs\///'
 .endif
 
+.if defined(TARGET_ARCH)
 .if ${TARGET_ARCH} == "mipsel" || ${TARGET_ARCH} == "mipseb"
 KERNCONF_KERN_LDSCRIPT_NAME?=	ldscript.mips.bin
 .else
 KERNCONF_KERN_LDSCRIPT_NAME?=	ldscript.${TARGET}
 .endif
+.endif