* [Buildroot] [PATCH] sunxi-tools: bump version, add hash
@ 2015-11-23 21:36 Peter Korsgaard
2015-11-25 11:10 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Peter Korsgaard @ 2015-11-23 21:36 UTC (permalink / raw)
To: buildroot
Upstream has reworked its build system, so it now supports PREFIX and 'make
install', so use those.
Notice that the tools have also gained a sunxi- prefix, so use that as well
when installing the target variant.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
package/sunxi-tools/sunxi-tools.hash | 2 ++
package/sunxi-tools/sunxi-tools.mk | 17 ++++++++---------
2 files changed, 10 insertions(+), 9 deletions(-)
create mode 100644 package/sunxi-tools/sunxi-tools.hash
diff --git a/package/sunxi-tools/sunxi-tools.hash b/package/sunxi-tools/sunxi-tools.hash
new file mode 100644
index 0000000..c0499cd
--- /dev/null
+++ b/package/sunxi-tools/sunxi-tools.hash
@@ -0,0 +1,2 @@
+# Locally calculated
+sha256 2aa0afc21476ee9b03acff20a19f32c522106e61bcbfa1a9463168fe90a85fc5 sunxi-tools-v1.3.tar.gz
diff --git a/package/sunxi-tools/sunxi-tools.mk b/package/sunxi-tools/sunxi-tools.mk
index 049af9b..4c497c7 100644
--- a/package/sunxi-tools/sunxi-tools.mk
+++ b/package/sunxi-tools/sunxi-tools.mk
@@ -4,7 +4,7 @@
#
################################################################################
-SUNXI_TOOLS_VERSION = 82b9c656868d99553f11b1c8853ca808c7ce41ae
+SUNXI_TOOLS_VERSION = v1.3
SUNXI_TOOLS_SITE = $(call github,linux-sunxi,sunxi-tools,$(SUNXI_TOOLS_VERSION))
SUNXI_TOOLS_LICENSE = GPLv2+
SUNXI_TOOLS_LICENSE_FILES = COPYING
@@ -12,25 +12,24 @@ HOST_SUNXI_TOOLS_DEPENDENCIES = host-libusb host-pkgconf
FEX2BIN = $(HOST_DIR)/usr/bin/fex2bin
define HOST_SUNXI_TOOLS_BUILD_CMDS
- $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
+ $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr \
CFLAGS="$(HOST_CFLAGS) -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/" \
- -C $(@D)
+ -C $(@D) tools
endef
define HOST_SUNXI_TOOLS_INSTALL_CMDS
- for i in fexc bin2fex fex2bin bootinfo fel pio; do \
- $(INSTALL) -D -m 0755 $(@D)/$$i $(HOST_DIR)/usr/bin/$$i ; \
- done
+ $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr \
+ -C $(@D) install-tools
endef
define SUNXI_TOOLS_BUILD_CMDS
- $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
+ $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr \
CFLAGS="$(TARGET_CFLAGS) -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/" \
- -C $(@D) nand-part
+ -C $(@D) sunxi-nand-part
endef
define SUNXI_TOOLS_INSTALL_TARGET_CMDS
- $(INSTALL) -D -m 0755 $(@D)/nand-part $(TARGET_DIR)/usr/bin/nand-part
+ $(INSTALL) -D -m 0755 $(@D)/sunxi-nand-part $(TARGET_DIR)/usr/bin/sunxi-nand-part
endef
$(eval $(generic-package))
--
2.1.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] sunxi-tools: bump version, add hash
2015-11-23 21:36 [Buildroot] [PATCH] sunxi-tools: bump version, add hash Peter Korsgaard
@ 2015-11-25 11:10 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2015-11-25 11:10 UTC (permalink / raw)
To: buildroot
Dear Peter Korsgaard,
On Mon, 23 Nov 2015 22:36:30 +0100, Peter Korsgaard wrote:
> Upstream has reworked its build system, so it now supports PREFIX and 'make
> install', so use those.
>
> Notice that the tools have also gained a sunxi- prefix, so use that as well
> when installing the target variant.
>
> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
> ---
> package/sunxi-tools/sunxi-tools.hash | 2 ++
> package/sunxi-tools/sunxi-tools.mk | 17 ++++++++---------
> 2 files changed, 10 insertions(+), 9 deletions(-)
> create mode 100644 package/sunxi-tools/sunxi-tools.hash
Applied to next, 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:[~2015-11-25 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-23 21:36 [Buildroot] [PATCH] sunxi-tools: bump version, add hash Peter Korsgaard
2015-11-25 11:10 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox