view boards/boards.mk @ 187:f3b340294261

fix pin name (wps->reset)
author ray@terran.dlink.ua
date Tue, 02 Aug 2011 00:25:22 +0300
parents ea7013b175c6
children 3b87524c2bed
line wrap: on
line source
TARGET_DEVICE?="NONE"
TARGET_VENDOR?="NONE"

.if !empty(TARGET_PAIR)
TARGET_VENDOR=${TARGET_PAIR:C/\/.*//}
TARGET_DEVICE=${TARGET_PAIR:C/.*\///}
.endif

.if exists(${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/) && exists(${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/${TARGET_DEVICE}/)
TARGET_BOARDDIR= ${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/${TARGET_DEVICE}
.include "${TARGET_BOARDDIR}/board.mk"

.if exists(${TARGET_BOARDDIR}/files)
ROOTFS_COPY_DIRS+=${TARGET_BOARDDIR}/files
.endif

.endif

.if !defined(TARGET_BOARDDIR)
PAIRS!=ls -d ${ZROUTER_ROOT}/boards/*/* | sed 's/^.*\/boards\///'

.warning "No board configuration for pair TARGET_VENDOR/TARGET_DEVICE `${TARGET_VENDOR}/${TARGET_DEVICE}`"
.error "Posible pairs ${PAIRS}"
.endif