[Zrouter-src] ZRouter.org: push to ZRouter Makefile
zrouter-src at zrouter.org
zrouter-src at zrouter.org
Mon Dec 5 18:27:07 UTC 2011
details: http://zrouter.org/hg/zrouter//rev/f09dd113530c
changeset: 249:f09dd113530c
user: ray at terran.dlink.ua
date: Mon Dec 05 20:27:03 2011 +0200
description:
Set default profile.
If size of flash defined and it less than 8M, then xSMALL_,
else SMALL_. But only if profiles not defined yet.
Pointed by: Nicolai Petri
diffstat:
Makefile | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 5dbd4d28d3b7 -r f09dd113530c Makefile
--- a/Makefile Mon Dec 05 20:11:28 2011 +0200
+++ b/Makefile Mon Dec 05 20:27:03 2011 +0200
@@ -49,6 +49,15 @@
# Set SoC defaults based on SOC_VENDOR/SOC_CHIP
.include "socs/socs.mk"
+.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
+TARGET_PROFILES=xSMALL_
+.else
+TARGET_PROFILES=SMALL_
+.endif
+.endif # !defined(TARGET_PROFILES) || empty(TARGET_PROFILES)
+
# Profiles - set of SUBDIRS that need to build
.include "profiles/profiles.mk"
@@ -312,12 +321,7 @@
.endfor
FREEBSD_BUILD_ENV_VARS!=(MAKEOBJDIRPREFIX=${ZROUTER_OBJ}/tmp/ ${MAKE} ${_WORLD_BUILD_ENV} -C ${FREEBSD_SRC_TREE} buildenvvars)
-#.warning ${FREEBSD_BUILD_ENV_VARS}
-#FREEBSD_BUILD_ENV_VARS_SECOND!=${FREEBSD_BUILD_ENV_VARS}
-#.warning ${FREEBSD_BUILD_ENV_VARS_SECOND}
-
# Import buildenvvars into our namespace with suffix FREEBSD_BUILD_ENV_
-#.for var in ${FREEBSD_BUILD_ENV_VARS_SECOND}
.for var in ${FREEBSD_BUILD_ENV_VARS}
FREEBSD_BUILD_ENV_${var}
.endfor
More information about the Zrouter-src
mailing list