All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] Build: Implement sentinel to pass board options
@ 2010-10-03 16:34 Marek Vasut
  2010-10-03 16:34 ` [U-Boot] [PATCH 2/3] Build: PXA: Fix Vpac270 build variants Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Marek Vasut @ 2010-10-03 16:34 UTC (permalink / raw)
  To: u-boot

With this implementation, the sentinel character in TARGET name is interpreted
as an option and expanded to CONFIG_MK_xxx.

Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
---
 boards.cfg |    1 +
 mkconfig   |    7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/boards.cfg b/boards.cfg
index 62bcca8..96c8890 100644
--- a/boards.cfg
+++ b/boards.cfg
@@ -12,6 +12,7 @@
 #
 #	Lines starting with '#' are comments.
 #	Blank lines are ignored.
+#	Sentinel is used to specify board options.
 #
 # To keep the list sorted, use something like
 #
diff --git a/mkconfig b/mkconfig
index b661071..62d6bd6 100755
--- a/mkconfig
+++ b/mkconfig
@@ -43,7 +43,10 @@ done
 [ $# -lt 4 ] && exit 1
 [ $# -gt 6 ] && exit 1
 
-CONFIG_NAME="${1%_config}"
+# The sentinel is used to define board options
+TARGETS="`echo $1 | sed "s/^[^@]*@//" | sed 's:@: :g'` ${TARGETS}"
+
+CONFIG_NAME="`echo ${1%_config} | sed 's/@.*$//g'`"
 
 [ "${BOARD_NAME}" ] || BOARD_NAME="${CONFIG_NAME}"
 
@@ -52,7 +55,7 @@ cpu="$3"
 if [ "$4" = "-" ] ; then
 	board=${BOARD_NAME}
 else
-	board="$4"
+	board="`echo $1 | sed 's/@.*$//g'`"
 fi
 [ $# -gt 4 ] && [ "$5" != "-" ] && vendor="$5"
 [ $# -gt 5 ] && [ "$6" != "-" ] && soc="$6"
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-03 20:28 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-03 16:34 [U-Boot] [PATCH 1/3] Build: Implement sentinel to pass board options Marek Vasut
2010-10-03 16:34 ` [U-Boot] [PATCH 2/3] Build: PXA: Fix Vpac270 build variants Marek Vasut
2010-10-03 20:27   ` Wolfgang Denk
2010-10-03 16:34 ` [U-Boot] [PATCH 3/3] Build: PXA: Fix TrizepsIV " Marek Vasut
2010-10-03 16:38   ` Marek Vasut
2010-10-03 20:28   ` Wolfgang Denk
2010-10-03 20:26 ` [U-Boot] [PATCH 1/3] Build: Implement sentinel to pass board options Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.