[Zrouter-src] ZRouter.org: push to ZRouter Makefile
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Fri Dec 9 15:25:05 UTC 2011
details: http://zrouter.org/hg/zrouter//rev/a04a4ecc8470
changeset: 256:a04a4ecc8470
user: ray at terran.dlink.ua
date: Fri Dec 09 17:14:48 2011 +0200
description:
define ubntimage target to build RS/RSPRO firmware
diffstat:
Makefile | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diffs (37 lines):
diff -r 264aec490886 -r a04a4ecc8470 Makefile
--- a/Makefile Fri Dec 09 16:24:12 2011 +0200
+++ b/Makefile Fri Dec 09 17:14:48 2011 +0200
@@ -49,6 +49,8 @@
# Set SoC defaults based on SOC_VENDOR/SOC_CHIP
.include "socs/socs.mk"
+KERNCONF_MAKEOPTIONS+= "KERNLOADADDR=${KERNCONF_KERNLOADADDR}"
+
.if !defined(TARGET_PROFILES) || empty(TARGET_PROFILES)
# if we have flash and it size less than 8M assign profile xSMALL_
.if defined(BOARD_FLASH_SIZE) && !empty(BOARD_FLASH_SIZE) && ${BOARD_FLASH_SIZE} < 8388608
@@ -536,6 +538,24 @@
IMGMD5=`md5 ${NEW_IMAGE} | cut -f4 -d' '` ; \
cp ${NEW_IMAGE} ${ZROUTER_OBJ}/${TARGET_VENDOR}_${TARGET_DEVICE}-${ZROUTER_VERSION}.$${IMGMD5}.${IMAGE_SUFFIX}
+.if !defined(UBNT_VERSION) || empty(UBNT_VERSION)
+.error Specify UBNT_VERSION or device will not accept firmware
+.endif
+UBNT_FIRMWARE_IMAGE_SIZE_MAX?=${FIRMWARE_IMAGE_SIZE_MAX}
+UBNT_KERNEL_ENTRY?=${KERNCONF_KERNLOADADDR}
+UBNT_KERNEL_FLASH_BASE?=0xbf030000
+
+ubntimage: ${KERNEL_PACKED_NAME} ${ROOTFS_PACKED_NAME} ${ZTOOLS_PATH}/ubnt-mkfwimage
+ @echo "++++++++++++++ Making $@ ++++++++++++++"
+ PATH=${IMAGE_BUILD_PATHS} ubnt-mkfwimage \
+ -v "${UBNT_VERSION}" \
+ -s "${UBNT_KERNEL_FLASH_BASE}" \
+ -e "${UBNT_KERNEL_ENTRY}" \
+ -m "${UBNT_FIRMWARE_IMAGE_SIZE_MAX}" \
+ -k "${KERNEL_PACKED_NAME}" \
+ -r "${ROOTFS_PACKED_NAME}" \
+ -o "${NEW_IMAGE}"
+
.include <bsd.obj.mk>
More information about the Zrouter-src
mailing list