From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH 1/3] command: introduce abi version
Date: Mon, 22 Oct 2012 18:07:26 +0200 [thread overview]
Message-ID: <1350922048-25699-1-git-send-email-plagnioj@jcrosoft.com> (raw)
In-Reply-To: <20121022160341.GF21588@game.jcrosoft.org>
This will allow to detect incompatibility between the env abi and the current
barebox one
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
common/command.c | 2 ++
include/command.h | 1 +
include/command_abi.h | 12 ++++++++++++
3 files changed, 15 insertions(+)
create mode 100644 include/command_abi.h
diff --git a/common/command.c b/common/command.c
index 873b3ff..c80538c 100644
--- a/common/command.c
+++ b/common/command.c
@@ -154,6 +154,8 @@ static int init_command_list(void)
{
struct command *cmdtp;
+ export_env_ull("command_abi_version", COMMAND_ABI_VERSION);
+
for (cmdtp = &__barebox_cmd_start;
cmdtp != &__barebox_cmd_end;
cmdtp++)
diff --git a/include/command.h b/include/command.h
index ffc722c..c49a014 100644
--- a/include/command.h
+++ b/include/command.h
@@ -25,6 +25,7 @@
#include <linux/list.h>
#include <linux/stringify.h>
+#include <command_abi.h>
#ifndef NULL
#define NULL 0
diff --git a/include/command_abi.h b/include/command_abi.h
new file mode 100644
index 0000000..264c003
--- /dev/null
+++ b/include/command_abi.h
@@ -0,0 +1,12 @@
+/*
+ * (C) Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+ *
+ * Under GPL v2
+ */
+
+#ifndef __COMMAND_ABI_H__
+#define __COMMAND_ABI_H__
+
+#define COMMAND_ABI_VERSION 0
+
+#endif /* __COMMAND_ABI_H__ */
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-10-22 16:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-22 16:03 [PATCH 0/3] introduce command " Jean-Christophe PLAGNIOL-VILLARD
2012-10-22 16:07 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2012-10-22 16:07 ` [PATCH 2/3] envfs: add command_abi_version support Jean-Christophe PLAGNIOL-VILLARD
2012-10-23 8:59 ` Sascha Hauer
2012-10-23 10:20 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-23 12:56 ` Sascha Hauer
2012-10-23 13:27 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-22 16:07 ` [PATCH 3/3] environment: detect command_abi_version Jean-Christophe PLAGNIOL-VILLARD
2012-10-29 8:50 ` [PATCH 1/3] command: introduce abi version Sascha Hauer
2012-10-29 9:56 ` Johannes Stezenbach
2012-10-29 10:31 ` Sascha Hauer
2012-10-29 16:05 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-29 17:00 ` Johannes Stezenbach
2012-10-29 18:05 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-23 8:51 ` [PATCH 0/3] introduce command " Sascha Hauer
2012-10-23 10:28 ` Jean-Christophe PLAGNIOL-VILLARD
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1350922048-25699-1-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox