2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-26 14:08:21 +02:00
|
|
|
#
|
|
|
|
# sunxi-tools
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-26 14:08:21 +02:00
|
|
|
|
2015-11-23 22:36:30 +01:00
|
|
|
SUNXI_TOOLS_VERSION = v1.3
|
2013-12-05 18:20:46 +01:00
|
|
|
SUNXI_TOOLS_SITE = $(call github,linux-sunxi,sunxi-tools,$(SUNXI_TOOLS_VERSION))
|
2013-05-26 14:08:21 +02:00
|
|
|
SUNXI_TOOLS_LICENSE = GPLv2+
|
|
|
|
SUNXI_TOOLS_LICENSE_FILES = COPYING
|
2015-09-09 23:02:18 +02:00
|
|
|
HOST_SUNXI_TOOLS_DEPENDENCIES = host-libusb host-pkgconf
|
2013-05-26 14:08:21 +02:00
|
|
|
FEX2BIN = $(HOST_DIR)/usr/bin/fex2bin
|
|
|
|
|
|
|
|
define HOST_SUNXI_TOOLS_BUILD_CMDS
|
2015-11-23 22:36:30 +01:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr \
|
2013-05-26 14:08:21 +02:00
|
|
|
CFLAGS="$(HOST_CFLAGS) -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/" \
|
2015-11-23 22:36:30 +01:00
|
|
|
-C $(@D) tools
|
2013-05-26 14:08:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define HOST_SUNXI_TOOLS_INSTALL_CMDS
|
2015-11-23 22:36:30 +01:00
|
|
|
$(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) PREFIX=$(HOST_DIR)/usr \
|
|
|
|
-C $(@D) install-tools
|
2013-05-26 14:08:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SUNXI_TOOLS_BUILD_CMDS
|
2015-11-23 22:36:30 +01:00
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) PREFIX=/usr \
|
2013-05-26 14:08:21 +02:00
|
|
|
CFLAGS="$(TARGET_CFLAGS) -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/" \
|
2015-11-23 22:36:30 +01:00
|
|
|
-C $(@D) sunxi-nand-part
|
2013-05-26 14:08:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SUNXI_TOOLS_INSTALL_TARGET_CMDS
|
2015-11-23 22:36:30 +01:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/sunxi-nand-part $(TARGET_DIR)/usr/bin/sunxi-nand-part
|
2013-05-26 14:08:21 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|
|
|
|
$(eval $(host-generic-package))
|