view boards/boards.mk @ 493:f9461de5ba49

add port-build empty target for case when no ports selected to build.
author Aleksandr Rybalko <ray@ddteam.net>
date Tue, 27 Nov 2012 16:03:20 +0200
parents c46079649662
children 84aaea99df31
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}/)

.if 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

.if exists(${TARGET_BOARDDIR}/board_firmware.sig)
BOARD_FIRMWARE_SIGNATURE_FILE=${TARGET_BOARDDIR}/board_firmware.sig
.endif

.else
.error "No ${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/ board model directory found"
.endif # exists(${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/${TARGET_DEVICE}/)

.if exists(${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/vendor.mk)
.include "${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/vendor.mk"
.endif # exists(${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/vendor.mk)

.else
.error "No ${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/ board vendor directory found"
.endif # exists(${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/)