[Zrouter-src] ZRouter.org: push to ZRouter Makefile

zrouter-src at zrouter.org zrouter-src at zrouter.org
Mon Feb 6 18:18:32 UTC 2012


details:   http://zrouter.org/hg/zrouter//rev/462445ce9207
changeset: 366:462445ce9207
user:      ray at terran.dlink.ua
date:      Mon Feb 06 20:18:00 2012 +0200
description:
(Clean|Tidy)up, prepare for updated menu.sh

diffstat:

 Makefile |  24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diffs (60 lines):

diff -r 6c6fa895bcbc -r 462445ce9207 Makefile
--- a/Makefile	Mon Feb 06 20:16:17 2012 +0200
+++ b/Makefile	Mon Feb 06 20:18:00 2012 +0200
@@ -48,10 +48,24 @@
 KERNEL_SIZE_MAX!=sh -c 'echo $$((8 * 1024 * 1024))'
 PREINSTALLDIRS=/lib
 
+##############################################################################
 # Board configuration must define used SoC/CPU
+##############################################################################
 .include "boards/boards.mk"
 
+.if !defined(TARGET_BOARDDIR)
+TARGET_PAIRS!=ls -d ${ZROUTER_ROOT}/boards/*/* | sed 's/^.*\/boards\///'
+.endif
+
+menu:
+	@/usr/bin/env ZROUTER_ROOT="${ZROUTER_ROOT}" ${ZROUTER_ROOT}/menu.sh
+
+show-target-pairs:
+	@echo "${TARGET_PAIRS}"
+
+##############################################################################
 # Set SoC defaults based on SOC_VENDOR/SOC_CHIP
+##############################################################################
 .include "socs/socs.mk"
 
 .if ${MACHINE} == ${TARGET} && ${MACHINE_ARCH} == ${TARGET_ARCH} && !defined(CROSS_BUILD_TESTING)
@@ -86,7 +100,9 @@
 target-profiles-list:
 	@echo ${TARGET_PROFILES}
 
+##############################################################################
 # Profiles - set of SUBDIRS that need to build
+##############################################################################
 .include "profiles/profiles.mk"
 
 .if defined(IMAGE_TYPE) && ${IMAGE_TYPE} == "trx"
@@ -95,13 +111,6 @@
 IMAGE_HEADER_EXTRA?=0
 .endif
 
-
-menu:
-	@/usr/bin/env ZROUTER_ROOT="${ZROUTER_ROOT}" ${ZROUTER_ROOT}/menu.sh
-
-show-target-pairs:
-	@echo "${TARGET_PAIRS}"
-
 build-verify:
 .if !exists(${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/) || !exists(${ZROUTER_ROOT}/boards/${TARGET_VENDOR}/${TARGET_DEVICE}/)
 	@echo "Error: No board configuration for pair TARGET_VENDOR/TARGET_DEVICE \`\"${TARGET_VENDOR}\"/\"${TARGET_DEVICE}\"\`"
@@ -120,6 +129,7 @@
 	@echo "Vendor: ${TARGET_VENDOR}"
 	@echo "SoC Chip: ${SOC_CHIP}"
 	@echo "SoC Vendor: ${SOC_VENDOR}"
+	@echo "Enabled Profiles: ${TARGET_PROFILES}"
 	@echo
 
 basic-tools:


More information about the Zrouter-src mailing list