Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] openocd: fetch package from git repository and update version
@ 2012-02-24 18:19 Alexandre Pereira da Silva
  2012-02-24 19:01 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 16+ messages in thread
From: Alexandre Pereira da Silva @ 2012-02-24 18:19 UTC (permalink / raw)
  To: buildroot

This overrided the DOWNLOAD_GIT method to also fetch the submodules used
by openocd.
Removed patches that are not needed anymore by the new version.
Updated the gnu99 patch to use configure.ac instead of configure.in.
Fix a build problem in the stm32_stlink.c file.

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
---
 ...s-compilation-host-libsub-was-used-before.patch |   33 -----------------
 ...001-smt32_stlink-Workaround-build-warning.patch |   32 +++++++++++++++++
 ...002-fix-xscale-uninitialise-breakpoint_pc.patch |   20 -----------
 package/openocd/openocd-0003-force-gnu99.patch     |   24 +++++++-----
 .../openocd/openocd-0005-dont-force-ldflags.patch  |   37 --------------------
 package/openocd/openocd.mk                         |   28 ++++++++++++---
 6 files changed, 69 insertions(+), 105 deletions(-)
 delete mode 100644 package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
 create mode 100644 package/openocd/openocd-0001-smt32_stlink-Workaround-build-warning.patch
 delete mode 100644 package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
 delete mode 100644 package/openocd/openocd-0005-dont-force-ldflags.patch

