Skip to contentSkip to conversation

Request for comments on branch for-2011.11/host-tools

RFC New Thomas Petazzoni 5 participants 40 messages Oct 1, 2011 – Dec 29, 2011

lore
Share & tools
lore
#0 lore raw

Hello,

Here is a small set of patches implementing the recent discussion we had about exposing host utilities. It exposes host-uboot-tools and host-openocd into a new "Host utilities" main menu.

This is just to see if this looks like something that matches what we discussed, and something that Peter would accept.

Regards,

Thomas

The following changes since commit 8511728696a298ccdb8b902b60ab398d8f67e745:

gnutls: bump to version 2.10.5 (2011-09-30 08:26:08 +0200)

are available in the git repository at:
http://free-electrons.com/~thomas/buildroot.git for-2011.11/host-tools

Thomas Petazzoni (6):
Add basic config infrastructure for host utilities
uboot-tools: expose host package in menuconfig
libftdi: add host variant
libusb-compat: add host variant
libusb: add host variant
openocd: add as host utility

 Config.in                              |    2 ++
 package/Config.in.host                 |    6 ++++++
 package/libftdi/libftdi.mk             |    3 +++
 package/libusb-compat/libusb-compat.mk |    4 ++++
 package/libusb/libusb.mk               |    3 +++
 package/openocd/Config.in.host         |    6 ++++++
 package/openocd/openocd.mk             |   10 ++++++++++
 package/uboot-tools/Config.in.host     |    6 ++++++
 8 files changed, 40 insertions(+), 0 deletions(-)
 create mode 100644 package/Config.in.host
 create mode 100644 package/openocd/Config.in.host
 create mode 100644 package/uboot-tools/Config.in.host

Thanks,

Signature · 1 line
Thomas Petazzoni
#1 lore raw

PATCH 1/6 Add basic config infrastructure for host utilities

Most of the host packages don't have to be exposed to the user as they are only used as build dependencies of target packages.

However, some host utilities, such as flashing utilities, image creation programs, specific debuggers, might be useful and should be presented to the user.

Therefore, we had a new global menu, which lists those host utilities. These utilities are described in package/*/Config.in.host files, which will be sourced by package/Config.in.host.

---
 Config.in              |    2 ++
 package/Config.in.host |    3 +++
 2 files changed, 5 insertions(+), 0 deletions(-)
 create mode 100644 package/Config.in.host
Config.in +2 -0
index 0cf4d49..fa4b42a 100644
@@ -356,6 +356,8 @@ source "target/generic/Config.in"
 
 source "package/Config.in"
 
+source "package/Config.in.host"
+
 source "fs/Config.in"
 
 source "boot/Config.in"
package/Config.in.host new file +3 -0
new file mode 100644
index 0000000..54f6a59
@@ -0,0 +1,3 @@
+menu "Host utilities"
+
+endmenu
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 1/6 Add basic config infrastructure for host utilities

Quoted 8 lines · Thomas Petazzoni

Most of the host packages don't have to be exposed to the user as they are only used as build dependencies of target packages.

However, some host utilities, such as flashing utilities, image creation programs, specific debuggers, might be useful and should be presented to the user.

Therefore, we had a new global menu, which lists those host

s/had/have/

Quoted 3 lines

utilities. These utilities are described in package/*/Config.in.host files, which will be sourced by package/Config.in.host.

...

Luca

#3 lore raw

PATCH 2/6 uboot-tools: expose host package in menuconfig

In reply to Thomas Petazzoni
---
 package/Config.in.host             |    2 ++
 package/uboot-tools/Config.in.host |    6 ++++++
 2 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 package/uboot-tools/Config.in.host
package/Config.in.host +2 -0
index 54f6a59..b8f8aab 100644
@@ -1,3 +1,5 @@
 menu "Host utilities"
 
+source "package/uboot-tools/Config.in.host"
+
 endmenu
package/uboot-tools/Config.in.host new file +6 -0
new file mode 100644
index 0000000..7a844e9
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_UBOOT_TOOLS
+	bool "host u-boot tools"
+	help
+	  Companion tools for Das U-Boot bootloader.
+
+	  http://www.denx.de/wiki/U-Boot/WebHome
Signature · 1 line
1.7.4.1
#4 lore raw

PATCH 3/6 libftdi: add host variant

In reply to Thomas Petazzoni
---
 package/libftdi/libftdi.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
package/libftdi/libftdi.mk +3 -0
index 55481d9..2c0afe7 100644
@@ -20,4 +20,7 @@ else
 LIBFDTI_CONF_OPT += --disable-libftdipp
 endif
 
+HOST_LIBFTDI_DEPENDENCIES = host-libusb-compat host-libusb
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.4.1
#5 lore raw

PATCH 4/6 libusb-compat: add host variant

In reply to Thomas Petazzoni
---
 package/libusb-compat/libusb-compat.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
package/libusb-compat/libusb-compat.mk +4 -0
index e39cdd8..99e7716 100644
@@ -18,4 +18,8 @@ endef
 
 LIBUSB_COMPAT_POST_INSTALL_STAGING_HOOKS+=LIBUSB_COMPAT_FIXUP_CONFIG
 
+HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config host-libusb
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
+
Signature · 1 line
1.7.4.1
#6 lore raw

PATCH 4/6 libusb-compat: add host variant

Quoted 10 lines · Thomas Petazzoni
---
  package/libusb-compat/libusb-compat.mk |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)
package/libusb-compat/libusb-compat.mk +0 -0
index e39cdd8..99e7716 100644

package/libusb-compat/libusb-compat.mk endef · line 21

Quoted 4 lines
package/libusb-compat/libusb-compat.mk +1 -0
@@ -18,4 +18,8 @@ endef
 
  LIBUSB_COMPAT_POST_INSTALL_STAGING_HOOKS+=LIBUSB_COMPAT_FIXUP_CONFIG
 
+HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config host-libusb

I have a generic question about host packages, not strictly related to the addition of the "Host tools" menu that's being discussed here.

I see many of the packages that have both target and host variant have their host dependencies equal to their target package dependencies, plus a "host-" prefix added to packages that don't have one on their own.

For example:

Quoted 2 lines

LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config libusb HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config host-libusb

host-pkg-config does not change, libusb becomes host-libusb.

This is indeed pretty natural.

Would it be a good idea to define by default HOST_FOO_DEPENDENCIES equal to FOO_DEPENDENCIES with suitable subst magic to add "host-" where it is not present?

This could of course be done later, separated from this work.

Luca

#7 lore raw

PATCH 4/6 libusb-compat: add host variant

Quoted 8 lines · Luca Ceresoli

I see many of the packages that have both target and host variant have their host dependencies equal to their target package dependencies, plus a "host-" prefix added to packages that don't have one on their own.

For example:

Quoted 2 lines

LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config libusb HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkg-config host-libusb

Quoted 7 lines

host-pkg-config does not change, libusb becomes host-libusb.

This is indeed pretty natural.

Would it be a good idea to define by default HOST_FOO_DEPENDENCIES equal to FOO_DEPENDENCIES with suitable subst magic to add "host-" where it is not present?

I had a similar feeling of redundancy with these HOST_FOO_DEPENDENCIES, but
didn't see how to solve it.

This is BTW fully orthogonal to the Host Tools menu, so you can start working
on a patch Luca :-)

Regards,
Arnout

Signature · 9 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111003/af5e9e08/attachment-0001.html>
#8 lore raw

[Buildroot] Derive HOST_FOO_DEPENDENCIES automatically

As requested by Luca, this patch series derives HOST_FOO_DEPENDENCIES automatically from FOO_DEPENDENCIES.

I only compile-tested some of the modified packages. However, I checked that 'make host-foo-show-depends' outputs the same result. There are two exceptions:

host-libxcb: the dependency on host-xcb-proto now appears twice. This is harmless.

host-xlib_libX11: also some reordering, which should be OK. I also removed the dependency on xproto_bigreqsproto, which doesn't seem to be needed. *This one really requires testing.*

---
Arnout Vandecappelle (Essensium/Mind) (22):
package: derive HOST_FOO_DEPENDENCIES from FOO_DEPENDENCIES
atk: removed redundant HOST_FOO_DEPENDENCIES
cramfs: removed redundant HOST_FOO_DEPENDENCIES
fontconfig: removed redundant HOST_FOO_DEPENDENCIES
libpng: removed redundant HOST_FOO_DEPENDENCIES
libxml-parser-perl: removed redundant HOST_FOO_DEPENDENCIES
mpc: removed redundant HOST_FOO_DEPENDENCIES
mpfr: removed redundant HOST_FOO_DEPENDENCIES
squashfs3: removed redundant HOST_FOO_DEPENDENCIES
libxcb: removed redundant HOST_FOO_DEPENDENCIES
xapp_bdftopcf: removed redundant HOST_FOO_DEPENDENCIES
xapp_mkfontdir: removed redundant HOST_FOO_DEPENDENCIES
xapp_mkfontscale: removed redundant HOST_FOO_DEPENDENCIES
xapp_xkbcomp: removed redundant HOST_FOO_DEPENDENCIES
xfont_encodings: removed redundant HOST_FOO_DEPENDENCIES
xfont_font-util: removed redundant HOST_FOO_DEPENDENCIES
xlib_libX11: removed redundant HOST_FOO_DEPENDENCIES and incorrect target dependency
xlib_libXau: removed redundant HOST_FOO_DEPENDENCIES
xlib_libXdmcp: removed redundant HOST_FOO_DEPENDENCIES
xlib_libXfont: removed redundant HOST_FOO_DEPENDENCIES
xlib_libfontenc: removed redundant HOST_FOO_DEPENDENCIES
xlib_libxkbfile: removed redundant HOST_FOO_DEPENDENCIES

 package/Makefile.autotools.in                      |   10 ++++++++++
 package/Makefile.package.in                        |    7 ++++++-
 package/atk/atk.mk                                 |    2 --
 package/cramfs/cramfs.mk                           |    1 -
 package/fontconfig/fontconfig.mk                   |    1 -
 package/libpng/libpng.mk                           |    2 --
 package/libxml-parser-perl/libxml-parser-perl.mk   |    1 -
 package/mpc/mpc.mk                                 |    1 -
 package/mpfr/mpfr.mk                               |    1 -
 package/squashfs3/squashfs3.mk                     |    1 -
 package/x11r7/libxcb/libxcb.mk                     |    4 ----
 package/x11r7/xapp_bdftopcf/xapp_bdftopcf.mk       |    1 -
 package/x11r7/xapp_mkfontdir/xapp_mkfontdir.mk     |    1 -
 package/x11r7/xapp_mkfontscale/xapp_mkfontscale.mk |    1 -
 package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk         |    1 -
 package/x11r7/xfont_encodings/xfont_encodings.mk   |    1 -
 package/x11r7/xfont_font-util/xfont_font-util.mk   |    2 --
 package/x11r7/xlib_libX11/xlib_libX11.mk           |    4 +---
 package/x11r7/xlib_libXau/xlib_libXau.mk           |    2 --
 package/x11r7/xlib_libXdmcp/xlib_libXdmcp.mk       |    2 --
 package/x11r7/xlib_libXfont/xlib_libXfont.mk       |    1 -
 package/x11r7/xlib_libfontenc/xlib_libfontenc.mk   |    2 --
 package/x11r7/xlib_libxkbfile/xlib_libxkbfile.mk   |    2 --
 23 files changed, 17 insertions(+), 34 deletions(-)
#9 lore raw

PATCH 1/22 package: derive HOST_FOO_DEPENDENCIES from FOO_DEPENDENCIES

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
Unfortunately, duplication is needed for autotools because it updates FOO_DEPENDENCIES.

---
 package/Makefile.autotools.in |   10 ++++++++++
 package/Makefile.package.in   |    7 ++++++-
 2 files changed, 16 insertions(+), 1 deletions(-)
package/Makefile.autotools.in +10 -0
index 3f523dc..a1d4fa5 100644
@@ -200,6 +200,16 @@ define AUTORECONF_HOOK
 	fi
 endef
 
+# This must be repeated from GENTARGETS_INNER, otherwise we get an empty
+# _DEPENDENCIES if _AUTORECONF is YES.  Also filter the result of _AUTORECONF
+# away from the non-host rule
+ifndef $(2)_DEPENDENCIES
+ ifdef $(3)_DEPENDENCIES
+  $(2)_DEPENDENCIES = $(filter-out host-automake host-autoconf host-libtool,\
+    $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES))))
+ endif
+endif
+
 ifeq ($$($(2)_AUTORECONF),YES)
 $(2)_PRE_CONFIGURE_HOOKS += AUTORECONF_HOOK
 $(2)_DEPENDENCIES += host-automake host-autoconf host-libtool
package/Makefile.package.in +6 -1
index b5ef57b..91dda1a 100644
@@ -478,7 +478,12 @@ $(2)_OVERRIDE_SRCDIR = $($(2)_SITE)
 endif
 endif
 
-$(2)_DEPENDENCIES		?=
+ifndef $(2)_DEPENDENCIES
+ ifdef $(3)_DEPENDENCIES
+  $(2)_DEPENDENCIES = $(patsubst host-host-%,host-%,$(addprefix host-,$($(3)_DEPENDENCIES)))
+ endif
+endif
+
 $(2)_INSTALL_STAGING		?= NO
 $(2)_INSTALL_IMAGES		?= NO
 $(2)_INSTALL_TARGET		?= YES
Signature · 1 line
1.7.6.3
#10 lore raw

PATCH 2/22 atk: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/atk/atk.mk |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
package/atk/atk.mk +0 -2
index f0e96a5..d84d08c 100644
@@ -52,8 +52,6 @@ endif
 
 ATK_DEPENDENCIES = libglib2 host-pkg-config
 
-HOST_ATK_DEPENDENCIES = host-libglib2 host-pkg-config
-
 HOST_ATK_CONF_OPT = \
 		--disable-glibtest
 
Signature · 1 line
1.7.6.3
#11 lore raw

PATCH 3/22 cramfs: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/cramfs/cramfs.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/cramfs/cramfs.mk +0 -1
index 4a0ec1c..57dbe40 100644
@@ -9,7 +9,6 @@ CRAMFS_SOURCE=cramfs-$(CRAMFS_VERSION).tar.gz
 CRAMFS_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/cramfs
 
 CRAMFS_DEPENDENCIES = zlib
-HOST_CRAMFS_DEPENDENCIES = host-zlib
 
 define CRAMFS_BUILD_CMDS
  $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D)
Signature · 1 line
1.7.6.3
#12 lore raw

PATCH 4/22 fontconfig: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/fontconfig/fontconfig.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/fontconfig/fontconfig.mk +0 -1
index fc6ad68..39815ed 100644
@@ -22,7 +22,6 @@ FONTCONFIG_CONF_OPT = --with-arch=$(GNU_TARGET_NAME) \
 
 FONTCONFIG_DEPENDENCIES = freetype expat
 
-HOST_FONTCONFIG_DEPENDENCIES = host-freetype host-expat
 HOST_FONTCONFIG_CONF_OPT = \
 		--disable-docs \
 		--disable-static
Signature · 1 line
1.7.6.3
#13 lore raw

PATCH 5/22 libpng: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/libpng/libpng.mk |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
package/libpng/libpng.mk +0 -2
index d2aa329..f78b61d 100644
@@ -10,8 +10,6 @@ LIBPNG_SOURCE = libpng-$(LIBPNG_VERSION).tar.bz2
 LIBPNG_INSTALL_STAGING = YES
 LIBPNG_DEPENDENCIES = host-pkg-config zlib
 
-HOST_LIBPNG_DEPENDENCIES = host-pkg-config host-zlib
-
 define LIBPNG_STAGING_LIBPNG12_CONFIG_FIXUP
 	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" \
 		-e "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" \
Signature · 1 line
1.7.6.3
#14 lore raw

PATCH 6/22 libxml-parser-perl: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/libxml-parser-perl/libxml-parser-perl.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/libxml-parser-perl/libxml-parser-perl.mk +0 -1
index ecc2cc9..9e6f2ec 100644
@@ -8,7 +8,6 @@ LIBXML_PARSER_PERL_SOURCE:=XML-Parser-$(LIBXML_PARSER_PERL_VERSION).tar.gz
 LIBXML_PARSER_PERL_SITE:=http://www.cpan.org/modules/by-module/XML/
 
 LIBXML_PARSER_PERL_DEPENDENCIES = expat
-HOST_LIBXML_PARSER_PERL_DEPENDENCIES = host-expat
 
 define HOST_LIBXML_PARSER_PERL_CONFIGURE_CMDS
  (cd $(@D) ; \
Signature · 1 line
1.7.6.3
#15 lore raw

PATCH 7/22 mpc: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/mpc/mpc.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/mpc/mpc.mk +0 -1
index 608c9f4..e5ee489 100644
@@ -10,7 +10,6 @@ MPC_INSTALL_STAGING = YES
 MPC_DEPENDENCIES = gmp mpfr
 MPC_AUTORECONF = YES
 HOST_MPC_AUTORECONF = YES
-HOST_MPC_DEPENDENCIES = host-gmp host-mpfr
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#16 lore raw

PATCH 8/22 mpfr: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/mpfr/mpfr.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/mpfr/mpfr.mk +0 -1
index 7f33599..6876d6f 100644
@@ -10,7 +10,6 @@ MPFR_SOURCE = mpfr-$(MPFR_VERSION).tar.bz2
 MPFR_INSTALL_STAGING = YES
 MPFR_DEPENDENCIES = gmp
 MPFR_MAKE_OPT = RANLIB=$(TARGET_RANLIB)
-HOST_MPFR_DEPENDENCIES = host-gmp
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#17 lore raw

PATCH 9/22 squashfs3: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/squashfs3/squashfs3.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/squashfs3/squashfs3.mk +0 -1
index 178543b..81cdf79 100644
@@ -3,7 +3,6 @@ SQUASHFS3_SOURCE=squashfs$(SQUASHFS3_VERSION).tar.gz
 SQUASHFS3_SITE=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/squashfs
 
 SQUASHFS3_DEPENDENCIES = zlib
-HOST_SQUASHFS3_DEPENDENCIES = host-zlib
 
 define SQUASHFS3_BUILD_CMDS
  $(TARGET_MAKE_ENV) $(MAKE)    \
Signature · 1 line
1.7.6.3
#18 lore raw

PATCH 10/22 libxcb: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/libxcb/libxcb.mk |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
package/x11r7/libxcb/libxcb.mk +0 -4
index 249217c..e85f71f 100644
@@ -17,10 +17,6 @@ LIBXCB_CONF_ENV = STAGING_DIR="$(STAGING_DIR)"
 LIBXCB_MAKE_OPT = XCBPROTO_XCBINCLUDEDIR=$(STAGING_DIR)/usr/share/xcb \
 	XCBPROTO_XCBPYTHONDIR=$(HOST_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
 
-HOST_LIBXCB_DEPENDENCIES = \
-	host-libxslt host-pthread-stubs host-xcb-proto host-xlib_libXdmcp \
-	host-xlib_libXau host-python
-
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
 
Signature · 1 line
1.7.6.3
#19 lore raw

PATCH 11/22 xapp_bdftopcf: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xapp_bdftopcf/xapp_bdftopcf.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/x11r7/xapp_bdftopcf/xapp_bdftopcf.mk +0 -1
index c2f5896..d7a2cf6 100644
@@ -9,7 +9,6 @@ XAPP_BDFTOPCF_SOURCE = bdftopcf-$(XAPP_BDFTOPCF_VERSION).tar.bz2
 XAPP_BDFTOPCF_SITE = http://xorg.freedesktop.org/releases/individual/app
 XAPP_BDFTOPCF_AUTORECONF = NO
 XAPP_BDFTOPCF_DEPENDENCIES = xlib_libXfont
-HOST_XAPP_BDFTOPCF_DEPENDENCIES = host-xlib_libXfont
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#20 lore raw

PATCH 12/22 xapp_mkfontdir: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xapp_mkfontdir/xapp_mkfontdir.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/x11r7/xapp_mkfontdir/xapp_mkfontdir.mk +0 -1
index ece5dd3..b7eb4dc 100644
@@ -9,7 +9,6 @@ XAPP_MKFONTDIR_SOURCE = mkfontdir-$(XAPP_MKFONTDIR_VERSION).tar.bz2
 XAPP_MKFONTDIR_SITE = http://xorg.freedesktop.org/releases/individual/app
 XAPP_MKFONTDIR_AUTORECONF = NO
 XAPP_MKFONTDIR_DEPENDENCIES = xapp_mkfontscale
-HOST_XAPP_MKFONTDIR_DEPENDENCIES = host-xapp_mkfontscale
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#21 lore raw

PATCH 13/22 xapp_mkfontscale: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xapp_mkfontscale/xapp_mkfontscale.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/x11r7/xapp_mkfontscale/xapp_mkfontscale.mk +0 -1
index 1c460d6..1d32fe9 100644
@@ -9,7 +9,6 @@ XAPP_MKFONTSCALE_SOURCE = mkfontscale-$(XAPP_MKFONTSCALE_VERSION).tar.bz2
 XAPP_MKFONTSCALE_SITE = http://xorg.freedesktop.org/releases/individual/app
 XAPP_MKFONTSCALE_AUTORECONF = NO
 XAPP_MKFONTSCALE_DEPENDENCIES = zlib freetype xlib_libfontenc xproto_xproto
-HOST_XAPP_MKFONTSCALE_DEPENDENCIES = host-zlib host-freetype host-xlib_libfontenc host-xproto_xproto
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#22 lore raw

PATCH 14/22 xapp_xkbcomp: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk +0 -1
index 04a558e..277c84d 100644
@@ -9,7 +9,6 @@ XAPP_XKBCOMP_SOURCE = xkbcomp-$(XAPP_XKBCOMP_VERSION).tar.bz2
 XAPP_XKBCOMP_SITE = http://xorg.freedesktop.org/releases/individual/app
 XAPP_XKBCOMP_AUTORECONF = NO
 XAPP_XKBCOMP_DEPENDENCIES = xlib_libX11 xlib_libxkbfile
-HOST_XAPP_XKBCOMP_DEPENDENCIES = host-xlib_libX11 host-xlib_libxkbfile
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#23 lore raw

PATCH 15/22 xfont_encodings: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xfont_encodings/xfont_encodings.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/x11r7/xfont_encodings/xfont_encodings.mk +0 -1
index 3bf7bc0..75abacc 100644
@@ -10,7 +10,6 @@ XFONT_ENCODINGS_SITE = http://xorg.freedesktop.org/releases/individual/font
 XFONT_ENCODINGS_AUTORECONF = NO
 XFONT_ENCODINGS_MAKE_OPT =
 XFONT_ENCODINGS_DEPENDENCIES = host-xapp_mkfontscale
-HOST_XFONT_ENCODINGS_DEPENDENCIES = host-xapp_mkfontscale
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#24 lore raw

PATCH 16/22 xfont_font-util: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xfont_font-util/xfont_font-util.mk |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
package/x11r7/xfont_font-util/xfont_font-util.mk +0 -2
index 680fdc7..c5243ad 100644
@@ -11,7 +11,5 @@ XFONT_FONT_UTIL_DEPENDENCIES = host-pkg-config
 XFONT_FONT_UTIL_INSTALL_STAGING = YES
 XFONT_FONT_UTIL_INSTALL_TARGET = NO
 
-HOST_XFONT_FONT_UTIL_DEPENDENCIES = host-pkg-config
-
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#25 lore raw

PATCH 17/22 xlib_libX11: removed redundant HOST_FOO_DEPENDENCIES and incorrect target dependency

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

By deriving HOST_XLIB_LIBX11_DEPENDENCIES from XLIB_LIBX11_DEPENDENCIES, it turned out that that one had a redundant dependency on xproto_bigreqsproto.

---
This dependency was there since the first commit, so it's not clear where it comes from.

---
 package/x11r7/xlib_libX11/xlib_libX11.mk |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
package/x11r7/xlib_libX11/xlib_libX11.mk +1 -3
index e017fea..4d12a84 100644
@@ -9,7 +9,7 @@ XLIB_LIBX11_SOURCE = libX11-$(XLIB_LIBX11_VERSION).tar.bz2
 XLIB_LIBX11_SITE = http://xorg.freedesktop.org/releases/individual/lib
 XLIB_LIBX11_AUTORECONF = YES
 XLIB_LIBX11_INSTALL_STAGING = YES
-XLIB_LIBX11_DEPENDENCIES = libxcb xutil_util-macros xlib_xtrans xlib_libXau xlib_libXdmcp xproto_kbproto xproto_xproto xproto_xextproto xproto_inputproto xproto_xf86bigfontproto xproto_bigreqsproto xproto_xcmiscproto host-xproto_xproto
+XLIB_LIBX11_DEPENDENCIES = libxcb xutil_util-macros xlib_xtrans xlib_libXau xlib_libXdmcp xproto_kbproto xproto_xproto xproto_xextproto xproto_inputproto xproto_xf86bigfontproto xproto_xcmiscproto host-xproto_xproto
 XLIB_LIBX11_CONF_OPT = \
 	--disable-malloc0returnsnull \
 	--with-xcb \
@@ -19,8 +19,6 @@ XLIB_LIBX11_CONF_OPT = \
 HOST_XLIB_LIBX11_CONF_OPT = \
 	--disable-specs
 
-HOST_XLIB_LIBX11_DEPENDENCIES = host-xproto_xextproto host-libxcb host-xutil_util-macros host-xlib_xtrans host-xlib_libXau host-xlib_libXdmcp host-xproto_kbproto host-xproto_xproto host-xproto_xextproto host-xproto_inputproto host-xproto_xf86bigfontproto xproto_bigreqsproto host-xproto_xcmiscproto
-
 # src/util/makekeys is executed at build time to generate ks_tables.h, so
 # it should get compiled for the host. The libX11 makefile unfortunately
 # doesn't know about cross compilation so this doesn't work.
Signature · 1 line
1.7.6.3
#26 lore raw

PATCH 18/22 xlib_libXau: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xlib_libXau/xlib_libXau.mk |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
package/x11r7/xlib_libXau/xlib_libXau.mk +0 -2
index 2404a3e..b86a302 100644
@@ -11,7 +11,5 @@ XLIB_LIBXAU_AUTORECONF = NO
 XLIB_LIBXAU_INSTALL_STAGING = YES
 XLIB_LIBXAU_DEPENDENCIES = xutil_util-macros xproto_xproto
 
-HOST_XLIB_LIBXAU_DEPENDENCIES = host-xutil_util-macros host-xproto_xproto
-
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#27 lore raw

PATCH 19/22 xlib_libXdmcp: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xlib_libXdmcp/xlib_libXdmcp.mk |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
package/x11r7/xlib_libXdmcp/xlib_libXdmcp.mk +0 -2
index 1aec4de..154b4a9 100644
@@ -11,7 +11,5 @@ XLIB_LIBXDMCP_AUTORECONF = NO
 XLIB_LIBXDMCP_INSTALL_STAGING = YES
 XLIB_LIBXDMCP_DEPENDENCIES = xutil_util-macros xproto_xproto
 
-HOST_XLIB_LIBXDMCP_DEPENDENCIES = host-xutil_util-macros host-xproto_xproto
-
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#28 lore raw

PATCH 20/22 xlib_libXfont: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xlib_libXfont/xlib_libXfont.mk |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
package/x11r7/xlib_libXfont/xlib_libXfont.mk +0 -1
index 303992f..2b47e4e 100644
@@ -13,7 +13,6 @@ XLIB_LIBXFONT_DEPENDENCIES = freetype xlib_libfontenc xlib_xtrans xproto_fontcac
 XLIB_LIBXFONT_CONF_OPT = --disable-devel-docs
 
 HOST_XLIB_LIBXFONT_CONF_OPT = --disable-devel-docs
-HOST_XLIB_LIBXFONT_DEPENDENCIES = host-freetype host-xlib_libfontenc host-xlib_xtrans host-xproto_fontcacheproto host-xproto_fontsproto host-xproto_xproto host-xfont_encodings
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#29 lore raw

PATCH 21/22 xlib_libfontenc: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xlib_libfontenc/xlib_libfontenc.mk |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
package/x11r7/xlib_libfontenc/xlib_libfontenc.mk +0 -2
index 20cfc8d..cc5d1f0 100644
@@ -11,7 +11,5 @@ XLIB_LIBFONTENC_AUTORECONF = NO
 XLIB_LIBFONTENC_INSTALL_STAGING = YES
 XLIB_LIBFONTENC_DEPENDENCIES = zlib xproto_xproto
 
-HOST_XLIB_LIBFONTENC_DEPENDENCIES = host-zlib host-xproto_xproto
-
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#30 lore raw

PATCH 22/22 xlib_libxkbfile: removed redundant HOST_FOO_DEPENDENCIES

In reply to Arnout Vandecappelle (Essensium/Mind)

From: "Arnout Vandecappelle (Essensium/Mind)" <[email protected]>

---
 package/x11r7/xlib_libxkbfile/xlib_libxkbfile.mk |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
package/x11r7/xlib_libxkbfile/xlib_libxkbfile.mk +0 -2
index 35b6171..3748dae 100644
@@ -11,7 +11,5 @@ XLIB_LIBXKBFILE_AUTORECONF = NO
 XLIB_LIBXKBFILE_INSTALL_STAGING = YES
 XLIB_LIBXKBFILE_DEPENDENCIES = xlib_libX11 xproto_kbproto
 
-HOST_XLIB_LIBXKBFILE_DEPENDENCIES = host-xlib_libX11 host-xproto_kbproto
-
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.6.3
#31 lore raw

[Buildroot] Derive HOST_FOO_DEPENDENCIES automatically

In reply to Arnout Vandecappelle (Essensium/Mind)
Quoted 2 lines · Arnout Vandecappelle (Essensium/Mind)

As requested by Luca, this patch series derives HOST_FOO_DEPENDENCIES automatically from FOO_DEPENDENCIES.

By the way, there is a disappointingly large number of packages that have a
difference between FOO_DEPENDENCIES and HOST_FOO_DEPENDENCIES:

package/autoconf/autoconf.mk package/automake/automake.mk package/cdrkit/cdrkit.mk package/cloop/cloop.mk package/crosstool-ng/crosstool-ng.mk package/dbus-glib/dbus-glib.mk package/dbus/dbus.mk package/directfb/directfb.mk package/file/file.mk package/freetype/freetype.mk package/gdk-pixbuf/gdk-pixbuf.mk package/gob2/gob2.mk package/intltool/intltool.mk package/libglib2/libglib2.mk package/libgtk2/libgtk2.mk package/libxml2/libxml2.mk package/libxslt/libxslt.mk package/mtd/mtd.mk package/python/python.mk package/shared-mime-info/shared-mime-info.mk package/squashfs/squashfs.mk package/sstrip/sstrip.mk package/x11r7/xutil_makedepend/xutil_makedepend.mk

Regards,
Arnout

Signature · 9 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111003/58084a36/attachment-0002.html>
#32 lore raw

[Buildroot] Derive HOST_FOO_DEPENDENCIES automatically

Le Mon, 3 Oct 2011 23:35:05 +0200,
Arnout Vandecappelle <[email protected]> a ?crit :

Quoted 2 lines

By the way, there is a disappointingly large number of packages that
have a difference between FOO_DEPENDENCIES and HOST_FOO_DEPENDENCIES:

Not necessarily a problem. For example, for:

Quoted 1 line

package/libgtk2/libgtk2.mk

It is expected, because we don't need a full blown host libgtk2 version to build the target libgtk2.

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#33 lore raw

[Buildroot] Derive HOST_FOO_DEPENDENCIES automatically

Quoted 7 lines · Thomas Petazzoni

Le Mon, 3 Oct 2011 23:35:05 +0200,

Arnout Vandecappelle <[email protected]> a ?crit :

Quoted 3 lines

By the way, there is a disappointingly large number of packages that

have a difference between FOO_DEPENDENCIES and HOST_FOO_DEPENDENCIES:

Not necessarily a problem.

The "problem" is that the gain of this change (as in number of lines removed)
is not as large as I had hoped.

 23 files changed, 17 insertions(+), 34 deletions(-)

Of course, an additional advantage of this change is that adding a host
variant of a package has a much larger chance of working right away.

Regards,
Arnout

Signature · 6 lines
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43
#34 lore raw

[Buildroot] Derive HOST_FOO_DEPENDENCIES automatically

In reply to Arnout Vandecappelle (Essensium/Mind)

Hello Arnout,

Do you mind updating this patch set on top of the latest Buildroot and resend it?

I'm OK with the idea and implementation, so I'd really like to see this merged.

Thanks,

Thomas

Le Mon, 3 Oct 2011 23:20:36 +0200,
"Arnout Vandecappelle (Essensium/Mind)" <[email protected]> a ?crit :

Quoted 68 lines

As requested by Luca, this patch series derives HOST_FOO_DEPENDENCIES automatically from FOO_DEPENDENCIES.

I only compile-tested some of the modified packages. However, I checked that 'make host-foo-show-depends' outputs the same result. There are two exceptions:

host-libxcb: the dependency on host-xcb-proto now appears twice. This is harmless.

host-xlib_libX11: also some reordering, which should be OK. I also removed the dependency on xproto_bigreqsproto, which doesn't seem to be needed. *This one really requires testing.*

---
Arnout Vandecappelle (Essensium/Mind) (22):
package: derive HOST_FOO_DEPENDENCIES from FOO_DEPENDENCIES
atk: removed redundant HOST_FOO_DEPENDENCIES
cramfs: removed redundant HOST_FOO_DEPENDENCIES
fontconfig: removed redundant HOST_FOO_DEPENDENCIES
libpng: removed redundant HOST_FOO_DEPENDENCIES
libxml-parser-perl: removed redundant HOST_FOO_DEPENDENCIES
mpc: removed redundant HOST_FOO_DEPENDENCIES
mpfr: removed redundant HOST_FOO_DEPENDENCIES
squashfs3: removed redundant HOST_FOO_DEPENDENCIES
libxcb: removed redundant HOST_FOO_DEPENDENCIES
xapp_bdftopcf: removed redundant HOST_FOO_DEPENDENCIES
xapp_mkfontdir: removed redundant HOST_FOO_DEPENDENCIES
xapp_mkfontscale: removed redundant HOST_FOO_DEPENDENCIES
xapp_xkbcomp: removed redundant HOST_FOO_DEPENDENCIES
xfont_encodings: removed redundant HOST_FOO_DEPENDENCIES
xfont_font-util: removed redundant HOST_FOO_DEPENDENCIES
xlib_libX11: removed redundant HOST_FOO_DEPENDENCIES and incorrect target dependency
xlib_libXau: removed redundant HOST_FOO_DEPENDENCIES
xlib_libXdmcp: removed redundant HOST_FOO_DEPENDENCIES
xlib_libXfont: removed redundant HOST_FOO_DEPENDENCIES
xlib_libfontenc: removed redundant HOST_FOO_DEPENDENCIES
xlib_libxkbfile: removed redundant HOST_FOO_DEPENDENCIES

 package/Makefile.autotools.in                      |   10 ++++++++++
 package/Makefile.package.in                        |    7 ++++++-
 package/atk/atk.mk                                 |    2 --
 package/cramfs/cramfs.mk                           |    1 -
 package/fontconfig/fontconfig.mk                   |    1 -
 package/libpng/libpng.mk                           |    2 --
 package/libxml-parser-perl/libxml-parser-perl.mk   |    1 -
 package/mpc/mpc.mk                                 |    1 -
 package/mpfr/mpfr.mk                               |    1 -
 package/squashfs3/squashfs3.mk                     |    1 -
 package/x11r7/libxcb/libxcb.mk                     |    4 ----
 package/x11r7/xapp_bdftopcf/xapp_bdftopcf.mk       |    1 -
 package/x11r7/xapp_mkfontdir/xapp_mkfontdir.mk     |    1 -
 package/x11r7/xapp_mkfontscale/xapp_mkfontscale.mk |    1 -
 package/x11r7/xapp_xkbcomp/xapp_xkbcomp.mk         |    1 -
 package/x11r7/xfont_encodings/xfont_encodings.mk   |    1 -
 package/x11r7/xfont_font-util/xfont_font-util.mk   |    2 --
 package/x11r7/xlib_libX11/xlib_libX11.mk           |    4 +---
 package/x11r7/xlib_libXau/xlib_libXau.mk           |    2 --
 package/x11r7/xlib_libXdmcp/xlib_libXdmcp.mk       |    2 --
 package/x11r7/xlib_libXfont/xlib_libXfont.mk       |    1 -
 package/x11r7/xlib_libfontenc/xlib_libfontenc.mk   |    2 --
 package/x11r7/xlib_libxkbfile/xlib_libxkbfile.mk   |    2 --
 23 files changed, 17 insertions(+), 34 deletions(-)

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
#35 lore raw

PATCH 5/6 libusb: add host variant

In reply to Thomas Petazzoni
---
 package/libusb/libusb.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
package/libusb/libusb.mk +3 -0
index af75f5f..b3ca353 100644
@@ -10,4 +10,7 @@ LIBUSB_DEPENDENCIES = host-pkg-config
 LIBUSB_INSTALL_STAGING = YES
 LIBUSB_INSTALL_TARGET = YES
 
+HOST_LIBUSB_DEPENDENCIES = host-pkg-config
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.4.1
#36 lore raw

PATCH 6/6 openocd: add as host utility

In reply to Thomas Petazzoni
---
 package/Config.in.host         |    1 +
 package/openocd/Config.in.host |    6 ++++++
 package/openocd/openocd.mk     |   10 ++++++++++
 3 files changed, 17 insertions(+), 0 deletions(-)
 create mode 100644 package/openocd/Config.in.host
package/Config.in.host +1 -0
index b8f8aab..6499eb5 100644
@@ -1,5 +1,6 @@
 menu "Host utilities"
 
 source "package/uboot-tools/Config.in.host"
+source "package/openocd/Config.in.host"
 
 endmenu
package/openocd/Config.in.host new file +6 -0
new file mode 100644
index 0000000..2380942
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_HOST_OPENOCD
+	bool "host openocd"
+	help
+	  OpenOCD - Open On-Chip Debugger
+
+	  http://openocd.berlios.de/web/
package/openocd/openocd.mk +10 -0
index 5f61367..d79b33b 100644
@@ -29,4 +29,14 @@ ifeq ($(BR2_PACKAGE_OPENOCD_VSLLINK),y)
 OPENOCD_CONF_OPT += --enable-vsllink
 endif
 
+HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
+
+HOST_OPENOCD_CONF_OPT = 	\
+	--disable-doxygen-html 	\
+	--enable-dummy 		\
+	--enable-ft2232_libftdi \
+	--enable-jlink 		\
+	--enable-vsllink
+
 $(eval $(call AUTOTARGETS))
+$(eval $(call AUTOTARGETS,host))
Signature · 1 line
1.7.4.1
#37 lore raw
In reply to Thomas Petazzoni
Quoted 8 lines · Thomas Petazzoni

Hello,

Here is a small set of patches implementing the recent discussion we had about exposing host utilities. It exposes host-uboot-tools and host-openocd into a new "Host utilities" main menu.

This is just to see if this looks like something that matches what we discussed, and something that Peter would accept.

I like it. It looks very clean, no hach nor code reorganization was required. BTW, this means BR is well structured, so congratulations to it authors!

I'm sending a few notes in reply to the patches, but I ack the general structure.

Luca

#38 lore raw
In reply to Thomas Petazzoni

Hi Thomas,

Quoted 36 lines · Thomas Petazzoni

Hello,

Here is a small set of patches implementing the recent discussion we had about exposing host utilities. It exposes host-uboot-tools and host-openocd into a new "Host utilities" main menu.

This is just to see if this looks like something that matches what we discussed, and something that Peter would accept.

Regards,

Thomas

The following changes since commit 8511728696a298ccdb8b902b60ab398d8f67e745:

?gnutls: bump to version 2.10.5 (2011-09-30 08:26:08 +0200)

are available in the git repository at:
?http://free-electrons.com/~thomas/buildroot.git for-2011.11/host-tools

Thomas Petazzoni (6):
? ? ?Add basic config infrastructure for host utilities ? ? ?uboot-tools: expose host package in menuconfig ? ? ?libftdi: add host variant
? ? ?libusb-compat: add host variant
? ? ?libusb: add host variant
? ? ?openocd: add as host utility

?Config.in ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?| ? ?2 ++
?package/Config.in.host ? ? ? ? ? ? ? ? | ? ?6 ++++++
?package/libftdi/libftdi.mk ? ? ? ? ? ? | ? ?3 +++
?package/libusb-compat/libusb-compat.mk | ? ?4 ++++
?package/libusb/libusb.mk ? ? ? ? ? ? ? | ? ?3 +++
?package/openocd/Config.in.host ? ? ? ? | ? ?6 ++++++
?package/openocd/openocd.mk ? ? ? ? ? ? | ? 10 ++++++++++
?package/uboot-tools/Config.in.host ? ? | ? ?6 ++++++
Quoted 4 lines

?8 files changed, 40 insertions(+), 0 deletions(-) ?create mode 100644 package/Config.in.host ?create mode 100644 package/openocd/Config.in.host ?create mode 100644 package/uboot-tools/Config.in.host

No comments on these patches, I support them fully. Good work!

Best regards,
Thomas

#39 lore raw
In reply to Thomas Petazzoni
Quoted 8 lines · Thomas Petazzoni

Hello,

Here is a small set of patches implementing the recent discussion we had about exposing host utilities. It exposes host-uboot-tools and host-openocd into a new "Host utilities" main menu.

This is just to see if this looks like something that matches what we discussed, and something that Peter would accept.

Both this patch set has and the underlying idea (see original thread at
http://lists.busybox.net/pipermail/buildroot/2011-September/045939.html)
have been commented positively by some Buildroot users and developers, and IIRC there was no NAK to the general idea.

Peter, are you considering these changes for mainline inclusion?

I would be happy to add host-u-boot-utils to the new menu once it's merged.

Thanks,
Luca