* [Buildroot] [PATCH 1/6] package/e2fsprogs: add host-package selection
2013-03-17 18:19 [Buildroot] [pull request v5] Pull request for branch yem-host-image-tools Yann E. MORIN
@ 2013-03-17 18:19 ` Yann E. MORIN
2013-03-18 22:02 ` Peter Korsgaard
2013-03-17 18:19 ` [Buildroot] [PATCH 2/6] package/dosfstools: " Yann E. MORIN
` (4 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2013-03-17 18:19 UTC (permalink / raw)
To: buildroot
Add the e2fsprogs as a host-package selection in the menuconfig.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/Config.in.host | 1 +
package/e2fsprogs/Config.in.host | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
create mode 100644 package/e2fsprogs/Config.in.host
diff --git a/package/Config.in.host b/package/Config.in.host
index 79050f2..8813f5b 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,6 +1,7 @@
menu "Host utilities"
source "package/dfu-util/Config.in.host"
+source "package/e2fsprogs/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/e2fsprogs/Config.in.host b/package/e2fsprogs/Config.in.host
new file mode 100644
index 0000000..ea6a0bd
--- /dev/null
+++ b/package/e2fsprogs/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_E2FSPROGS
+ bool "host e2fsprogs"
+ help
+ The EXT2 file system utilities.
+
+ http://e2fsprogs.sf.net
--
1.7.2.5
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 2/6] package/dosfstools: add host-package selection
2013-03-17 18:19 [Buildroot] [pull request v5] Pull request for branch yem-host-image-tools Yann E. MORIN
2013-03-17 18:19 ` [Buildroot] [PATCH 1/6] package/e2fsprogs: add host-package selection Yann E. MORIN
@ 2013-03-17 18:19 ` Yann E. MORIN
2013-03-18 22:04 ` Peter Korsgaard
2013-03-17 18:19 ` [Buildroot] [PATCH 3/6] package/libconfuse: add host variant Yann E. MORIN
` (3 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2013-03-17 18:19 UTC (permalink / raw)
To: buildroot
Add dosfstools as a host-package selection in the menuconfig.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
v1 -> v2
- use $(HOST_CONFIGURE_OPTS) (Thomas)
---
package/Config.in.host | 1 +
package/dosfstools/Config.in.host | 6 ++++++
package/dosfstools/dosfstools.mk | 9 +++++++++
3 files changed, 16 insertions(+), 0 deletions(-)
create mode 100644 package/dosfstools/Config.in.host
diff --git a/package/Config.in.host b/package/Config.in.host
index 8813f5b..43f292c 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -1,6 +1,7 @@
menu "Host utilities"
source "package/dfu-util/Config.in.host"
+source "package/dosfstools/Config.in.host"
source "package/e2fsprogs/Config.in.host"
source "package/lpc3250loader/Config.in.host"
source "package/omap-u-boot-utils/Config.in.host"
diff --git a/package/dosfstools/Config.in.host b/package/dosfstools/Config.in.host
new file mode 100644
index 0000000..9f9ceab
--- /dev/null
+++ b/package/dosfstools/Config.in.host
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_DOSFSTOOLS
+ bool "host dosfstools"
+ help
+ Tools for creating and checking DOS FAT filesystems.
+
+ http://www.daniel-baumann.ch/software/dosfstools/
diff --git a/package/dosfstools/dosfstools.mk b/package/dosfstools/dosfstools.mk
index 3a0856a..332f2ee 100644
--- a/package/dosfstools/dosfstools.mk
+++ b/package/dosfstools/dosfstools.mk
@@ -43,4 +43,13 @@ define DOSFSTOOLS_CLEAN_CMDS
-$(MAKE) -C $(@D) clean
endef
+define HOST_DOSFSTOOLS_BUILD_CMDS
+ $(MAKE) $(HOST_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define HOST_DOSFSTOOLS_INSTALL_CMDS
+ $(MAKE) -C $(@D) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr install
+endef
+
$(eval $(generic-package))
+$(eval $(host-generic-package))
--
1.7.2.5
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 3/6] package/libconfuse: add host variant
2013-03-17 18:19 [Buildroot] [pull request v5] Pull request for branch yem-host-image-tools Yann E. MORIN
2013-03-17 18:19 ` [Buildroot] [PATCH 1/6] package/e2fsprogs: add host-package selection Yann E. MORIN
2013-03-17 18:19 ` [Buildroot] [PATCH 2/6] package/dosfstools: " Yann E. MORIN
@ 2013-03-17 18:19 ` Yann E. MORIN
2013-03-18 22:04 ` Peter Korsgaard
2013-03-17 18:19 ` [Buildroot] [PATCH 4/6] package/genimage: new host-only package Yann E. MORIN
` (2 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2013-03-17 18:19 UTC (permalink / raw)
To: buildroot
Needed later by genimage.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
package/libconfuse/libconfuse.mk | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/package/libconfuse/libconfuse.mk b/package/libconfuse/libconfuse.mk
index 2fa8241..d88a209 100644
--- a/package/libconfuse/libconfuse.mk
+++ b/package/libconfuse/libconfuse.mk
@@ -10,3 +10,4 @@ LIBCONFUSE_INSTALL_STAGING = YES
LIBCONFUSE_CONF_OPT = --disable-rpath
$(eval $(autotools-package))
+$(eval $(host-autotools-package))
--
1.7.2.5
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 4/6] package/genimage: new host-only package
2013-03-17 18:19 [Buildroot] [pull request v5] Pull request for branch yem-host-image-tools Yann E. MORIN
` (2 preceding siblings ...)
2013-03-17 18:19 ` [Buildroot] [PATCH 3/6] package/libconfuse: add host variant Yann E. MORIN
@ 2013-03-17 18:19 ` Yann E. MORIN
2013-03-18 22:07 ` Peter Korsgaard
2013-03-17 18:19 ` [Buildroot] [PATCH 5/6] package/genpart: " Yann E. MORIN
2013-03-17 18:19 ` [Buildroot] [PATCH 6/6] package/mtools: new host-package Yann E. MORIN
5 siblings, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2013-03-17 18:19 UTC (permalink / raw)
To: buildroot
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Changes v1 -> v2:
- add license info (Thomas)
---
package/Config.in.host | 1 +
package/genimage/Config.in.host | 12 ++++++++++++
package/genimage/genimage.mk | 13 +++++++++++++
3 files changed, 26 insertions(+), 0 deletions(-)
create mode 100644 package/genimage/Config.in.host
create mode 100644 package/genimage/genimage.mk
diff --git a/package/Config.in.host b/package/Config.in.host
index 43f292c..c456d5d 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -3,6 +3,7 @@ menu "Host utilities"
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/lpc3250loader/Config.in.host"
source "package/omap-u-boot-utils/Config.in.host"
source "package/openocd/Config.in.host"
diff --git a/package/genimage/Config.in.host b/package/genimage/Config.in.host
new file mode 100644
index 0000000..cfa267c
--- /dev/null
+++ b/package/genimage/Config.in.host
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_HOST_GENIMAGE
+ bool "host genimage"
+ help
+ genimage is a tool to generate multiple filesystem and flash images
+ from a given root filesystem tree. genimage is intended to be run
+ in a fakeroot environment.
+
+ Configuration is done is a config file parsed by libconfuse. Options
+ like the path to tools can be given in environment variables, the config
+ file or commandline switches.
+
+ http://www.pengutronix.de/software/genimage/
diff --git a/package/genimage/genimage.mk b/package/genimage/genimage.mk
new file mode 100644
index 0000000..6ed44a4
--- /dev/null
+++ b/package/genimage/genimage.mk
@@ -0,0 +1,13 @@
+#############################################################
+#
+# genimage
+#
+##############################################################
+
+GENIMAGE_VERSION = 4
+GENIMAGE_SOURCE = genimage-$(GENIMAGE_VERSION).tar.xz
+GENIMAGE_SITE = http://www.pengutronix.de/software/genimage/download/
+GENIMAGE_DEPENDENCIES = libconfuse
+GENIMAGE_LICENSE = GPLv2
+
+$(eval $(host-autotools-package))
--
1.7.2.5
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 4/6] package/genimage: new host-only package
2013-03-17 18:19 ` [Buildroot] [PATCH 4/6] package/genimage: new host-only package Yann E. MORIN
@ 2013-03-18 22:07 ` Peter Korsgaard
0 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2013-03-18 22:07 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
Yann> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Yann> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Yann> ---
Yann> Changes v1 -> v2:
Yann> - add license info (Thomas)
Yann> ---
Yann> package/Config.in.host | 1 +
Yann> package/genimage/Config.in.host | 12 ++++++++++++
Yann> package/genimage/genimage.mk | 13 +++++++++++++
Yann> 3 files changed, 26 insertions(+), 0 deletions(-)
Yann> create mode 100644 package/genimage/Config.in.host
Yann> create mode 100644 package/genimage/genimage.mk
Yann> diff --git a/package/Config.in.host b/package/Config.in.host
Yann> index 43f292c..c456d5d 100644
Yann> --- a/package/Config.in.host
Yann> +++ b/package/Config.in.host
Yann> @@ -3,6 +3,7 @@ menu "Host utilities"
Yann> source "package/dfu-util/Config.in.host"
Yann> source "package/dosfstools/Config.in.host"
Yann> source "package/e2fsprogs/Config.in.host"
Yann> +source "package/genimage/Config.in.host"
Yann> source "package/lpc3250loader/Config.in.host"
Yann> source "package/omap-u-boot-utils/Config.in.host"
Yann> source "package/openocd/Config.in.host"
Yann> diff --git a/package/genimage/Config.in.host b/package/genimage/Config.in.host
Yann> new file mode 100644
Yann> index 0000000..cfa267c
Yann> --- /dev/null
Yann> +++ b/package/genimage/Config.in.host
Yann> @@ -0,0 +1,12 @@
Yann> +config BR2_PACKAGE_HOST_GENIMAGE
Yann> + bool "host genimage"
Yann> + help
Yann> + genimage is a tool to generate multiple filesystem and flash images
Yann> + from a given root filesystem tree. genimage is intended to be run
Yann> + in a fakeroot environment.
Yann> +
Yann> + Configuration is done is a config file parsed by libconfuse. Options
Yann> + like the path to tools can be given in environment variables, the config
Yann> + file or commandline switches.
Yann> +
The help text lines are too long. Committed with that fixed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 5/6] package/genpart: new host-only package
2013-03-17 18:19 [Buildroot] [pull request v5] Pull request for branch yem-host-image-tools Yann E. MORIN
` (3 preceding siblings ...)
2013-03-17 18:19 ` [Buildroot] [PATCH 4/6] package/genimage: new host-only package Yann E. MORIN
@ 2013-03-17 18:19 ` Yann E. MORIN
2013-03-18 22:11 ` Peter Korsgaard
2013-03-17 18:19 ` [Buildroot] [PATCH 6/6] package/mtools: new host-package Yann E. MORIN
5 siblings, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2013-03-17 18:19 UTC (permalink / raw)
To: buildroot
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Changes v1 -> v2:
- add due note about potential licensing issue (Thomas)
---
package/Config.in.host | 1 +
package/genpart/Config.in.host | 8 ++++++++
package/genpart/genpart-fix-return-code.patch | 25 +++++++++++++++++++++++++
package/genpart/genpart.mk | 18 ++++++++++++++++++
4 files changed, 52 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..ec18c82
--- /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: accepted upstream, not yet released.
+
+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..7757ae4
--- /dev/null
+++ b/package/genpart/genpart.mk
@@ -0,0 +1,18 @@
+#############################################################
+#
+# genpart
+#
+#############################################################
+
+GENPART_VERSION = 1.0.2
+GENPART_SOURCE = genpart-$(GENPART_VERSION).tar.bz2
+GENPART_SITE = http://www.pengutronix.de/software/genpart/download/
+# genpart has no license embedded in its source release.
+# However, their project page mentions:
+# > This community portal offers an overview about our own OSS
+# > projects and projects Pengutronix is or was involved with.
+# We can thus assume genpart is under a FLOSS license.
+# So, until the authors have clarified the licensing terms:
+GENPART_LICENSE = Unknown (clarification has been asked to the authors)
+
+$(eval $(host-autotools-package))
--
1.7.2.5
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 5/6] package/genpart: new host-only package
2013-03-17 18:19 ` [Buildroot] [PATCH 5/6] package/genpart: " Yann E. MORIN
@ 2013-03-18 22:11 ` Peter Korsgaard
0 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2013-03-18 22:11 UTC (permalink / raw)
To: buildroot
>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
Yann> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Yann> Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Yann> ---
Yann> Changes v1 -> v2:
Yann> - add due note about potential licensing issue (Thomas)
Yann> ---
Yann> package/Config.in.host | 1 +
Yann> package/genpart/Config.in.host | 8 ++++++++
Yann> package/genpart/genpart-fix-return-code.patch | 25 +++++++++++++++++++++++++
Yann> package/genpart/genpart.mk | 18 ++++++++++++++++++
Yann> 4 files changed, 52 insertions(+), 0 deletions(-)
Yann> create mode 100644 package/genpart/Config.in.host
Yann> create mode 100644 package/genpart/genpart-fix-return-code.patch
Yann> create mode 100644 package/genpart/genpart.mk
Yann> diff --git a/package/genpart/genpart-fix-return-code.patch b/package/genpart/genpart-fix-return-code.patch
Yann> new file mode 100644
Yann> index 0000000..ec18c82
Yann> --- /dev/null
Yann> +++ b/package/genpart/genpart-fix-return-code.patch
Yann> @@ -0,0 +1,25 @@
Yann> +genpart: return 0 if partition writen OK, with no do_magic
Yann> +
Yann> +If do_magic is false, we don't won't write the 0xaa55 magic.
s/don't//
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 6/6] package/mtools: new host-package
2013-03-17 18:19 [Buildroot] [pull request v5] Pull request for branch yem-host-image-tools Yann E. MORIN
` (4 preceding siblings ...)
2013-03-17 18:19 ` [Buildroot] [PATCH 5/6] package/genpart: " Yann E. MORIN
@ 2013-03-17 18:19 ` Yann E. MORIN
2013-03-18 22:14 ` Peter Korsgaard
5 siblings, 1 reply; 13+ messages in thread
From: Yann E. MORIN @ 2013-03-17 18:19 UTC (permalink / raw)
To: buildroot
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
v2 -> v3:
- add licensing terms (Thomas)
v1 -> v2
- remove extraneous spaces, use $(BR2_GNU_MIRROR) (Thomas)
---
package/Config.in.host | 1 +
package/mtools/Config.in.host | 9 +++++++++
package/mtools/mtools.mk | 17 +++++++++++++++++
3 files changed, 27 insertions(+), 0 deletions(-)
create mode 100644 package/mtools/Config.in.host
create mode 100644 package/mtools/mtools.mk
diff --git a/package/Config.in.host b/package/Config.in.host
index e97f6e8..7c0dd20 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -6,6 +6,7 @@ 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/mtools/Config.in.host"
source "package/omap-u-boot-utils/Config.in.host"
source "package/openocd/Config.in.host"
source "package/sam-ba/Config.in.host"
diff --git a/package/mtools/Config.in.host b/package/mtools/Config.in.host
new file mode 100644
index 0000000..d534b5e
--- /dev/null
+++ b/package/mtools/Config.in.host
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_MTOOLS
+ bool "host mtools"
+ help
+ Mtools is a collection of utilities to access MS-DOS disks from
+ Unix without mounting them. It supports Win'95 style long file
+ names, OS/2 Xdf disks and 2m disks (store up to 1992k on a high
+ density 3 1/2 disk).
+
+ http://www.tux.org/pub/tux/mtools/
diff --git a/package/mtools/mtools.mk b/package/mtools/mtools.mk
new file mode 100644
index 0000000..a27c4fd
--- /dev/null
+++ b/package/mtools/mtools.mk
@@ -0,0 +1,17 @@
+#############################################################
+#
+# mtools
+#
+#############################################################
+
+MTOOLS_VERSION = 4.0.18
+MTOOLS_SOURCE = mtools-$(MTOOLS_VERSION).tar.bz2
+MTOOLS_SITE = $(BR2_GNU_MIRROR)/mtools/
+MTOOLS_LICENSE = GPLv3+
+MTOOLS_LICENSE_FILES = COPYING
+
+MTOOLS_CONF_OPT = --enable-xdf \
+ --enable-vold \
+ --enable-new-vold
+
+$(eval $(host-autotools-package))
--
1.7.2.5
^ permalink raw reply related [flat|nested] 13+ messages in thread