The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / sunxi-tools / sunxi-tools.mk
1 ################################################################################
2 #
3 # sunxi-tools
4 #
5 ################################################################################
6
7 SUNXI_TOOLS_VERSION = v1.2
8 SUNXI_TOOLS_SITE = $(call github,linux-sunxi,sunxi-tools,$(SUNXI_TOOLS_VERSION))
9 SUNXI_TOOLS_LICENSE = GPLv2+
10 SUNXI_TOOLS_LICENSE_FILES = COPYING
11 HOST_SUNXI_TOOLS_DEPENDENCIES = host-libusb
12 FEX2BIN = $(HOST_DIR)/usr/bin/fex2bin
13
14 define HOST_SUNXI_TOOLS_BUILD_CMDS
15         $(HOST_MAKE_ENV) $(MAKE) $(HOST_CONFIGURE_OPTS) \
16                 CFLAGS="$(HOST_CFLAGS) -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/" \
17                 -C $(@D)
18 endef
19
20 define HOST_SUNXI_TOOLS_INSTALL_CMDS
21         for i in fexc bin2fex fex2bin bootinfo fel pio; do \
22                 $(INSTALL) -D -m 0755 $(@D)/$$i $(HOST_DIR)/usr/bin/$$i ; \
23         done
24 endef
25
26 define SUNXI_TOOLS_BUILD_CMDS
27         $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \
28                 CFLAGS="$(TARGET_CFLAGS) -std=c99 -D_POSIX_C_SOURCE=200112L -Iinclude/" \
29                 -C $(@D) nand-part
30 endef
31
32 define SUNXI_TOOLS_INSTALL_TARGET_CMDS
33         $(INSTALL) -D -m 0755 $(@D)/nand-part $(TARGET_DIR)/usr/bin/nand-part
34 endef
35
36 $(eval $(generic-package))
37 $(eval $(host-generic-package))