From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 5/6] package/genpart: new host-only package
Date: Thu, 7 Mar 2013 22:55:30 +0100 [thread overview]
Message-ID: <bfe10d7db2c24538af439516e719f4e1c98eba5b.1362693294.git.yann.morin.1998@free.fr> (raw)
In-Reply-To: <cover.1362693294.git.yann.morin.1998@free.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
package/Config.in.host | 1 +
package/genpart/Config.in.host | 8 ++++++++
package/genpart/genpart-fix-return-code.patch | 25 +++++++++++++++++++++++++
package/genpart/genpart.mk | 11 +++++++++++
4 files changed, 45 insertions(+), 0 deletions(-)
create mode 100644 package/genpart/Config.in.host
create mode 100644 package/genpart/genpart-fix-return-code.patch
create mode 100644 package/genpart/genpart.mk
diff --git a/package/Config.in.host b/package/Config.in.host
index c456d5d..e97f6e8 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -4,6 +4,7 @@ source "package/dfu-util/Config.in.host"
source "package/dosfstools/Config.in.host"
source "package/e2fsprogs/Config.in.host"
source "package/genimage/Config.in.host"
+source "package/genpart/Config.in.host"
source "package/lpc3250loader/Config.in.host"
source "package/omap-u-boot-utils/Config.in.host"
source "package/openocd/Config.in.host"
diff --git a/package/genpart/Config.in.host b/package/genpart/Config.in.host
new file mode 100644
index 0000000..f986504
--- /dev/null
+++ b/package/genpart/Config.in.host
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_HOST_GENPART
+ bool "host genpart"
+ help
+ Generate a 16 byte partition table entry defined by command line
+ arguments and dump it to stdout. No CHS magic is done, only lba
+ entries are filled out.
+
+ http://www.pengutronix.de/software/genpart/index_en.html
diff --git a/package/genpart/genpart-fix-return-code.patch b/package/genpart/genpart-fix-return-code.patch
new file mode 100644
index 0000000..14ff165
--- /dev/null
+++ b/package/genpart/genpart-fix-return-code.patch
@@ -0,0 +1,25 @@
+genpart: return 0 if partition writen OK, with no do_magic
+
+If do_magic is false, we don't won't write the 0xaa55 magic.
+However, if we succesfully wrote the partition entry, we still
+want to return 0 to indicate success.
+
+Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
+Cc: Robert Schwebel <r.schwebel@pengutronix.de>
+
+--
+Patch sent upstream, but no mailing list.
+Status: pending...
+
+diff -durN host-genpart-1.0.2.orig/src/genpart.c host-genpart-1.0.2/src/genpart.c
+--- host-genpart-1.0.2.orig/src/genpart.c 2009-12-20 21:54:56.000000000 +0100
++++ host-genpart-1.0.2/src/genpart.c 2013-01-22 23:13:24.109752579 +0100
+@@ -92,6 +92,8 @@
+ if (do_magic) {
+ if (fwrite(&magic, 2, 1, stdout) > 0)
+ rc=0;
++ } else {
++ rc=0;
+ }
+ }
+ return rc;
diff --git a/package/genpart/genpart.mk b/package/genpart/genpart.mk
new file mode 100644
index 0000000..735333a
--- /dev/null
+++ b/package/genpart/genpart.mk
@@ -0,0 +1,11 @@
+#############################################################
+#
+# genpart
+#
+#############################################################
+
+GENPART_VERSION = 1.0.2
+GENPART_SOURCE = genpart-$(GENPART_VERSION).tar.bz2
+GENPART_SITE = http://www.pengutronix.de/software/genpart/download/
+
+$(eval $(host-autotools-package))
--
1.7.2.5
next prev parent reply other threads:[~2013-03-07 21:55 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-07 21:55 [Buildroot] [pull request v4] Pull request for branch yem-host-image-tools Yann E. MORIN
2013-03-07 21:55 ` [Buildroot] [PATCH 1/6] package/e2fsprogs: add host-package selection Yann E. MORIN
2013-03-07 21:55 ` [Buildroot] [PATCH 2/6] package/dosfstools: " Yann E. MORIN
2013-03-07 21:55 ` [Buildroot] [PATCH 3/6] package/libconfuse: add host variant Yann E. MORIN
2013-03-07 21:55 ` [Buildroot] [PATCH 4/6] package/genimage: new host-only package Yann E. MORIN
2013-03-10 11:41 ` Thomas Petazzoni
2013-03-10 23:39 ` Yann E. MORIN
2013-03-11 21:30 ` Thomas Petazzoni
2013-03-07 21:55 ` Yann E. MORIN [this message]
2013-03-10 11:44 ` [Buildroot] [PATCH 5/6] package/genpart: " Thomas Petazzoni
2013-03-10 23:50 ` Yann E. MORIN
2013-03-07 21:55 ` [Buildroot] [PATCH 6/6] package/mtools: new host-package Yann E. MORIN
2013-03-10 11:49 ` Thomas Petazzoni
2013-03-11 0:02 ` Yann E. MORIN
2013-03-11 21:30 ` Thomas Petazzoni
2013-03-12 17:16 ` Luca Ceresoli
2013-03-12 17:40 ` Thomas De Schampheleire
2013-03-12 23:24 ` Arnout Vandecappelle
2013-03-15 11:48 ` Thomas Petazzoni
2013-03-10 11:40 ` [Buildroot] [pull request v4] Pull request for branch yem-host-image-tools Thomas Petazzoni
-- strict thread matches above, loose matches on Subject: below --
2013-03-17 18:19 [Buildroot] [pull request v5] " Yann E. MORIN
2013-03-17 18:19 ` [Buildroot] [PATCH 5/6] package/genpart: new host-only package Yann E. MORIN
2013-03-18 22:11 ` Peter Korsgaard
2013-02-17 23:04 [Buildroot] [pull request v3 'next'] Pull request for branch yem-host-image-tools Yann E. MORIN
2013-02-17 23:04 ` [Buildroot] [PATCH 5/6] package/genpart: new host-only package Yann E. MORIN
2013-02-08 21:56 [Buildroot] [pull request v2] Pull request for branch yem-host-image-tools Yann E. MORIN
2013-02-08 21:56 ` [Buildroot] [PATCH 5/6] package/genpart: new host-only package Yann E. MORIN
2013-02-08 17:32 [Buildroot] [pull request] Pull request for branch yem-host-image-tools Yann E. MORIN
2013-02-08 17:32 ` [Buildroot] [PATCH 5/6] package/genpart: new host-only package Yann E. MORIN
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=bfe10d7db2c24538af439516e719f4e1c98eba5b.1362693294.git.yann.morin.1998@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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 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.