* [Buildroot] [PATCH 1/1] mxsldr: new package
@ 2016-07-07 17:49 Erik Stromdahl
2016-07-08 20:05 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Erik Stromdahl @ 2016-07-07 17:49 UTC (permalink / raw)
To: buildroot
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
---
package/Config.in.host | 1 +
package/mxsldr/Config.in.host | 9 +++++++++
package/mxsldr/mxsldr.hash | 2 ++
package/mxsldr/mxsldr.mk | 21 +++++++++++++++++++++
4 files changed, 33 insertions(+)
create mode 100644 package/mxsldr/Config.in.host
create mode 100644 package/mxsldr/mxsldr.hash
create mode 100644 package/mxsldr/mxsldr.mk
diff --git a/package/Config.in.host b/package/Config.in.host
index 909fd96..6d61f19 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -25,6 +25,7 @@ menu "Host utilities"
source "package/mke2img/Config.in.host"
source "package/mtd/Config.in.host"
source "package/mtools/Config.in.host"
+ source "package/mxsldr/Config.in.host"
source "package/omap-u-boot-utils/Config.in.host"
source "package/openocd/Config.in.host"
source "package/parted/Config.in.host"
diff --git a/package/mxsldr/Config.in.host b/package/mxsldr/Config.in.host
new file mode 100644
index 0000000..df28da0
--- /dev/null
+++ b/package/mxsldr/Config.in.host
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_HOST_MXSLDR
+ bool "host-mxsldr"
+ depends on BR2_arm
+ help
+ This package contains tools to download and execute code
+ on Freescale i.MX23 and i.MX28 SoC's through the
+ Serial Download Protocol.
+
+ git://git.denx.de/mxsldr.git
diff --git a/package/mxsldr/mxsldr.hash b/package/mxsldr/mxsldr.hash
new file mode 100644
index 0000000..007afb9
--- /dev/null
+++ b/package/mxsldr/mxsldr.hash
@@ -0,0 +1,2 @@
+# locally calculated
+sha256 caef93db6e5fe3850450e3168031ff552a917d15aa39f8d6afde574a0999a268 mxsldr-2793a657ab7a22487d21c1b020957806f8ae8383.tar.gz
diff --git a/package/mxsldr/mxsldr.mk b/package/mxsldr/mxsldr.mk
new file mode 100644
index 0000000..89b74b8
--- /dev/null
+++ b/package/mxsldr/mxsldr.mk
@@ -0,0 +1,21 @@
+################################################################################
+#
+# mxsldr
+#
+################################################################################
+
+MXSLDR_VERSION = 2793a657ab7a22487d21c1b020957806f8ae8383
+MXSLDR_SITE = "git://git.denx.de/mxsldr.git"
+MXSLDR_LICENSE = GPLv2
+MXSLDR_DEPENDENCIES = host-libusb host-pkgconf
+MXSLDR_MAKE_ENV = PKG_CONFIG="$(HOST_DIR)/usr/bin/pkg-config"
+
+define HOST_MXSLDR_BUILD_CMDS
+ $(HOST_CONFIGURE_OPTS) $(MXSLDR_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define HOST_MXSLDR_INSTALL_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/mxsldr $(HOST_DIR)/usr/bin/mxsldr
+endef
+
+$(eval $(host-generic-package))
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] mxsldr: new package
2016-07-07 17:49 [Buildroot] [PATCH 1/1] mxsldr: new package Erik Stromdahl
@ 2016-07-08 20:05 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-07-08 20:05 UTC (permalink / raw)
To: buildroot
Hello,
On Thu, 7 Jul 2016 19:49:23 +0200, Erik Stromdahl wrote:
> Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
> ---
> package/Config.in.host | 1 +
> package/mxsldr/Config.in.host | 9 +++++++++
> package/mxsldr/mxsldr.hash | 2 ++
> package/mxsldr/mxsldr.mk | 21 +++++++++++++++++++++
> 4 files changed, 33 insertions(+)
> create mode 100644 package/mxsldr/Config.in.host
> create mode 100644 package/mxsldr/mxsldr.hash
> create mode 100644 package/mxsldr/mxsldr.mk
Applied to master, after doing the following changes:
[Thomas:
- Rename prompt from "host-mxsldr" to "host mxsldr".
- Add BR2_armeb in the list of architectures under which this package
can be enabled.
- Remove double quotes around the _SITE value.
- The license is GPLv2+, not GPLv2.
- Add a value for the _LICENSE_FILES variable
- Rename MXSLDR_DEPENDENCIES to HOST_MXSLDR_DEPENDENCIES, since the
dependencies of the host package are no longer derived from the
dependencies of the target package.
- Remove the MXSLDR_MAKE_OPTS variable that contained the PKG_CONFIG
variable definition: it is already passed in HOST_CONFIGURE_OPTS.
- Remove hash file, as it is not checked on Git packages for now.]
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-08 20:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-07 17:49 [Buildroot] [PATCH 1/1] mxsldr: new package Erik Stromdahl
2016-07-08 20:05 ` Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.