diff --git a/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch b/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
deleted file mode 100644
index caf1a8b..0000000
--- a/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 3728c4af7f6303ccedab56ec220797f8f290580e Mon Sep 17 00:00:00 2001
-From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-Date: Wed, 10 Aug 2011 00:17:29 +0800
-Subject: [PATCH] fix cross compilation: host libsub was used before
-
-tested in buildroot
-
-Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
----
- configure.in |    7 +++++--
- 1 files changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index dfa1e8f..cfe2218 100644
---- a/configure.in
-+++ b/configure.in
-@@ -1046,8 +1046,11 @@ build_usb=no
- if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes -o \
-   $build_rlink = yes -o $build_ulink = yes -o $build_armjtagew = yes
- then
--  AC_CHECK_HEADERS([usb.h],[],
--  [AC_MSG_ERROR([usb.h is required to build some OpenOCD driver(s)])])
-+  dnl check for libusb
-+  PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.11)
-+  CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
-+  LDFLAGS="$LDFLAGS $LIBUSB_LDFLAGS"
-+  LIBS="$LIBS $LIBUSB_LIBS"
-   build_usb=yes
- fi
- 
--- 
-1.7.5.4
-
diff --git a/package/openocd/openocd-0001-smt32_stlink-Workaround-build-warning.patch b/package/openocd/openocd-0001-smt32_stlink-Workaround-build-warning.patch
new file mode 100644
index 0000000..a497f08
--- /dev/null
+++ b/package/openocd/openocd-0001-smt32_stlink-Workaround-build-warning.patch
@@ -0,0 +1,32 @@
+smt32_stlink: workaround build warning
+
+Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
+---
+ src/target/stm32_stlink.c |    4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/target/stm32_stlink.c b/src/target/stm32_stlink.c
+index 32896cc..e7e5891 100644
+--- a/src/target/stm32_stlink.c
++++ b/src/target/stm32_stlink.c
+@@ -651,7 +651,7 @@ static int stm32_stlink_read_memory(struct target *target, uint32_t address,
+ 					address, c, dst);
+ 		else
+ 			res = stlink_if->layout->api->read_mem32(stlink_if->fd,
+-					address, c, (uint32_t *)dst);
++					address, c, (uint32_t *)(void *)dst);
+ 
+ 		if (res != ERROR_OK)
+ 			return res;
+@@ -700,7 +700,7 @@ static int stm32_stlink_write_memory(struct target *target, uint32_t address,
+ 					address, c, dst);
+ 		else
+ 			res = stlink_if->layout->api->write_mem32(stlink_if->fd,
+-					address, c, (uint32_t *)dst);
++					address, c, (uint32_t *)(void *)dst);
+ 
+ 		if (res != ERROR_OK)
+ 			return res;
+-- 
+1.7.9
+
diff --git a/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch b/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
deleted file mode 100644
index 328241e..0000000
--- a/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-xscale: fix uninitialise breakpoint_pc
-
-Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
----
- src/target/xscale.c |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-Index: b/src/target/xscale.c
-===================================================================
---- a/src/target/xscale.c
-+++ b/src/target/xscale.c
-@@ -2811,7 +2811,7 @@ static int xscale_analyze_trace(struct t
-    struct xscale_common *xscale = target_to_xscale(target);
-    struct xscale_trace_data *trace_data = xscale->trace.data;
-    int i, retval;
--   uint32_t breakpoint_pc;
-+   uint32_t breakpoint_pc = 0;
-    struct arm_instruction instruction;
-    uint32_t current_pc = 0;  /* initialized when address determined */
- 	
diff --git a/package/openocd/openocd-0003-force-gnu99.patch b/package/openocd/openocd-0003-force-gnu99.patch
index 106d112..5511f09 100644
--- a/package/openocd/openocd-0003-force-gnu99.patch
+++ b/package/openocd/openocd-0003-force-gnu99.patch
@@ -1,19 +1,23 @@
 force gnu99
 
-Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
 ---
- configure.in |    1 +
- 1 file changed, 1 insertion(+)
+ configure.ac |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
 
-Index: b/configure.in
-===================================================================
---- a/configure.in
-+++ b/configure.in
-@@ -28,6 +28,7 @@ AC_DISABLE_SHARED
+diff --git a/configure.ac b/configure.ac
+index ffab637..60fe4ab 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -28,6 +28,8 @@ AC_DISABLE_SHARED
  AC_PROG_LIBTOOL
- AC_SUBST(LIBTOOL_DEPS)
+ AC_SUBST([LIBTOOL_DEPS])
  
 +CFLAGS="$CFLAGS -std=gnu99"
- 
++
  dnl configure checks required for Jim files (these are obsolete w/ C99)
  AC_C_CONST
+ AC_TYPE_LONG_LONG_INT
+-- 
+1.7.9
+
diff --git a/package/openocd/openocd-0005-dont-force-ldflags.patch b/package/openocd/openocd-0005-dont-force-ldflags.patch
deleted file mode 100644
index 1880e00..0000000
--- a/package/openocd/openocd-0005-dont-force-ldflags.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-[PATCH] don't force library search path / rpath settings
-
-openocd adds -L$exec_prefix/lib -Wl,rpath,$exec_prefix/lib to the compile
-LDFLAGS if it isn't installed into /usr/local, which breaks cross compilation
-as the compiler ends up using host libraries.
----
- configure.in |   17 -----------------
- 1 file changed, 17 deletions(-)
-
-Index: openocd-0.5.0/configure.in
-===================================================================
---- openocd-0.5.0.orig/configure.in
-+++ openocd-0.5.0/configure.in
-@@ -174,23 +174,6 @@
- # Let make expand exec_prefix.
- test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix"
- 
--# what matters is the "exec-prefix"
--if test "$OCDxprefix" != "$ac_default_prefix"
--then
--    # We are installing in a non-standard place
--    # Nonstandard --prefix and/or --exec-prefix
--    # We have an override of some sort.
--    # use build specific install library dir
--
--    LDFLAGS="$LDFLAGS -L$OCDxprefix/lib"
--    # RPATH becomes an issue on Linux only
--    if test $host_os = linux-gnu || test $host_os = linux ; then
--      LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib"
--    fi
--    # The "INCDIR" is also usable
--    CFLAGS="$CFLAGS -I$includedir"
--fi
--
- AC_ARG_WITH(ftd2xx,
-    AS_HELP_STRING([--with-ftd2xx=<PATH>],[This option has been removed.]),
-   [
diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
index a12ba6c..2796e81 100644
--- a/package/openocd/openocd.mk
+++ b/package/openocd/openocd.mk
@@ -3,16 +3,18 @@
 # openocd
 #
 #############################################################
-OPENOCD_VERSION:=0.5.0
-OPENOCD_SOURCE = openocd-$(OPENOCD_VERSION).tar.bz2
-OPENOCD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/openocd/openocd/$(OPENOCD_VERSION)
+#OPENOCD_VERSION = master
+OPENOCD_VERSION = dec6b913809bd3f857af31be178ffde65e42dbab
+OPENOCD_SITE = git://openocd.git.sourceforge.net/gitroot/openocd/openocd
+OPENOCD_SITE_METHOD = git
 
 OPENOCD_AUTORECONF = YES
 OPENOCD_CONF_OPT = \
 	--oldincludedir=$(STAGING_DIR)/usr/include \
 	--includedir=$(STAGING_DIR)/usr/include \
 	--disable-doxygen-html \
-	--enable-dummy
+	--enable-dummy \
+    --enable-maintainer-mode
 
 OPENOCD_DEPENDENCIES = libusb-compat
 
@@ -32,12 +34,28 @@ endif
 
 HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
 
+HOST_OPENOCD_AUTORECONF = YES
 HOST_OPENOCD_CONF_OPT = 	\
 	--disable-doxygen-html 	\
 	--enable-dummy 		\
 	--enable-ft2232_libftdi \
 	--enable-jlink 		\
-	--enable-vsllink
+	--enable-vsllink \
+	--enable-maintainer-mode 
+
+define DOWNLOAD_GIT
+	test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
+	(pushd $(DL_DIR) > /dev/null && \
+	$(GIT) clone $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \
+	pushd $($(PKG)_BASE_NAME) > /dev/null && \
+	$(GIT) checkout $($(PKG)_VERSION) && \
+	$(GIT) submodule init && \
+	$(GIT) submodule update && \
+	$(TAR) czf $(DL_DIR)/$($(PKG)_SOURCE) . &&\
+	popd > /dev/null && \
+	rm -rf $($(PKG)_DL_DIR) && \
+	popd > /dev/null)    
+endef
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
-- 
1.7.9

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

* [Buildroot] [PATCH] openocd: fetch package from git repository and update version
  2012-02-24 18:19 [Buildroot] [PATCH] openocd: fetch package from git repository and update version Alexandre Pereira da Silva
@ 2012-02-24 19:01 ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-24 21:31   ` [Buildroot] [PATCH V2] " Alexandre Pereira da Silva
  0 siblings, 1 reply; 16+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-02-24 19:01 UTC (permalink / raw)
  To: buildroot

On 16:19 Fri 24 Feb     , Alexandre Pereira da Silva wrote:
> This overrided the DOWNLOAD_GIT method to also fetch the submodules used
> by openocd.
> Removed patches that are not needed anymore by the new version.
> Updated the gnu99 patch to use configure.ac instead of configure.in.
> Fix a build problem in the stm32_stlink.c file.
> 
> Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
NACK

please add a patch to fix the stm32_stlink

Best Regards,
J.
> ---
>  ...s-compilation-host-libsub-was-used-before.patch |   33 -----------------
>  ...001-smt32_stlink-Workaround-build-warning.patch |   32 +++++++++++++++++
>  ...002-fix-xscale-uninitialise-breakpoint_pc.patch |   20 -----------
>  package/openocd/openocd-0003-force-gnu99.patch     |   24 +++++++-----
>  .../openocd/openocd-0005-dont-force-ldflags.patch  |   37 --------------------
>  package/openocd/openocd.mk                         |   28 ++++++++++++---
>  6 files changed, 69 insertions(+), 105 deletions(-)
>  delete mode 100644 package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
>  create mode 100644 package/openocd/openocd-0001-smt32_stlink-Workaround-build-warning.patch
>  delete mode 100644 package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
>  delete mode 100644 package/openocd/openocd-0005-dont-force-ldflags.patch
> 
> diff --git a/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch b/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
> deleted file mode 100644
> index caf1a8b..0000000
> --- a/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
> +++ /dev/null
> @@ -1,33 +0,0 @@
> -From 3728c4af7f6303ccedab56ec220797f8f290580e Mon Sep 17 00:00:00 2001
> -From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> -Date: Wed, 10 Aug 2011 00:17:29 +0800
> -Subject: [PATCH] fix cross compilation: host libsub was used before
> -
> -tested in buildroot
> -
> -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ----
> - configure.in |    7 +++++--
> - 1 files changed, 5 insertions(+), 2 deletions(-)
> -
> -diff --git a/configure.in b/configure.in
> -index dfa1e8f..cfe2218 100644
> ---- a/configure.in
> -+++ b/configure.in
> -@@ -1046,8 +1046,11 @@ build_usb=no
> - if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes -o \
> -   $build_rlink = yes -o $build_ulink = yes -o $build_armjtagew = yes
> - then
> --  AC_CHECK_HEADERS([usb.h],[],
> --  [AC_MSG_ERROR([usb.h is required to build some OpenOCD driver(s)])])
> -+  dnl check for libusb
> -+  PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.11)
> -+  CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
> -+  LDFLAGS="$LDFLAGS $LIBUSB_LDFLAGS"
> -+  LIBS="$LIBS $LIBUSB_LIBS"
> -   build_usb=yes
> - fi
> - 
> --- 
> -1.7.5.4
> -
> diff --git a/package/openocd/openocd-0001-smt32_stlink-Workaround-build-warning.patch b/package/openocd/openocd-0001-smt32_stlink-Workaround-build-warning.patch
> new file mode 100644
> index 0000000..a497f08
> --- /dev/null
> +++ b/package/openocd/openocd-0001-smt32_stlink-Workaround-build-warning.patch
> @@ -0,0 +1,32 @@
> +smt32_stlink: workaround build warning
> +
> +Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
> +---
> + src/target/stm32_stlink.c |    4 ++--
> + 1 files changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/src/target/stm32_stlink.c b/src/target/stm32_stlink.c
> +index 32896cc..e7e5891 100644
> +--- a/src/target/stm32_stlink.c
> ++++ b/src/target/stm32_stlink.c
> +@@ -651,7 +651,7 @@ static int stm32_stlink_read_memory(struct target *target, uint32_t address,
> + 					address, c, dst);
> + 		else
> + 			res = stlink_if->layout->api->read_mem32(stlink_if->fd,
> +-					address, c, (uint32_t *)dst);
> ++					address, c, (uint32_t *)(void *)dst);
> + 
> + 		if (res != ERROR_OK)
> + 			return res;
> +@@ -700,7 +700,7 @@ static int stm32_stlink_write_memory(struct target *target, uint32_t address,
> + 					address, c, dst);
> + 		else
> + 			res = stlink_if->layout->api->write_mem32(stlink_if->fd,
> +-					address, c, (uint32_t *)dst);
> ++					address, c, (uint32_t *)(void *)dst);
> + 
> + 		if (res != ERROR_OK)
> + 			return res;
> +-- 
> +1.7.9
> +
> diff --git a/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch b/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
> deleted file mode 100644
> index 328241e..0000000
> --- a/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -xscale: fix uninitialise breakpoint_pc
> -
> -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ----
> - src/target/xscale.c |    2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -Index: b/src/target/xscale.c
> -===================================================================
> ---- a/src/target/xscale.c
> -+++ b/src/target/xscale.c
> -@@ -2811,7 +2811,7 @@ static int xscale_analyze_trace(struct t
> -    struct xscale_common *xscale = target_to_xscale(target);
> -    struct xscale_trace_data *trace_data = xscale->trace.data;
> -    int i, retval;
> --   uint32_t breakpoint_pc;
> -+   uint32_t breakpoint_pc = 0;
> -    struct arm_instruction instruction;
> -    uint32_t current_pc = 0;  /* initialized when address determined */
> - 	
> diff --git a/package/openocd/openocd-0003-force-gnu99.patch b/package/openocd/openocd-0003-force-gnu99.patch
> index 106d112..5511f09 100644
> --- a/package/openocd/openocd-0003-force-gnu99.patch
> +++ b/package/openocd/openocd-0003-force-gnu99.patch
> @@ -1,19 +1,23 @@
>  force gnu99
>  
> -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> +Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
>  ---
> - configure.in |    1 +
> - 1 file changed, 1 insertion(+)
> + configure.ac |    2 ++
> + 1 files changed, 2 insertions(+), 0 deletions(-)
>  
> -Index: b/configure.in
> -===================================================================
> ---- a/configure.in
> -+++ b/configure.in
> -@@ -28,6 +28,7 @@ AC_DISABLE_SHARED
> +diff --git a/configure.ac b/configure.ac
> +index ffab637..60fe4ab 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -28,6 +28,8 @@ AC_DISABLE_SHARED
>   AC_PROG_LIBTOOL
> - AC_SUBST(LIBTOOL_DEPS)
> + AC_SUBST([LIBTOOL_DEPS])
>   
>  +CFLAGS="$CFLAGS -std=gnu99"
> - 
> ++
>   dnl configure checks required for Jim files (these are obsolete w/ C99)
>   AC_C_CONST
> + AC_TYPE_LONG_LONG_INT
> +-- 
> +1.7.9
> +
> diff --git a/package/openocd/openocd-0005-dont-force-ldflags.patch b/package/openocd/openocd-0005-dont-force-ldflags.patch
> deleted file mode 100644
> index 1880e00..0000000
> --- a/package/openocd/openocd-0005-dont-force-ldflags.patch
> +++ /dev/null
> @@ -1,37 +0,0 @@
> -[PATCH] don't force library search path / rpath settings
> -
> -openocd adds -L$exec_prefix/lib -Wl,rpath,$exec_prefix/lib to the compile
> -LDFLAGS if it isn't installed into /usr/local, which breaks cross compilation
> -as the compiler ends up using host libraries.
> ----
> - configure.in |   17 -----------------
> - 1 file changed, 17 deletions(-)
> -
> -Index: openocd-0.5.0/configure.in
> -===================================================================
> ---- openocd-0.5.0.orig/configure.in
> -+++ openocd-0.5.0/configure.in
> -@@ -174,23 +174,6 @@
> - # Let make expand exec_prefix.
> - test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix"
> - 
> --# what matters is the "exec-prefix"
> --if test "$OCDxprefix" != "$ac_default_prefix"
> --then
> --    # We are installing in a non-standard place
> --    # Nonstandard --prefix and/or --exec-prefix
> --    # We have an override of some sort.
> --    # use build specific install library dir
> --
> --    LDFLAGS="$LDFLAGS -L$OCDxprefix/lib"
> --    # RPATH becomes an issue on Linux only
> --    if test $host_os = linux-gnu || test $host_os = linux ; then
> --      LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib"
> --    fi
> --    # The "INCDIR" is also usable
> --    CFLAGS="$CFLAGS -I$includedir"
> --fi
> --
> - AC_ARG_WITH(ftd2xx,
> -    AS_HELP_STRING([--with-ftd2xx=<PATH>],[This option has been removed.]),
> -   [
> diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
> index a12ba6c..2796e81 100644
> --- a/package/openocd/openocd.mk
> +++ b/package/openocd/openocd.mk
> @@ -3,16 +3,18 @@
>  # openocd
>  #
>  #############################################################
> -OPENOCD_VERSION:=0.5.0
> -OPENOCD_SOURCE = openocd-$(OPENOCD_VERSION).tar.bz2
> -OPENOCD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/openocd/openocd/$(OPENOCD_VERSION)
> +#OPENOCD_VERSION = master
> +OPENOCD_VERSION = dec6b913809bd3f857af31be178ffde65e42dbab
> +OPENOCD_SITE = git://openocd.git.sourceforge.net/gitroot/openocd/openocd
> +OPENOCD_SITE_METHOD = git
>  
>  OPENOCD_AUTORECONF = YES
>  OPENOCD_CONF_OPT = \
>  	--oldincludedir=$(STAGING_DIR)/usr/include \
>  	--includedir=$(STAGING_DIR)/usr/include \
>  	--disable-doxygen-html \
> -	--enable-dummy
> +	--enable-dummy \
> +    --enable-maintainer-mode
>  
>  OPENOCD_DEPENDENCIES = libusb-compat
>  
> @@ -32,12 +34,28 @@ endif
>  
>  HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
>  
> +HOST_OPENOCD_AUTORECONF = YES
>  HOST_OPENOCD_CONF_OPT = 	\
>  	--disable-doxygen-html 	\
>  	--enable-dummy 		\
>  	--enable-ft2232_libftdi \
>  	--enable-jlink 		\
> -	--enable-vsllink
> +	--enable-vsllink \
> +	--enable-maintainer-mode 
> +
> +define DOWNLOAD_GIT
> +	test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
> +	(pushd $(DL_DIR) > /dev/null && \
> +	$(GIT) clone $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \
> +	pushd $($(PKG)_BASE_NAME) > /dev/null && \
> +	$(GIT) checkout $($(PKG)_VERSION) && \
> +	$(GIT) submodule init && \
> +	$(GIT) submodule update && \
> +	$(TAR) czf $(DL_DIR)/$($(PKG)_SOURCE) . &&\
> +	popd > /dev/null && \
> +	rm -rf $($(PKG)_DL_DIR) && \
> +	popd > /dev/null)    
> +endef
>  
>  $(eval $(call AUTOTARGETS))
>  $(eval $(call AUTOTARGETS,host))
> -- 
> 1.7.9
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-24 19:01 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-02-24 21:31   ` Alexandre Pereira da Silva
  2012-02-25  3:33     ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 1 reply; 16+ messages in thread
From: Alexandre Pereira da Silva @ 2012-02-24 21:31 UTC (permalink / raw)
  To: buildroot

This overrided the DOWNLOAD_GIT method to also fetch the submodules used
by openocd.
Removed patches that are not needed anymore by the new version.
Updated the gnu99 patch to use configure.ac instead of configure.in.
Fix a build problem in the stm32_stlink.c file.

Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
---
 ...s-compilation-host-libsub-was-used-before.patch |   33 --------
 ...d-0001-stlink-fix-alignment-build-warning.patch |   83 ++++++++++++++++++++
 ...002-fix-xscale-uninitialise-breakpoint_pc.patch |   20 -----
 package/openocd/openocd-0003-force-gnu99.patch     |   24 ++++---
 .../openocd/openocd-0005-dont-force-ldflags.patch  |   37 ---------
 package/openocd/openocd.mk                         |   28 ++++++-
 6 files changed, 120 insertions(+), 105 deletions(-)
 delete mode 100644 package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
 create mode 100644 package/openocd/openocd-0001-stlink-fix-alignment-build-warning.patch
 delete mode 100644 package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
 delete mode 100644 package/openocd/openocd-0005-dont-force-ldflags.patch

diff --git a/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch b/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
deleted file mode 100644
index caf1a8b..0000000
--- a/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From 3728c4af7f6303ccedab56ec220797f8f290580e Mon Sep 17 00:00:00 2001
-From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
-Date: Wed, 10 Aug 2011 00:17:29 +0800
-Subject: [PATCH] fix cross compilation: host libsub was used before
-
-tested in buildroot
-
-Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
----
- configure.in |    7 +++++--
- 1 files changed, 5 insertions(+), 2 deletions(-)
-
-diff --git a/configure.in b/configure.in
-index dfa1e8f..cfe2218 100644
---- a/configure.in
-+++ b/configure.in
-@@ -1046,8 +1046,11 @@ build_usb=no
- if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes -o \
-   $build_rlink = yes -o $build_ulink = yes -o $build_armjtagew = yes
- then
--  AC_CHECK_HEADERS([usb.h],[],
--  [AC_MSG_ERROR([usb.h is required to build some OpenOCD driver(s)])])
-+  dnl check for libusb
-+  PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.11)
-+  CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
-+  LDFLAGS="$LDFLAGS $LIBUSB_LDFLAGS"
-+  LIBS="$LIBS $LIBUSB_LIBS"
-   build_usb=yes
- fi
- 
--- 
-1.7.5.4
-
diff --git a/package/openocd/openocd-0001-stlink-fix-alignment-build-warning.patch b/package/openocd/openocd-0001-stlink-fix-alignment-build-warning.patch
new file mode 100644
index 0000000..2d8e521
--- /dev/null
+++ b/package/openocd/openocd-0001-stlink-fix-alignment-build-warning.patch
@@ -0,0 +1,83 @@
+From 94228f37f54ace3040bea1e5c2ccee895d854859 Mon Sep 17 00:00:00 2001
+From: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
+Date: Fri, 24 Feb 2012 18:51:48 -0200
+Subject: [PATCH] stlink: fix alignment build warning
+
+The {read,write}_mem32 interface functions was asking a 32 bits buffer but
+they don't need 32 bits alignment.
+This will change the interface to a 8 bits buffer to remove the alignment
+mismatch warning. This was causing build errors on platforms with strict
+aliasing rules.
+
+Change-Id: I338be8df5686f07a64ddb4f17c1bb494af583999
+Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
+---
+ src/jtag/drivers/stlink_usb.c   |    4 ++--
+ src/jtag/stlink/stlink_layout.h |    4 ++--
+ src/target/stm32_stlink.c       |    4 ++--
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c
+index 3cb2434..4604716 100644
+--- a/src/jtag/drivers/stlink_usb.c
++++ b/src/jtag/drivers/stlink_usb.c
+@@ -968,7 +968,7 @@ static int stlink_usb_write_mem8(void *handle, uint32_t addr, uint16_t len,
+ 
+ /** */
+ static int stlink_usb_read_mem32(void *handle, uint32_t addr, uint16_t len,
+-			  uint32_t *buffer)
++			  uint8_t *buffer)
+ {
+ 	int res;
+ 	struct stlink_usb_handle_s *h;
+@@ -998,7 +998,7 @@ static int stlink_usb_read_mem32(void *handle, uint32_t addr, uint16_t len,
+ 
+ /** */
+ static int stlink_usb_write_mem32(void *handle, uint32_t addr, uint16_t len,
+-			   const uint32_t *buffer)
++			   const uint8_t *buffer)
+ {
+ 	int res;
+ 	struct stlink_usb_handle_s *h;
+diff --git a/src/jtag/stlink/stlink_layout.h b/src/jtag/stlink/stlink_layout.h
+index c0c89f5..59e6174 100644
+--- a/src/jtag/stlink/stlink_layout.h
++++ b/src/jtag/stlink/stlink_layout.h
+@@ -56,10 +56,10 @@ struct stlink_layout_api_s {
+ 			    const uint8_t *buffer);
+ 	/** */
+ 	int (*read_mem32) (void *handle, uint32_t addr, uint16_t len,
+-			   uint32_t *buffer);
++			   uint8_t *buffer);
+ 	/** */
+ 	int (*write_mem32) (void *handle, uint32_t addr, uint16_t len,
+-			    const uint32_t *buffer);
++			    const uint8_t *buffer);
+ 	/** */
+ 	int (*idcode) (void *fd, uint32_t *idcode);
+ 	/** */
+diff --git a/src/target/stm32_stlink.c b/src/target/stm32_stlink.c
+index 32896cc..fc97188 100644
+--- a/src/target/stm32_stlink.c
++++ b/src/target/stm32_stlink.c
+@@ -651,7 +651,7 @@ static int stm32_stlink_read_memory(struct target *target, uint32_t address,
+ 					address, c, dst);
+ 		else
+ 			res = stlink_if->layout->api->read_mem32(stlink_if->fd,
+-					address, c, (uint32_t *)dst);
++					address, c, dst);
+ 
+ 		if (res != ERROR_OK)
+ 			return res;
+@@ -700,7 +700,7 @@ static int stm32_stlink_write_memory(struct target *target, uint32_t address,
+ 					address, c, dst);
+ 		else
+ 			res = stlink_if->layout->api->write_mem32(stlink_if->fd,
+-					address, c, (uint32_t *)dst);
++					address, c, dst);
+ 
+ 		if (res != ERROR_OK)
+ 			return res;
+-- 
+1.7.9
+
diff --git a/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch b/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
deleted file mode 100644
index 328241e..0000000
--- a/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-xscale: fix uninitialise breakpoint_pc
-
-Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
----
- src/target/xscale.c |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-Index: b/src/target/xscale.c
-===================================================================
---- a/src/target/xscale.c
-+++ b/src/target/xscale.c
-@@ -2811,7 +2811,7 @@ static int xscale_analyze_trace(struct t
-    struct xscale_common *xscale = target_to_xscale(target);
-    struct xscale_trace_data *trace_data = xscale->trace.data;
-    int i, retval;
--   uint32_t breakpoint_pc;
-+   uint32_t breakpoint_pc = 0;
-    struct arm_instruction instruction;
-    uint32_t current_pc = 0;  /* initialized when address determined */
- 	
diff --git a/package/openocd/openocd-0003-force-gnu99.patch b/package/openocd/openocd-0003-force-gnu99.patch
index 106d112..5511f09 100644
--- a/package/openocd/openocd-0003-force-gnu99.patch
+++ b/package/openocd/openocd-0003-force-gnu99.patch
@@ -1,19 +1,23 @@
 force gnu99
 
-Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
 ---
- configure.in |    1 +
- 1 file changed, 1 insertion(+)
+ configure.ac |    2 ++
+ 1 files changed, 2 insertions(+), 0 deletions(-)
 
-Index: b/configure.in
-===================================================================
---- a/configure.in
-+++ b/configure.in
-@@ -28,6 +28,7 @@ AC_DISABLE_SHARED
+diff --git a/configure.ac b/configure.ac
+index ffab637..60fe4ab 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -28,6 +28,8 @@ AC_DISABLE_SHARED
  AC_PROG_LIBTOOL
- AC_SUBST(LIBTOOL_DEPS)
+ AC_SUBST([LIBTOOL_DEPS])
  
 +CFLAGS="$CFLAGS -std=gnu99"
- 
++
  dnl configure checks required for Jim files (these are obsolete w/ C99)
  AC_C_CONST
+ AC_TYPE_LONG_LONG_INT
+-- 
+1.7.9
+
diff --git a/package/openocd/openocd-0005-dont-force-ldflags.patch b/package/openocd/openocd-0005-dont-force-ldflags.patch
deleted file mode 100644
index 1880e00..0000000
--- a/package/openocd/openocd-0005-dont-force-ldflags.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-[PATCH] don't force library search path / rpath settings
-
-openocd adds -L$exec_prefix/lib -Wl,rpath,$exec_prefix/lib to the compile
-LDFLAGS if it isn't installed into /usr/local, which breaks cross compilation
-as the compiler ends up using host libraries.
----
- configure.in |   17 -----------------
- 1 file changed, 17 deletions(-)
-
-Index: openocd-0.5.0/configure.in
-===================================================================
---- openocd-0.5.0.orig/configure.in
-+++ openocd-0.5.0/configure.in
-@@ -174,23 +174,6 @@
- # Let make expand exec_prefix.
- test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix"
- 
--# what matters is the "exec-prefix"
--if test "$OCDxprefix" != "$ac_default_prefix"
--then
--    # We are installing in a non-standard place
--    # Nonstandard --prefix and/or --exec-prefix
--    # We have an override of some sort.
--    # use build specific install library dir
--
--    LDFLAGS="$LDFLAGS -L$OCDxprefix/lib"
--    # RPATH becomes an issue on Linux only
--    if test $host_os = linux-gnu || test $host_os = linux ; then
--      LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib"
--    fi
--    # The "INCDIR" is also usable
--    CFLAGS="$CFLAGS -I$includedir"
--fi
--
- AC_ARG_WITH(ftd2xx,
-    AS_HELP_STRING([--with-ftd2xx=<PATH>],[This option has been removed.]),
-   [
diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
index a12ba6c..2796e81 100644
--- a/package/openocd/openocd.mk
+++ b/package/openocd/openocd.mk
@@ -3,16 +3,18 @@
 # openocd
 #
 #############################################################
-OPENOCD_VERSION:=0.5.0
-OPENOCD_SOURCE = openocd-$(OPENOCD_VERSION).tar.bz2
-OPENOCD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/openocd/openocd/$(OPENOCD_VERSION)
+#OPENOCD_VERSION = master
+OPENOCD_VERSION = dec6b913809bd3f857af31be178ffde65e42dbab
+OPENOCD_SITE = git://openocd.git.sourceforge.net/gitroot/openocd/openocd
+OPENOCD_SITE_METHOD = git
 
 OPENOCD_AUTORECONF = YES
 OPENOCD_CONF_OPT = \
 	--oldincludedir=$(STAGING_DIR)/usr/include \
 	--includedir=$(STAGING_DIR)/usr/include \
 	--disable-doxygen-html \
-	--enable-dummy
+	--enable-dummy \
+    --enable-maintainer-mode
 
 OPENOCD_DEPENDENCIES = libusb-compat
 
@@ -32,12 +34,28 @@ endif
 
 HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
 
+HOST_OPENOCD_AUTORECONF = YES
 HOST_OPENOCD_CONF_OPT = 	\
 	--disable-doxygen-html 	\
 	--enable-dummy 		\
 	--enable-ft2232_libftdi \
 	--enable-jlink 		\
-	--enable-vsllink
+	--enable-vsllink \
+	--enable-maintainer-mode 
+
+define DOWNLOAD_GIT
+	test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
+	(pushd $(DL_DIR) > /dev/null && \
+	$(GIT) clone $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \
+	pushd $($(PKG)_BASE_NAME) > /dev/null && \
+	$(GIT) checkout $($(PKG)_VERSION) && \
+	$(GIT) submodule init && \
+	$(GIT) submodule update && \
+	$(TAR) czf $(DL_DIR)/$($(PKG)_SOURCE) . &&\
+	popd > /dev/null && \
+	rm -rf $($(PKG)_DL_DIR) && \
+	popd > /dev/null)    
+endef
 
 $(eval $(call AUTOTARGETS))
 $(eval $(call AUTOTARGETS,host))
-- 
1.7.9

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-24 21:31   ` [Buildroot] [PATCH V2] " Alexandre Pereira da Silva
@ 2012-02-25  3:33     ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-25 15:31       ` Arnout Vandecappelle
  0 siblings, 1 reply; 16+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-02-25  3:33 UTC (permalink / raw)
  To: buildroot

On 19:31 Fri 24 Feb     , Alexandre Pereira da Silva wrote:
> This overrided the DOWNLOAD_GIT method to also fetch the submodules used
> by openocd.
> Removed patches that are not needed anymore by the new version.
> Updated the gnu99 patch to use configure.ac instead of configure.in.
> Fix a build problem in the stm32_stlink.c file.
> 
> Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
> ---
again NACK

DO NOT USE GIT in the release

and did you try to build it for the target as ARM?

Best Regards,
J.
>  ...s-compilation-host-libsub-was-used-before.patch |   33 --------
>  ...d-0001-stlink-fix-alignment-build-warning.patch |   83 ++++++++++++++++++++
>  ...002-fix-xscale-uninitialise-breakpoint_pc.patch |   20 -----
>  package/openocd/openocd-0003-force-gnu99.patch     |   24 ++++---
>  .../openocd/openocd-0005-dont-force-ldflags.patch  |   37 ---------
>  package/openocd/openocd.mk                         |   28 ++++++-
>  6 files changed, 120 insertions(+), 105 deletions(-)
>  delete mode 100644 package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
>  create mode 100644 package/openocd/openocd-0001-stlink-fix-alignment-build-warning.patch
>  delete mode 100644 package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
>  delete mode 100644 package/openocd/openocd-0005-dont-force-ldflags.patch
> 
> diff --git a/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch b/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
> deleted file mode 100644
> index caf1a8b..0000000
> --- a/package/openocd/openocd-0001-fix-cross-compilation-host-libsub-was-used-before.patch
> +++ /dev/null
> @@ -1,33 +0,0 @@
> -From 3728c4af7f6303ccedab56ec220797f8f290580e Mon Sep 17 00:00:00 2001
> -From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> -Date: Wed, 10 Aug 2011 00:17:29 +0800
> -Subject: [PATCH] fix cross compilation: host libsub was used before
> -
> -tested in buildroot
> -
> -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ----
> - configure.in |    7 +++++--
> - 1 files changed, 5 insertions(+), 2 deletions(-)
> -
> -diff --git a/configure.in b/configure.in
> -index dfa1e8f..cfe2218 100644
> ---- a/configure.in
> -+++ b/configure.in
> -@@ -1046,8 +1046,11 @@ build_usb=no
> - if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes -o \
> -   $build_rlink = yes -o $build_ulink = yes -o $build_armjtagew = yes
> - then
> --  AC_CHECK_HEADERS([usb.h],[],
> --  [AC_MSG_ERROR([usb.h is required to build some OpenOCD driver(s)])])
> -+  dnl check for libusb
> -+  PKG_CHECK_MODULES(LIBUSB, libusb >= 0.1.11)
> -+  CFLAGS="$CFLAGS $LIBUSB_CFLAGS"
> -+  LDFLAGS="$LDFLAGS $LIBUSB_LDFLAGS"
> -+  LIBS="$LIBS $LIBUSB_LIBS"
> -   build_usb=yes
> - fi
> - 
> --- 
> -1.7.5.4
> -
> diff --git a/package/openocd/openocd-0001-stlink-fix-alignment-build-warning.patch b/package/openocd/openocd-0001-stlink-fix-alignment-build-warning.patch
> new file mode 100644
> index 0000000..2d8e521
> --- /dev/null
> +++ b/package/openocd/openocd-0001-stlink-fix-alignment-build-warning.patch
> @@ -0,0 +1,83 @@
> +From 94228f37f54ace3040bea1e5c2ccee895d854859 Mon Sep 17 00:00:00 2001
> +From: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
> +Date: Fri, 24 Feb 2012 18:51:48 -0200
> +Subject: [PATCH] stlink: fix alignment build warning
> +
> +The {read,write}_mem32 interface functions was asking a 32 bits buffer but
> +they don't need 32 bits alignment.
> +This will change the interface to a 8 bits buffer to remove the alignment
> +mismatch warning. This was causing build errors on platforms with strict
> +aliasing rules.
> +
> +Change-Id: I338be8df5686f07a64ddb4f17c1bb494af583999
> +Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
> +---
> + src/jtag/drivers/stlink_usb.c   |    4 ++--
> + src/jtag/stlink/stlink_layout.h |    4 ++--
> + src/target/stm32_stlink.c       |    4 ++--
> + 3 files changed, 6 insertions(+), 6 deletions(-)
> +
> +diff --git a/src/jtag/drivers/stlink_usb.c b/src/jtag/drivers/stlink_usb.c
> +index 3cb2434..4604716 100644
> +--- a/src/jtag/drivers/stlink_usb.c
> ++++ b/src/jtag/drivers/stlink_usb.c
> +@@ -968,7 +968,7 @@ static int stlink_usb_write_mem8(void *handle, uint32_t addr, uint16_t len,
> + 
> + /** */
> + static int stlink_usb_read_mem32(void *handle, uint32_t addr, uint16_t len,
> +-			  uint32_t *buffer)
> ++			  uint8_t *buffer)
> + {
> + 	int res;
> + 	struct stlink_usb_handle_s *h;
> +@@ -998,7 +998,7 @@ static int stlink_usb_read_mem32(void *handle, uint32_t addr, uint16_t len,
> + 
> + /** */
> + static int stlink_usb_write_mem32(void *handle, uint32_t addr, uint16_t len,
> +-			   const uint32_t *buffer)
> ++			   const uint8_t *buffer)
> + {
> + 	int res;
> + 	struct stlink_usb_handle_s *h;
> +diff --git a/src/jtag/stlink/stlink_layout.h b/src/jtag/stlink/stlink_layout.h
> +index c0c89f5..59e6174 100644
> +--- a/src/jtag/stlink/stlink_layout.h
> ++++ b/src/jtag/stlink/stlink_layout.h
> +@@ -56,10 +56,10 @@ struct stlink_layout_api_s {
> + 			    const uint8_t *buffer);
> + 	/** */
> + 	int (*read_mem32) (void *handle, uint32_t addr, uint16_t len,
> +-			   uint32_t *buffer);
> ++			   uint8_t *buffer);
> + 	/** */
> + 	int (*write_mem32) (void *handle, uint32_t addr, uint16_t len,
> +-			    const uint32_t *buffer);
> ++			    const uint8_t *buffer);
> + 	/** */
> + 	int (*idcode) (void *fd, uint32_t *idcode);
> + 	/** */
> +diff --git a/src/target/stm32_stlink.c b/src/target/stm32_stlink.c
> +index 32896cc..fc97188 100644
> +--- a/src/target/stm32_stlink.c
> ++++ b/src/target/stm32_stlink.c
> +@@ -651,7 +651,7 @@ static int stm32_stlink_read_memory(struct target *target, uint32_t address,
> + 					address, c, dst);
> + 		else
> + 			res = stlink_if->layout->api->read_mem32(stlink_if->fd,
> +-					address, c, (uint32_t *)dst);
> ++					address, c, dst);
> + 
> + 		if (res != ERROR_OK)
> + 			return res;
> +@@ -700,7 +700,7 @@ static int stm32_stlink_write_memory(struct target *target, uint32_t address,
> + 					address, c, dst);
> + 		else
> + 			res = stlink_if->layout->api->write_mem32(stlink_if->fd,
> +-					address, c, (uint32_t *)dst);
> ++					address, c, dst);
> + 
> + 		if (res != ERROR_OK)
> + 			return res;
> +-- 
> +1.7.9
> +
> diff --git a/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch b/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
> deleted file mode 100644
> index 328241e..0000000
> --- a/package/openocd/openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch
> +++ /dev/null
> @@ -1,20 +0,0 @@
> -xscale: fix uninitialise breakpoint_pc
> -
> -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ----
> - src/target/xscale.c |    2 +-
> - 1 file changed, 1 insertion(+), 1 deletion(-)
> -
> -Index: b/src/target/xscale.c
> -===================================================================
> ---- a/src/target/xscale.c
> -+++ b/src/target/xscale.c
> -@@ -2811,7 +2811,7 @@ static int xscale_analyze_trace(struct t
> -    struct xscale_common *xscale = target_to_xscale(target);
> -    struct xscale_trace_data *trace_data = xscale->trace.data;
> -    int i, retval;
> --   uint32_t breakpoint_pc;
> -+   uint32_t breakpoint_pc = 0;
> -    struct arm_instruction instruction;
> -    uint32_t current_pc = 0;  /* initialized when address determined */
> - 	
> diff --git a/package/openocd/openocd-0003-force-gnu99.patch b/package/openocd/openocd-0003-force-gnu99.patch
> index 106d112..5511f09 100644
> --- a/package/openocd/openocd-0003-force-gnu99.patch
> +++ b/package/openocd/openocd-0003-force-gnu99.patch
> @@ -1,19 +1,23 @@
>  force gnu99
>  
> -Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> +Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
>  ---
> - configure.in |    1 +
> - 1 file changed, 1 insertion(+)
> + configure.ac |    2 ++
> + 1 files changed, 2 insertions(+), 0 deletions(-)
>  
> -Index: b/configure.in
> -===================================================================
> ---- a/configure.in
> -+++ b/configure.in
> -@@ -28,6 +28,7 @@ AC_DISABLE_SHARED
> +diff --git a/configure.ac b/configure.ac
> +index ffab637..60fe4ab 100644
> +--- a/configure.ac
> ++++ b/configure.ac
> +@@ -28,6 +28,8 @@ AC_DISABLE_SHARED
>   AC_PROG_LIBTOOL
> - AC_SUBST(LIBTOOL_DEPS)
> + AC_SUBST([LIBTOOL_DEPS])
>   
>  +CFLAGS="$CFLAGS -std=gnu99"
> - 
> ++
>   dnl configure checks required for Jim files (these are obsolete w/ C99)
>   AC_C_CONST
> + AC_TYPE_LONG_LONG_INT
> +-- 
> +1.7.9
> +
> diff --git a/package/openocd/openocd-0005-dont-force-ldflags.patch b/package/openocd/openocd-0005-dont-force-ldflags.patch
> deleted file mode 100644
> index 1880e00..0000000
> --- a/package/openocd/openocd-0005-dont-force-ldflags.patch
> +++ /dev/null
> @@ -1,37 +0,0 @@
> -[PATCH] don't force library search path / rpath settings
> -
> -openocd adds -L$exec_prefix/lib -Wl,rpath,$exec_prefix/lib to the compile
> -LDFLAGS if it isn't installed into /usr/local, which breaks cross compilation
> -as the compiler ends up using host libraries.
> ----
> - configure.in |   17 -----------------
> - 1 file changed, 17 deletions(-)
> -
> -Index: openocd-0.5.0/configure.in
> -===================================================================
> ---- openocd-0.5.0.orig/configure.in
> -+++ openocd-0.5.0/configure.in
> -@@ -174,23 +174,6 @@
> - # Let make expand exec_prefix.
> - test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix"
> - 
> --# what matters is the "exec-prefix"
> --if test "$OCDxprefix" != "$ac_default_prefix"
> --then
> --    # We are installing in a non-standard place
> --    # Nonstandard --prefix and/or --exec-prefix
> --    # We have an override of some sort.
> --    # use build specific install library dir
> --
> --    LDFLAGS="$LDFLAGS -L$OCDxprefix/lib"
> --    # RPATH becomes an issue on Linux only
> --    if test $host_os = linux-gnu || test $host_os = linux ; then
> --      LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib"
> --    fi
> --    # The "INCDIR" is also usable
> --    CFLAGS="$CFLAGS -I$includedir"
> --fi
> --
> - AC_ARG_WITH(ftd2xx,
> -    AS_HELP_STRING([--with-ftd2xx=<PATH>],[This option has been removed.]),
> -   [
> diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
> index a12ba6c..2796e81 100644
> --- a/package/openocd/openocd.mk
> +++ b/package/openocd/openocd.mk
> @@ -3,16 +3,18 @@
>  # openocd
>  #
>  #############################################################
> -OPENOCD_VERSION:=0.5.0
> -OPENOCD_SOURCE = openocd-$(OPENOCD_VERSION).tar.bz2
> -OPENOCD_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/openocd/openocd/$(OPENOCD_VERSION)
> +#OPENOCD_VERSION = master
> +OPENOCD_VERSION = dec6b913809bd3f857af31be178ffde65e42dbab
> +OPENOCD_SITE = git://openocd.git.sourceforge.net/gitroot/openocd/openocd
> +OPENOCD_SITE_METHOD = git
>  
>  OPENOCD_AUTORECONF = YES
>  OPENOCD_CONF_OPT = \
>  	--oldincludedir=$(STAGING_DIR)/usr/include \
>  	--includedir=$(STAGING_DIR)/usr/include \
>  	--disable-doxygen-html \
> -	--enable-dummy
> +	--enable-dummy \
> +    --enable-maintainer-mode
>  
>  OPENOCD_DEPENDENCIES = libusb-compat
>  
> @@ -32,12 +34,28 @@ endif
>  
>  HOST_OPENOCD_DEPENDENCIES = host-libusb-compat host-libftdi
>  
> +HOST_OPENOCD_AUTORECONF = YES
>  HOST_OPENOCD_CONF_OPT = 	\
>  	--disable-doxygen-html 	\
>  	--enable-dummy 		\
>  	--enable-ft2232_libftdi \
>  	--enable-jlink 		\
> -	--enable-vsllink
> +	--enable-vsllink \
> +	--enable-maintainer-mode 
> +
> +define DOWNLOAD_GIT
> +	test -e $(DL_DIR)/$($(PKG)_SOURCE) || \
> +	(pushd $(DL_DIR) > /dev/null && \
> +	$(GIT) clone $($(PKG)_SITE) $($(PKG)_BASE_NAME) && \
> +	pushd $($(PKG)_BASE_NAME) > /dev/null && \
> +	$(GIT) checkout $($(PKG)_VERSION) && \
> +	$(GIT) submodule init && \
> +	$(GIT) submodule update && \
> +	$(TAR) czf $(DL_DIR)/$($(PKG)_SOURCE) . &&\
> +	popd > /dev/null && \
> +	rm -rf $($(PKG)_DL_DIR) && \
> +	popd > /dev/null)    
> +endef
>  
>  $(eval $(call AUTOTARGETS))
>  $(eval $(call AUTOTARGETS,host))
> -- 
> 1.7.9
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-25  3:33     ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-02-25 15:31       ` Arnout Vandecappelle
  2012-02-26  3:06         ` Alexandre Pereira da Silva
  2012-02-26  4:39         ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 16+ messages in thread
From: Arnout Vandecappelle @ 2012-02-25 15:31 UTC (permalink / raw)
  To: buildroot

On Saturday 25 February 2012 04:33:01 Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 19:31 Fri 24 Feb     , Alexandre Pereira da Silva wrote:
> > This overrided the DOWNLOAD_GIT method to also fetch the submodules used
> > by openocd.
> > Removed patches that are not needed anymore by the new version.
> > Updated the gnu99 patch to use configure.ac instead of configure.in.
> > Fix a build problem in the stm32_stlink.c file.
> > 
> > Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
> > ---
> again NACK
> 
> DO NOT USE GIT in the release

 Instead of just shouting at Alexandre, perhaps you can explain why it's
a bad idea to use the git version for openocd...

 Alexandre, why do you need a more recent version than the official 
release?


 Regards,
 Arnout


-- 
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:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-25 15:31       ` Arnout Vandecappelle
@ 2012-02-26  3:06         ` Alexandre Pereira da Silva
  2012-02-26  4:37           ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-26  4:39         ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 1 reply; 16+ messages in thread
From: Alexandre Pereira da Silva @ 2012-02-26  3:06 UTC (permalink / raw)
  To: buildroot

>> again NACK
>>
>> DO NOT USE GIT in the release
>
> ?Instead of just shouting at Alexandre, perhaps you can explain why it's
> a bad idea to use the git version for openocd...
>
> ?Alexandre, why do you need a more recent version than the official
> release?

The openocd release is 6 months old and they made many improvements
since then. And I don't see any plans for them to release a new
version any time soon.

Openocd git head is usually more stable than their latest released
version. Specially if the support for the target you are using is new.
I have had issues connecting one of my cortex-m3 targets with openocd
0.5.0.

This is a special package like u-boot and the kernel because in many
occasions you have to tweak the package to suit your own hardware.

Other option would be to use 0.5.0 version from git, so people who run
into this kind of issue, can override the version more easily.

Another comment on this issue is about git submodule fetching. Do you
think that could be useful to other packages? If so, I can prepare a
new patch to fetch all submodules, if any.

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-26  3:06         ` Alexandre Pereira da Silva
@ 2012-02-26  4:37           ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-28 20:46             ` Arnout Vandecappelle
  0 siblings, 1 reply; 16+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-02-26  4:37 UTC (permalink / raw)
  To: buildroot

On 00:06 Sun 26 Feb     , Alexandre Pereira da Silva wrote:
> >> again NACK
> >>
> >> DO NOT USE GIT in the release
> >
> > ?Instead of just shouting at Alexandre, perhaps you can explain why it's
> > a bad idea to use the git version for openocd...
> >
> > ?Alexandre, why do you need a more recent version than the official
> > release?
> 
> The openocd release is 6 months old and they made many improvements
> since then. And I don't see any plans for them to release a new
> version any time soon.
I will release a new version of openocd in time, today the current version is
not stable enough
> 
> Openocd git head is usually more stable than their latest released
> version. Specially if the support for the target you are using is new.
> I have had issues connecting one of my cortex-m3 targets with openocd
> 0.5.0.
> 
> This is a special package like u-boot and the kernel because in many
> occasions you have to tweak the package to suit your own hardware.
The NACK stand

You can do it for your local but for mainline no, barebox/ u-boot, linux are
based on release

> 
> Other option would be to use 0.5.0 version from git, so people who run
> into this kind of issue, can override the version more easily.
NACK

git is very slow to download it's NOT an option at all for default version
> 
> Another comment on this issue is about git submodule fetching. Do you
> think that could be useful to other packages? If so, I can prepare a
> new patch to fetch all submodules, if any.
this is yes

Best Regards,
J.

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-25 15:31       ` Arnout Vandecappelle
  2012-02-26  3:06         ` Alexandre Pereira da Silva
@ 2012-02-26  4:39         ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-26  4:40           ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-28 13:34           ` Thomas Petazzoni
  1 sibling, 2 replies; 16+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-02-26  4:39 UTC (permalink / raw)
  To: buildroot

On 16:31 Sat 25 Feb     , Arnout Vandecappelle wrote:
> On Saturday 25 February 2012 04:33:01 Jean-Christophe PLAGNIOL-VILLARD wrote:
> > On 19:31 Fri 24 Feb     , Alexandre Pereira da Silva wrote:
> > > This overrided the DOWNLOAD_GIT method to also fetch the submodules used
> > > by openocd.
> > > Removed patches that are not needed anymore by the new version.
> > > Updated the gnu99 patch to use configure.ac instead of configure.in.
> > > Fix a build problem in the stm32_stlink.c file.
> > > 
> > > Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
> > > ---
> > again NACK
> > 
> > DO NOT USE GIT in the release
> 
>  Instead of just shouting at Alexandre, perhaps you can explain why it's
> a bad idea to use the git version for openocd...
I known when I'm shuting someeone and why and how to do it
so please never resend such comment

Best Regards,
J.

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-26  4:39         ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-02-26  4:40           ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-28 13:34           ` Thomas Petazzoni
  1 sibling, 0 replies; 16+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-02-26  4:40 UTC (permalink / raw)
  To: buildroot

On 05:39 Sun 26 Feb     , Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 16:31 Sat 25 Feb     , Arnout Vandecappelle wrote:
> > On Saturday 25 February 2012 04:33:01 Jean-Christophe PLAGNIOL-VILLARD wrote:
> > > On 19:31 Fri 24 Feb     , Alexandre Pereira da Silva wrote:
> > > > This overrided the DOWNLOAD_GIT method to also fetch the submodules used
> > > > by openocd.
> > > > Removed patches that are not needed anymore by the new version.
> > > > Updated the gnu99 patch to use configure.ac instead of configure.in.
> > > > Fix a build problem in the stm32_stlink.c file.
> > > > 
> > > > Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
> > > > ---
> > > again NACK
> > > 
> > > DO NOT USE GIT in the release
> > 
> >  Instead of just shouting at Alexandre, perhaps you can explain why it's
> > a bad idea to use the git version for openocd...
> I known when I'm shuting someeone and why and how to do it
> so please never resend such comment
and here it's not the case

Best Regards,
J.

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-26  4:39         ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-26  4:40           ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-02-28 13:34           ` Thomas Petazzoni
  2012-02-28 20:44             ` Peter Korsgaard
  2012-02-29 14:42             ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 2 replies; 16+ messages in thread
From: Thomas Petazzoni @ 2012-02-28 13:34 UTC (permalink / raw)
  To: buildroot

Le Sun, 26 Feb 2012 05:39:01 +0100,
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> a ?crit :

> > > DO NOT USE GIT in the release
> > 
> >  Instead of just shouting at Alexandre, perhaps you can explain why
> > it's a bad idea to use the git version for openocd...
> I known when I'm shuting someeone and why and how to do it
> so please never resend such comment

Sorry Jean-Christophe, but you're sending really disrespectful comments
to both Alexandre and Arnout and this is not acceptable.

Arnout's comment asking you to stop shouting at Alexandre was absolutely
correct, and I fully support Arnout here.

If you don't like the fact that we, as a community, try to maintain a
nice, welcoming and respectful atmosphere, then it's up to you to move
away. It's definitely not Arnout who should stop sending comments which
aim at maintaining this nice, welcoming and respectful atmosphere.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-28 13:34           ` Thomas Petazzoni
@ 2012-02-28 20:44             ` Peter Korsgaard
  2012-02-29 14:42             ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 16+ messages in thread
From: Peter Korsgaard @ 2012-02-28 20:44 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

Hi,

 Thomas> If you don't like the fact that we, as a community, try to
 Thomas> maintain a nice, welcoming and respectful atmosphere, then it's
 Thomas> up to you to move away. It's definitely not Arnout who should
 Thomas> stop sending comments which aim at maintaining this nice,
 Thomas> welcoming and respectful atmosphere.

 Thomas> Best regards,

I completely agree.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-26  4:37           ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-02-28 20:46             ` Arnout Vandecappelle
  0 siblings, 0 replies; 16+ messages in thread
From: Arnout Vandecappelle @ 2012-02-28 20:46 UTC (permalink / raw)
  To: buildroot

On Sunday 26 February 2012 04:37:06 Jean-Christophe PLAGNIOL-VILLARD wrote:
> On 00:06 Sun 26 Feb     , Alexandre Pereira da Silva wrote:
[snip]
> > The openocd release is 6 months old and they made many improvements
> > since then. And I don't see any plans for them to release a new
> > version any time soon.
> I will release a new version of openocd in time, today the current version is
> not stable enough

 That's a good reason to NACK the use of the git commit.  Thank you for
the explanation, Jean-Christophe.


> > This is a special package like u-boot and the kernel because in many
> > occasions you have to tweak the package to suit your own hardware.
> The NACK stand
> 
> You can do it for your local but for mainline no, barebox/ u-boot, linux are
> based on release

 Difference being that all of those release quite frequently :-)

> > Other option would be to use 0.5.0 version from git, so people who run
> > into this kind of issue, can override the version more easily.
> NACK
> 
> git is very slow to download it's NOT an option at all for default version

 Good point as well.

 With the need for local patches and the occasional local need for a git 
version rather than a release, you could consider adding git and patches
support to openocd's Config.in, like is the case for U-Boot and linux.


> > Another comment on this issue is about git submodule fetching. Do you
> > think that could be useful to other packages? If so, I can prepare a
> > new patch to fetch all submodules, if any.

 I'm not too keen on that.  Although I could be convinced.  Such a
feature would definitely have to be verified with all current git-based
packages.

 Regards,
 Arnout

 
-- 
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:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-28 13:34           ` Thomas Petazzoni
  2012-02-28 20:44             ` Peter Korsgaard
@ 2012-02-29 14:42             ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-29 17:20               ` Alexandre Pereira da Silva
  2012-02-29 18:15               ` Yann E. MORIN
  1 sibling, 2 replies; 16+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-02-29 14:42 UTC (permalink / raw)
  To: buildroot

On 14:34 Tue 28 Feb     , Thomas Petazzoni wrote:
> Le Sun, 26 Feb 2012 05:39:01 +0100,
> Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> a ?crit :
> 
> > > > DO NOT USE GIT in the release
> > > 
> > >  Instead of just shouting at Alexandre, perhaps you can explain why
> > > it's a bad idea to use the git version for openocd...
> > I known when I'm shuting someeone and why and how to do it
> > so please never resend such comment
> 
> Sorry Jean-Christophe, but you're sending really disrespectful comments
> to both Alexandre and Arnout and this is not acceptable.
> 
> Arnout's comment asking you to stop shouting at Alexandre was absolutely
> correct, and I fully support Arnout here.
> 
> If you don't like the fact that we, as a community, try to maintain a
> nice, welcoming and respectful atmosphere, then it's up to you to move
> away. It's definitely not Arnout who should stop sending comments which
> aim at maintaining this nice, welcoming and respectful atmosphere.
Except I'm not shooting Alexandre, so I'll said my mind about someone saying
I'm shooting someone.

I Nack a patch. When you ask somone to do not do something and in the V2 he
redo the same you get an highlight. It's normal.
We are in text email the "DO NOT USE...." is normal also, it's an highlight.
I did not send a full e-mail in Capitul letter

If you want to see shooting read someone of the e-mail on the kernel ML, here
it's not.

And I'm a Opensource Maintainer for years, I known the difference between
shooting or not.

Best Regrds,
J.

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-29 14:42             ` Jean-Christophe PLAGNIOL-VILLARD
@ 2012-02-29 17:20               ` Alexandre Pereira da Silva
  2012-03-05 10:54                 ` Thomas Petazzoni
  2012-02-29 18:15               ` Yann E. MORIN
  1 sibling, 1 reply; 16+ messages in thread
From: Alexandre Pereira da Silva @ 2012-02-29 17:20 UTC (permalink / raw)
  To: buildroot

> I Nack a patch. When you ask somone to do not do something and in the V2 he
> redo the same you get an highlight. It's normal.
> We are in text email the "DO NOT USE...." is normal also, it's an highlight.
> I did not send a full e-mail in Capitul letter

My only problem with this whole situation is the lost time because of
the misleading response:

Jean> please add a patch to fix the stm32_stlink

From that I can only deduce that everything is OK besides one of the
package patches.

If your first response clearly stated that this kind of patch was not
going to be accepted anyhow, I would stop there and look for other
alternatives.

This is Lost time that could be used on the project and in my own
products to add other useful features.

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-29 14:42             ` Jean-Christophe PLAGNIOL-VILLARD
  2012-02-29 17:20               ` Alexandre Pereira da Silva
@ 2012-02-29 18:15               ` Yann E. MORIN
  1 sibling, 0 replies; 16+ messages in thread
From: Yann E. MORIN @ 2012-02-29 18:15 UTC (permalink / raw)
  To: buildroot

Jean-Christophe, All,

On Wednesday 29 February 2012 15:42:25 Jean-Christophe PLAGNIOL-VILLARD wrote:
> We are in text email the "DO NOT USE...." is normal also, it's an highlight.

For the records:
  This is SHOUTING.
  This is *bold text*
  This is _underlined text_
  This is /italic text/
  This is "quoted text"
  This is a _/*MIX OF THE ABOVE*/_

Highlight (or better yet: emphasise) is to use *bold* markings.

This has been thus for ages now. For reference, see the netiquette,
especially sections 2.1.1 and 3.0 for email discussions:
    https://tools.ietf.org/html/rfc1855

Exerpt:
---8<---
    - Use mixed case.  UPPER CASE LOOKS AS IF YOU'RE SHOUTING.

    - Use symbols for emphasis.  That *is* what I meant.  Use
      underscores for underlining. _War and Peace_ is my favorite
      book.
---8<---

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH V2] openocd: fetch package from git repository and update version
  2012-02-29 17:20               ` Alexandre Pereira da Silva
@ 2012-03-05 10:54                 ` Thomas Petazzoni
  0 siblings, 0 replies; 16+ messages in thread
From: Thomas Petazzoni @ 2012-03-05 10:54 UTC (permalink / raw)
  To: buildroot

Hello Alexandre,

Le Wed, 29 Feb 2012 14:20:34 -0300,
Alexandre Pereira da Silva <aletes.xgr@gmail.com> a ?crit :

> My only problem with this whole situation is the lost time because of
> the misleading response:
> 
> Jean> please add a patch to fix the stm32_stlink
> 
> From that I can only deduce that everything is OK besides one of the
> package patches.
> 
> If your first response clearly stated that this kind of patch was not
> going to be accepted anyhow, I would stop there and look for other
> alternatives.
> 
> This is Lost time that could be used on the project and in my own
> products to add other useful features.

Jean-Christophe is sometimes a bit strong in his replies, and it's
definitely not the kind of attitude we want in the Buildroot community.

Alexandre, your contributions are more than welcome. We may of course
sometimes have comments on them, but in general, but really welcome
your contributions.

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2012-03-05 10:54 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-24 18:19 [Buildroot] [PATCH] openocd: fetch package from git repository and update version Alexandre Pereira da Silva
2012-02-24 19:01 ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-24 21:31   ` [Buildroot] [PATCH V2] " Alexandre Pereira da Silva
2012-02-25  3:33     ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-25 15:31       ` Arnout Vandecappelle
2012-02-26  3:06         ` Alexandre Pereira da Silva
2012-02-26  4:37           ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-28 20:46             ` Arnout Vandecappelle
2012-02-26  4:39         ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-26  4:40           ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-28 13:34           ` Thomas Petazzoni
2012-02-28 20:44             ` Peter Korsgaard
2012-02-29 14:42             ` Jean-Christophe PLAGNIOL-VILLARD
2012-02-29 17:20               ` Alexandre Pereira da Silva
2012-03-05 10:54                 ` Thomas Petazzoni
2012-02-29 18:15               ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox