1 ################################################################################
5 ################################################################################
7 SUNXI_TOOLS_VERSION
= v1.4
.1
8 SUNXI_TOOLS_SITE
= $(call github
,linux-sunxi
,sunxi-tools
,$(SUNXI_TOOLS_VERSION
))
9 SUNXI_TOOLS_LICENSE
= GPLv2
+
10 SUNXI_TOOLS_LICENSE_FILES
= LICENSE.md
11 HOST_SUNXI_TOOLS_DEPENDENCIES
= host-libusb host-pkgconf
12 FEX2BIN
= $(HOST_DIR
)/usr
/bin
/fex2bin
14 define HOST_SUNXI_TOOLS_BUILD_CMDS
15 $(HOST_MAKE_ENV
) $(MAKE
) CC
="$(HOSTCC)" PREFIX
=$(HOST_DIR
)/usr \
16 EXTRA_CFLAGS
="$(HOST_CFLAGS)" LDFLAGS
="$(HOST_LDFLAGS)" \
20 define HOST_SUNXI_TOOLS_INSTALL_CMDS
21 $(HOST_MAKE_ENV
) $(MAKE
) PREFIX
=$(HOST_DIR
)/usr \
22 -C
$(@D
) install-tools
25 define SUNXI_TOOLS_BUILD_CMDS
26 $(TARGET_MAKE_ENV
) $(MAKE
) CC
="$(TARGET_CC)" PREFIX
=/usr \
27 EXTRA_CFLAGS
="$(TARGET_CFLAGS)" LDFLAGS
="$(TARGET_LDFLAGS)" \
28 -C
$(@D
) sunxi-nand-part
31 define SUNXI_TOOLS_INSTALL_TARGET_CMDS
32 $(INSTALL
) -D
-m
0755 $(@D
)/sunxi-nand-part
$(TARGET_DIR
)/usr
/bin
/sunxi-nand-part
35 $(eval
$(generic-package
))
36 $(eval
$(host-generic-package
))