* [Buildroot] [PATCH 1/2] package: add jimtcl support
@ 2011-04-30 13:42 Jean-Christophe PLAGNIOL-VILLARD
2011-04-30 13:42 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-04-30 13:42 UTC (permalink / raw)
To: buildroot
you will download it via git
and can specify which repos and/or which commit
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
---
package/Config.in | 1 +
package/jimtcl/Config.in | 65 ++++++++++++++++++++++++++++++++++++++++++++++
package/jimtcl/jimtcl.mk | 30 +++++++++++++++++++++
3 files changed, 96 insertions(+), 0 deletions(-)
create mode 100644 package/jimtcl/Config.in
create mode 100644 package/jimtcl/jimtcl.mk
diff --git a/package/Config.in b/package/Config.in
index 76b2076..cd89892 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -231,6 +231,7 @@ source "package/php/Config.in"
source "package/python/Config.in"
source "package/ruby/Config.in"
source "package/tcl/Config.in"
+source "package/jimtcl/Config.in"
endmenu
menu "Libraries"
diff --git a/package/jimtcl/Config.in b/package/jimtcl/Config.in
new file mode 100644
index 0000000..7847d19
--- /dev/null
+++ b/package/jimtcl/Config.in
@@ -0,0 +1,65 @@
+menuconfig BR2_PACKAGE_JIMTCL
+ bool "jimtcl"
+ help
+ Small footprint implementation of Tcl programming language
+
+ http://jim.berlios.de/
+
+if BR2_PACKAGE_JIMTCL
+
+choice
+ prompt "JIMTCL Version"
+ default BR2_TARGET_JIMTCL_GIT
+ help
+ Select the specific jimtcl version you want to use
+
+config BR2_TARGET_JIMTCL_GIT
+ bool "Official git"
+
+config BR2_TARGET_JIMTCL_GIT_CUSTOM
+ bool "Custom"
+
+endchoice
+
+if BR2_TARGET_JIMTCL_GIT_CUSTOM
+
+config BR2_TARGET_JIMTCL_CUSTOM_GIT_LOCATION
+ string "URL of custom jimtcl git"
+
+endif
+
+choice
+ prompt "jimtcl Version"
+ default BR2_TARGET_JIMTCL_2011.01
+ help
+ Select the specific jimtcl version you want to use
+
+config BR2_TARGET_JIMTCL_0_70
+ bool "0.70"
+
+config BR2_TARGET_JIMTCL_0_63
+ bool "0.63"
+
+config BR2_TARGET_JIMTCL_0_51
+ bool "0.51"
+
+config BR2_TARGET_JIMTCL_CUSTOM
+ bool "Custom"
+
+endchoice
+
+config BR2_TARGET_JIMTCL_VERSION
+ string
+ default "0.70" if BR2_TARGET_JIMTCL_0_70
+ default "0.63" if BR2_TARGET_JIMTCL_0_63
+ default "0.51" if BR2_TARGET_JIMTCL_0_51
+ default "custom" if BR2_TARGET_JIMTCL_VERSION_CUSTOM
+
+if BR2_TARGET_JIMTCL_VERSION_CUSTOM
+
+config BR2_TARGET_JIMTCL_CUSTOM_COMMIT
+ string "URL of custom jimtcl commit"
+
+endif
+
+endif
diff --git a/package/jimtcl/jimtcl.mk b/package/jimtcl/jimtcl.mk
new file mode 100644
index 0000000..d4f4c52
--- /dev/null
+++ b/package/jimtcl/jimtcl.mk
@@ -0,0 +1,30 @@
+#############################################################
+#
+# jimtcl
+#
+#############################################################
+JIMTCL_VERSION:=$(call qstrip,$(BR2_TARGET_JIMTCL_VERSION))
+JIMTCL_SITE_METHOD:=git
+DL_TOOLS_DEPENDENCIES += git
+
+ifneq ($(BR2_TARGET_JIMTCL_CUSTOM_GIT_LOCATION),)
+JIMTCL_SITE:=$(call qstrip,$(BR2_TARGET_JIMTCL_CUSTOM_GIT_LOCATION))
+else
+JIMTCL_SITE:=http://repo.or.cz/r/jimtcl.git
+endif
+
+ifeq ($(JIMTCL_VERSION),custom)
+JIMTCL_VERSION=$(call qstrip,$(BR2_TARGET_JIMTCL_CUSTOM_COMMIT))
+endif
+
+# Force it as the version can be a name such as HEAD
+JIMTCL_DL_VERSION=$(OPENOCD_VERSION)
+
+JIMTCL_INSTALL_STAGING = YES
+JIMTCL_INSTALL_TARGET = NO
+
+OPENOCD_AUTORECONF = YES
+
+JIMTCL_INSTALL_STAGING_OPT= DESTDIR=$(STAGING_DIR)/usr install
+
+$(eval $(call AUTOTARGETS,package,jimtcl))
--
1.7.4.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package: add openocd support
2011-04-30 13:42 [Buildroot] [PATCH 1/2] package: add jimtcl support Jean-Christophe PLAGNIOL-VILLARD
@ 2011-04-30 13:42 ` Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 16:20 ` Peter Korsgaard
2011-05-01 12:35 ` [Buildroot] [PATCH 1/2] package: add jimtcl support Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 15:59 ` Peter Korsgaard
2 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-04-30 13:42 UTC (permalink / raw)
To: buildroot
with only usb option that depend only on libusb for now on
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
---
package/Config.in | 1 +
package/openocd/Config.in | 85 ++++++++++++++++++++++++++++++++++++++++++++
package/openocd/openocd.mk | 50 ++++++++++++++++++++++++++
3 files changed, 136 insertions(+), 0 deletions(-)
create mode 100644 package/openocd/Config.in
create mode 100644 package/openocd/openocd.mk
diff --git a/package/Config.in b/package/Config.in
index cd89892..4f24595 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -362,6 +362,7 @@ endmenu
menu "Miscellaneous"
source "package/shared-mime-info/Config.in"
+source "package/openocd/Config.in"
endmenu
menu "Networking applications"
diff --git a/package/openocd/Config.in b/package/openocd/Config.in
new file mode 100644
index 0000000..3efa3e7
--- /dev/null
+++ b/package/openocd/Config.in
@@ -0,0 +1,85 @@
+menuconfig BR2_PACKAGE_OPENOCD
+ bool "OpenOCD"
+ select BR2_PACKAGE_LIBUSB
+ select BR2_PACKAGE_LIBUSB_COMPAT
+ select BR2_PACKAGE_JIMTCL
+ help
+ OpenOCD - Open On-Chip Debugger
+
+ http://openocd.berlios.de/web/
+
+if BR2_PACKAGE_OPENOCD
+
+choice
+ prompt "OPENOCD Git"
+ default BR2_TARGET_OPENOCD_GIT
+ help
+ Select the specific OpenOCD Git you want to use
+
+config BR2_TARGET_OPENOCD_GIT
+ bool "Official"
+
+config BR2_TARGET_OPENOCD_GIT_CUSTOM
+ bool "Custom"
+
+endchoice
+
+if BR2_TARGET_OPENOCD_GIT_CUSTOM
+
+config BR2_TARGET_OPENOCD_CUSTOM_GIT_LOCATION
+ string "URL of custom OpenOCD git"
+
+endif
+
+choice
+ prompt "OpenOCD Version"
+ default BR2_TARGET_OPENOCD_2011.01
+ help
+ Select the specific OpenOCD version you want to use
+
+config BR2_TARGET_OPENOCD_HEAD
+ bool "HEAD"
+
+config BR2_TARGET_OPENOCD_0_4_0
+ bool "0.4.0"
+
+config BR2_TARGET_OPENOCD_0_3_1
+ bool "0.3.1"
+
+config BR2_TARGET_OPENOCD_CUSTOM
+ bool "Custom"
+
+endchoice
+
+config BR2_TARGET_OPENOCD_VERSION
+ string
+ default "HEAD" if BR2_TARGET_OPENOCD_HEAD
+ default "v0.4.0" if BR2_TARGET_OPENOCD_0_4_0
+ default "v0.3.1" if BR2_TARGET_OPENOCD_0_3_1
+ default "custom" if BR2_TARGET_OPENOCD_VERSION_CUSTOM
+
+if BR2_TARGET_OPENOCD_VERSION_CUSTOM
+
+config BR2_TARGET_OPENOCD_CUSTOM_COMMIT
+ string "URL of custom OpenOCD commit"
+
+endif
+
+comment "Options"
+
+config BR2_PACKAGE_OPENOCD_ETM
+ bool "OpenOCD+trace ETM capture hardware"
+ help
+ OpenOCD+trace ETM capture hardware for some prototype
+
+comment "Adapters"
+
+config BR2_PACKAGE_OPENOCD_JLINK
+ bool "Segger J-Link JTAG Programmer"
+ help
+ Segger J-Link JTAG Programmer and clone such as Atmel SAM-ICE
+
+config BR2_PACKAGE_OPENOCD_VSLLINK
+ bool "Versaloon-Link JTAG Programmr"
+
+endif # BR2_PACKAGE_OPENOCD
diff --git a/package/openocd/openocd.mk b/package/openocd/openocd.mk
new file mode 100644
index 0000000..b69b515
--- /dev/null
+++ b/package/openocd/openocd.mk
@@ -0,0 +1,50 @@
+#############################################################
+#
+# openocd
+#
+#############################################################
+OPENOCD_VERSION:=$(call qstrip,$(BR2_TARGET_OPENOCD_VERSION))
+OPENOCD_SITE_METHOD:=git
+DL_TOOLS_DEPENDENCIES += git
+
+ifneq ($(BR2_TARGET_OPENOCD_CUSTOM_GIT_LOCATION),)
+OPENOCD_SITE:=$(call qstrip,$(BR2_TARGET_OPENOCD_CUSTOM_GIT_LOCATION))
+else
+OPENOCD_SITE:=http://repo.or.cz/r/jimtcl.git
+endif
+
+ifeq ($(OPENOCD_VERSION),custom)
+OPENOCD_VERSION=$(call qstrip,$(BR2_TARGET_OPENOCD_CUSTOM_COMMIT))
+endif
+
+# Force it as the version can be a name such as HEAD
+OPENOCD_DL_VERSION=$(OPENOCD_VERSION)
+
+OPENOCD_AUTORECONF = YES
+OPENOCD_CONF_OPT = \
+ --enable-maintainer-mode \
+ --oldincludedir=$(STAGING_DIR)/usr/include \
+ --includedir=$(STAGING_DIR)/usr/include \
+ --enable-static \
+ --disable-shared \
+ --disable-internal-jimtcl \
+ --disable-doxygen-html \
+ --enable-dummy
+
+OPENOCD_DEPENDENCIES = libusb-compat jimtcl
+
+# Options
+ifeq ($(BR2_PACKAGE_OPENOCD_ETM),y)
+OPENOCD_CONF_OPT += --enable-oocd_trace
+endif
+
+# Adapters
+ifeq ($(BR2_PACKAGE_OPENOCD_JLINK),y)
+OPENOCD_CONF_OPT += --enable-jlink
+endif
+
+ifeq ($(BR2_PACKAGE_OPENOCD_VSLLINK),y)
+OPENOCD_CONF_OPT += --enable-vsllink
+endif
+
+$(eval $(call AUTOTARGETS,package,openocd))
--
1.7.4.1
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package: add jimtcl support
2011-04-30 13:42 [Buildroot] [PATCH 1/2] package: add jimtcl support Jean-Christophe PLAGNIOL-VILLARD
2011-04-30 13:42 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
@ 2011-05-01 12:35 ` Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 15:59 ` Peter Korsgaard
2 siblings, 0 replies; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-05-01 12:35 UTC (permalink / raw)
To: buildroot
On 15:42 Sat 30 Apr , Jean-Christophe PLAGNIOL-VILLARD wrote:
> you will download it via git
> and can specify which repos and/or which commit
>
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Please ignore these two patch I'll send soon a new version with FTDI Chip
support and a defconfig to build based on at91 board a ethernet JTAG
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package: add jimtcl support
2011-04-30 13:42 [Buildroot] [PATCH 1/2] package: add jimtcl support Jean-Christophe PLAGNIOL-VILLARD
2011-04-30 13:42 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 12:35 ` [Buildroot] [PATCH 1/2] package: add jimtcl support Jean-Christophe PLAGNIOL-VILLARD
@ 2011-05-01 15:59 ` Peter Korsgaard
2011-05-01 16:43 ` Jean-Christophe PLAGNIOL-VILLARD
2 siblings, 1 reply; 11+ messages in thread
From: Peter Korsgaard @ 2011-05-01 15:59 UTC (permalink / raw)
To: buildroot
>>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:
Jean-Christophe> you will download it via git
Jean-Christophe> and can specify which repos and/or which commit
Jean-Christophe> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Jean-Christophe> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Jean-Christophe> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Jean-Christophe> ---
Jean-Christophe> package/Config.in | 1 +
Jean-Christophe> package/jimtcl/Config.in | 65 ++++++++++++++++++++++++++++++++++++++++++++++
Jean-Christophe> package/jimtcl/jimtcl.mk | 30 +++++++++++++++++++++
Jean-Christophe> 3 files changed, 96 insertions(+), 0 deletions(-)
Jean-Christophe> create mode 100644 package/jimtcl/Config.in
Jean-Christophe> create mode 100644 package/jimtcl/jimtcl.mk
Jean-Christophe> diff --git a/package/Config.in b/package/Config.in
Jean-Christophe> index 76b2076..cd89892 100644
Jean-Christophe> --- a/package/Config.in
Jean-Christophe> +++ b/package/Config.in
Jean-Christophe> @@ -231,6 +231,7 @@ source "package/php/Config.in"
Jean-Christophe> source "package/python/Config.in"
Jean-Christophe> source "package/ruby/Config.in"
Jean-Christophe> source "package/tcl/Config.in"
Jean-Christophe> +source "package/jimtcl/Config.in"
Please sort alphabetically.
Jean-Christophe> endmenu
Jean-Christophe> menu "Libraries"
Jean-Christophe> diff --git a/package/jimtcl/Config.in b/package/jimtcl/Config.in
Jean-Christophe> new file mode 100644
Jean-Christophe> index 0000000..7847d19
Jean-Christophe> --- /dev/null
Jean-Christophe> +++ b/package/jimtcl/Config.in
Jean-Christophe> @@ -0,0 +1,65 @@
Jean-Christophe> +menuconfig BR2_PACKAGE_JIMTCL
Jean-Christophe> + bool "jimtcl"
Jean-Christophe> + help
Jean-Christophe> + Small footprint implementation of Tcl programming language
Jean-Christophe> +
Jean-Christophe> + http://jim.berlios.de/
Jean-Christophe> +
Jean-Christophe> +if BR2_PACKAGE_JIMTCL
Jean-Christophe> +
Jean-Christophe> +choice
Jean-Christophe> + prompt "JIMTCL Version"
You have a mix of jimtcl/JIMTCL/Jimtcl - Please use the same
capitalization everywhere.
Jean-Christophe> + default BR2_TARGET_JIMTCL_GIT
Jean-Christophe> + help
Jean-Christophe> + Select the specific jimtcl version you want to use
Jean-Christophe> +
Jean-Christophe> +config BR2_TARGET_JIMTCL_GIT
Jean-Christophe> + bool "Official git"
Jean-Christophe> +
Jean-Christophe> +config BR2_TARGET_JIMTCL_GIT_CUSTOM
Jean-Christophe> + bool "Custom"
Is there really a need to support anything else than 0.70? We prefer to
only have 1 version as that simplified implementation and testing.
Jean-Christophe> +#############################################################
Jean-Christophe> +#
Jean-Christophe> +# jimtcl
Jean-Christophe> +#
Jean-Christophe> +#############################################################
Jean-Christophe> +JIMTCL_VERSION:=$(call qstrip,$(BR2_TARGET_JIMTCL_VERSION))
Jean-Christophe> +JIMTCL_SITE_METHOD:=git
Please use ' = ' rather than ':=' unless you have a special need for the
direct expansion.
Jean-Christophe> +DL_TOOLS_DEPENDENCIES += git
That's handled automatically.
Jean-Christophe> +JIMTCL_INSTALL_STAGING = YES
Jean-Christophe> +JIMTCL_INSTALL_TARGET = NO
Why no installation on target?
Jean-Christophe> +
Jean-Christophe> +OPENOCD_AUTORECONF = YES
This is JIMTCL, not OPENOCD.
Jean-Christophe> +
Jean-Christophe> +JIMTCL_INSTALL_STAGING_OPT= DESTDIR=$(STAGING_DIR)/usr install
Does it really use autotools and have broken DESTDIR support?
Jean-Christophe> +$(eval $(call AUTOTARGETS,package,jimtcl))
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package: add openocd support
2011-04-30 13:42 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
@ 2011-05-01 16:20 ` Peter Korsgaard
2011-05-01 16:45 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 11+ messages in thread
From: Peter Korsgaard @ 2011-05-01 16:20 UTC (permalink / raw)
To: buildroot
>>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:
Jean-Christophe> with only usb option that depend only on libusb for now on
Jean-Christophe> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Jean-Christophe> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Jean-Christophe> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
Jean-Christophe> ---
Jean-Christophe> package/Config.in | 1 +
Jean-Christophe> package/openocd/Config.in | 85 ++++++++++++++++++++++++++++++++++++++++++++
Jean-Christophe> package/openocd/openocd.mk | 50 ++++++++++++++++++++++++++
Jean-Christophe> 3 files changed, 136 insertions(+), 0 deletions(-)
Jean-Christophe> create mode 100644 package/openocd/Config.in
Jean-Christophe> create mode 100644 package/openocd/openocd.mk
Jean-Christophe> diff --git a/package/Config.in b/package/Config.in
Jean-Christophe> index cd89892..4f24595 100644
Jean-Christophe> --- a/package/Config.in
Jean-Christophe> +++ b/package/Config.in
Jean-Christophe> @@ -362,6 +362,7 @@ endmenu
Jean-Christophe> menu "Miscellaneous"
Jean-Christophe> source "package/shared-mime-info/Config.in"
Jean-Christophe> +source "package/openocd/Config.in"
I would think 'hardware handling' would be a better location. Don't
forget sort alphabetically.
Jean-Christophe> menu "Networking applications"
Jean-Christophe> diff --git a/package/openocd/Config.in b/package/openocd/Config.in
Jean-Christophe> new file mode 100644
Jean-Christophe> index 0000000..3efa3e7
Jean-Christophe> --- /dev/null
Jean-Christophe> +++ b/package/openocd/Config.in
Jean-Christophe> @@ -0,0 +1,85 @@
Jean-Christophe> +menuconfig BR2_PACKAGE_OPENOCD
Jean-Christophe> + bool "OpenOCD"
Jean-Christophe> + select BR2_PACKAGE_LIBUSB
Jean-Christophe> + select BR2_PACKAGE_LIBUSB_COMPAT
Jean-Christophe> + select BR2_PACKAGE_JIMTCL
Jean-Christophe> + help
Jean-Christophe> + OpenOCD - Open On-Chip Debugger
Jean-Christophe> +
Jean-Christophe> + http://openocd.berlios.de/web/
Jean-Christophe> +
Jean-Christophe> +if BR2_PACKAGE_OPENOCD
Jean-Christophe> +
Jean-Christophe> +choice
Jean-Christophe> + prompt "OPENOCD Git"
Jean-Christophe> + default BR2_TARGET_OPENOCD_GIT
Jean-Christophe> + help
Jean-Christophe> + Select the specific OpenOCD Git you want to use
Again, do we really need the version / git location options?
Jean-Christophe> +config BR2_PACKAGE_OPENOCD_ETM
Jean-Christophe> + bool "OpenOCD+trace ETM capture hardware"
Jean-Christophe> + help
Jean-Christophe> + OpenOCD+trace ETM capture hardware for some prototype
That help text could use some work I think.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package: add jimtcl support
2011-05-01 15:59 ` Peter Korsgaard
@ 2011-05-01 16:43 ` Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 17:49 ` Peter Korsgaard
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-05-01 16:43 UTC (permalink / raw)
To: buildroot
> Jean-Christophe> + default BR2_TARGET_JIMTCL_GIT
> Jean-Christophe> + help
> Jean-Christophe> + Select the specific jimtcl version you want to use
> Jean-Christophe> +
> Jean-Christophe> +config BR2_TARGET_JIMTCL_GIT
> Jean-Christophe> + bool "Official git"
> Jean-Christophe> +
> Jean-Christophe> +config BR2_TARGET_JIMTCL_GIT_CUSTOM
> Jean-Christophe> + bool "Custom"
>
> Is there really a need to support anything else than 0.70? We prefer to
> only have 1 version as that simplified implementation and testing.
I do use the the HEAD personally
but the 0.70 is the last release I see project still using the previous one
I do use the custom git it offen as download from China or 3G is slow
And for dev I really like to be able to build my target from my own tree
I do not known yet how to implement it but, I get in my mind the idea to add
for the scm the same idea as for http download, the mirror mecanism
When you work offline or on slow internet network it's really good
>
> Jean-Christophe> +#############################################################
> Jean-Christophe> +#
> Jean-Christophe> +# jimtcl
> Jean-Christophe> +#
> Jean-Christophe> +#############################################################
> Jean-Christophe> +JIMTCL_VERSION:=$(call qstrip,$(BR2_TARGET_JIMTCL_VERSION))
> Jean-Christophe> +JIMTCL_SITE_METHOD:=git
>
> Please use ' = ' rather than ':=' unless you have a special need for the
> direct expansion.
>
> Jean-Christophe> +DL_TOOLS_DEPENDENCIES += git
>
> That's handled automatically.
>
> Jean-Christophe> +JIMTCL_INSTALL_STAGING = YES
> Jean-Christophe> +JIMTCL_INSTALL_TARGET = NO
>
> Why no installation on target?
no need of it for openocd we just link link to it staticly
>
> Jean-Christophe> +
> Jean-Christophe> +OPENOCD_AUTORECONF = YES
>
> This is JIMTCL, not OPENOCD.
>
> Jean-Christophe> +
> Jean-Christophe> +JIMTCL_INSTALL_STAGING_OPT= DESTDIR=$(STAGING_DIR)/usr install
>
> Does it really use autotools and have broken DESTDIR support?
yeah the --prefix is ignore, even if you pass --prefix=/usr it will install in
/include
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 2/2] package: add openocd support
2011-05-01 16:20 ` Peter Korsgaard
@ 2011-05-01 16:45 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-05-01 16:45 UTC (permalink / raw)
To: buildroot
On 18:20 Sun 01 May , Peter Korsgaard wrote:
> >>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:
>
> Jean-Christophe> with only usb option that depend only on libusb for now on
> Jean-Christophe> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> Jean-Christophe> Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
> Jean-Christophe> Cc: Patrice Vilchez <patrice.vilchez@atmel.com>
> Jean-Christophe> ---
> Jean-Christophe> package/Config.in | 1 +
> Jean-Christophe> package/openocd/Config.in | 85 ++++++++++++++++++++++++++++++++++++++++++++
> Jean-Christophe> package/openocd/openocd.mk | 50 ++++++++++++++++++++++++++
> Jean-Christophe> 3 files changed, 136 insertions(+), 0 deletions(-)
> Jean-Christophe> create mode 100644 package/openocd/Config.in
> Jean-Christophe> create mode 100644 package/openocd/openocd.mk
>
> Jean-Christophe> diff --git a/package/Config.in b/package/Config.in
> Jean-Christophe> index cd89892..4f24595 100644
> Jean-Christophe> --- a/package/Config.in
> Jean-Christophe> +++ b/package/Config.in
> Jean-Christophe> @@ -362,6 +362,7 @@ endmenu
>
> Jean-Christophe> menu "Miscellaneous"
> Jean-Christophe> source "package/shared-mime-info/Config.in"
> Jean-Christophe> +source "package/openocd/Config.in"
>
> I would think 'hardware handling' would be a better location. Don't
> forget sort alphabetically.
>
> Jean-Christophe> menu "Networking applications"
> Jean-Christophe> diff --git a/package/openocd/Config.in b/package/openocd/Config.in
> Jean-Christophe> new file mode 100644
> Jean-Christophe> index 0000000..3efa3e7
> Jean-Christophe> --- /dev/null
> Jean-Christophe> +++ b/package/openocd/Config.in
> Jean-Christophe> @@ -0,0 +1,85 @@
> Jean-Christophe> +menuconfig BR2_PACKAGE_OPENOCD
> Jean-Christophe> + bool "OpenOCD"
> Jean-Christophe> + select BR2_PACKAGE_LIBUSB
> Jean-Christophe> + select BR2_PACKAGE_LIBUSB_COMPAT
> Jean-Christophe> + select BR2_PACKAGE_JIMTCL
> Jean-Christophe> + help
> Jean-Christophe> + OpenOCD - Open On-Chip Debugger
> Jean-Christophe> +
> Jean-Christophe> + http://openocd.berlios.de/web/
> Jean-Christophe> +
> Jean-Christophe> +if BR2_PACKAGE_OPENOCD
> Jean-Christophe> +
> Jean-Christophe> +choice
> Jean-Christophe> + prompt "OPENOCD Git"
> Jean-Christophe> + default BR2_TARGET_OPENOCD_GIT
> Jean-Christophe> + help
> Jean-Christophe> + Select the specific OpenOCD Git you want to use
>
> Again, do we really need the version / git location options?
as explain on jimtcl,
I do use it every day due to network issue and help for development
So I wish to keep it
>
> Jean-Christophe> +config BR2_PACKAGE_OPENOCD_ETM
> Jean-Christophe> + bool "OpenOCD+trace ETM capture hardware"
> Jean-Christophe> + help
> Jean-Christophe> + OpenOCD+trace ETM capture hardware for some prototype
>
> That help text could use some work I think.
Copy paste from ./configure
>
> --
> Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package: add jimtcl support
2011-05-01 16:43 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2011-05-01 17:49 ` Peter Korsgaard
2011-05-02 5:41 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 11+ messages in thread
From: Peter Korsgaard @ 2011-05-01 17:49 UTC (permalink / raw)
To: buildroot
>>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:
Hi,
>> Is there really a need to support anything else than 0.70? We prefer to
>> only have 1 version as that simplified implementation and testing.
Jean-Christophe> I do use the the HEAD personally
Jean-Christophe> but the 0.70 is the last release I see project still
Jean-Christophe> using the previous one
What does openocd need? I would prefer to only have 0.70.
Jean-Christophe> I do not known yet how to implement it but, I get in
Jean-Christophe> my mind the idea to add for the scm the same idea as
Jean-Christophe> for http download, the mirror mecanism When you work
Jean-Christophe> offline or on slow internet network it's really good
That should work today - E.G. the git support creates a tarball which
will be reused next time you build or can be put on a mirror server.
Jean-Christophe> +JIMTCL_INSTALL_STAGING = YES
Jean-Christophe> +JIMTCL_INSTALL_TARGET = NO
>>
>> Why no installation on target?
Jean-Christophe> no need of it for openocd we just link link to it staticly
Ok, but we want a generic package. What does it install? Just a
shared/static library or also some tools?
>> Does it really use autotools and have broken DESTDIR support?
Jean-Christophe> yeah the --prefix is ignore, even if you pass
Jean-Christopha> --prefix=/usr it will install in /include
That sound like something to fix upstream then.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package: add jimtcl support
2011-05-01 17:49 ` Peter Korsgaard
@ 2011-05-02 5:41 ` Jean-Christophe PLAGNIOL-VILLARD
2011-05-02 6:44 ` Thomas Petazzoni
0 siblings, 1 reply; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-05-02 5:41 UTC (permalink / raw)
To: buildroot
On 19:49 Sun 01 May , Peter Korsgaard wrote:
> >>>>> "Jean-Christophe" == Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> writes:
>
> Hi,
>
> >> Is there really a need to support anything else than 0.70? We prefer to
> >> only have 1 version as that simplified implementation and testing.
>
> Jean-Christophe> I do use the the HEAD personally
>
> Jean-Christophe> but the 0.70 is the last release I see project still
> Jean-Christophe> using the previous one
>
> What does openocd need? I would prefer to only have 0.70.
0.70 but openocd use the HEAD usualy
>
> Jean-Christophe> I do not known yet how to implement it but, I get in
> Jean-Christophe> my mind the idea to add for the scm the same idea as
> Jean-Christophe> for http download, the mirror mecanism When you work
> Jean-Christophe> offline or on slow internet network it's really good
>
> That should work today - E.G. the git support creates a tarball which
> will be reused next time you build or can be put on a mirror server.
The idea is to use the tree directly and not everytime create a tarball
>
> Jean-Christophe> +JIMTCL_INSTALL_STAGING = YES
> Jean-Christophe> +JIMTCL_INSTALL_TARGET = NO
> >>
> >> Why no installation on target?
> Jean-Christophe> no need of it for openocd we just link link to it staticly
>
> Ok, but we want a generic package. What does it install? Just a
> shared/static library or also some tools?
shared, tools and static
so I can make the them optional as no need for openocd
>
> >> Does it really use autotools and have broken DESTDIR support?
>
> Jean-Christophe> yeah the --prefix is ignore, even if you pass
> Jean-Christopha> --prefix=/usr it will install in /include
>
> That sound like something to fix upstream then.
All the version are affected
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package: add jimtcl support
2011-05-02 5:41 ` Jean-Christophe PLAGNIOL-VILLARD
@ 2011-05-02 6:44 ` Thomas Petazzoni
2011-05-02 15:47 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 1 reply; 11+ messages in thread
From: Thomas Petazzoni @ 2011-05-02 6:44 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 2 May 2011 07:41:15 +0200
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> wrote:
> > That should work today - E.G. the git support creates a tarball
> > which will be reused next time you build or can be put on a mirror
> > server.
> The idea is to use the tree directly and not everytime create a
> tarball
That's something I plan to add globally at the package infrastructure
level. We need it for many other packages as well, for example the
bootloaders or the kernel. So there's infrastructure work to be done to
implement this, but I'd prefer to wait this work to be done rather than
cluttering each independent package with this kind of specific handling.
My idea is that users could write a "local.mk" file, in which they
could do:
JIMTCL_OVERRIDE_SRCDIR = /my/own/location
and Buildroot will use /my/own/location as the sources for JIMTCL.
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] 11+ messages in thread
* [Buildroot] [PATCH 1/2] package: add jimtcl support
2011-05-02 6:44 ` Thomas Petazzoni
@ 2011-05-02 15:47 ` Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; 11+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2011-05-02 15:47 UTC (permalink / raw)
To: buildroot
On 08:44 Mon 02 May , Thomas Petazzoni wrote:
> Hello,
>
> On Mon, 2 May 2011 07:41:15 +0200
> Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> wrote:
>
> > > That should work today - E.G. the git support creates a tarball
> > > which will be reused next time you build or can be put on a mirror
> > > server.
> > The idea is to use the tree directly and not everytime create a
> > tarball
>
> That's something I plan to add globally at the package infrastructure
> level. We need it for many other packages as well, for example the
> bootloaders or the kernel. So there's infrastructure work to be done to
> implement this, but I'd prefer to wait this work to be done rather than
> cluttering each independent package with this kind of specific handling.
>
> My idea is that users could write a "local.mk" file, in which they
> could do:
>
> JIMTCL_OVERRIDE_SRCDIR = /my/own/location
>
> and Buildroot will use /my/own/location as the sources for JIMTCL.
For now I'll post a patch to allow scm mirrors
Personnaly I use this alot I've a gitosis with mirror of all my componet I
work on so I can easly update them and reclone them quickly
I do the same on Mercurial
or svn via git tree
Best Regards,
J.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-05-02 15:47 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-30 13:42 [Buildroot] [PATCH 1/2] package: add jimtcl support Jean-Christophe PLAGNIOL-VILLARD
2011-04-30 13:42 ` [Buildroot] [PATCH 2/2] package: add openocd support Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 16:20 ` Peter Korsgaard
2011-05-01 16:45 ` Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 12:35 ` [Buildroot] [PATCH 1/2] package: add jimtcl support Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 15:59 ` Peter Korsgaard
2011-05-01 16:43 ` Jean-Christophe PLAGNIOL-VILLARD
2011-05-01 17:49 ` Peter Korsgaard
2011-05-02 5:41 ` Jean-Christophe PLAGNIOL-VILLARD
2011-05-02 6:44 ` Thomas Petazzoni
2011-05-02 15:47 ` Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox