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 / flashbench / flashbench.mk
1 ################################################################################
2 #
3 # flashbench
4 #
5 ################################################################################
6
7 FLASHBENCH_VERSION = 2e30b1968a66147412f21002ea844122a0d5e2f0
8 FLASHBENCH_SITE = git://git.linaro.org/people/arnd/flashbench.git
9 FLASHBENCH_LICENSE = GPLv2
10 FLASHBENCH_LICENSE_FILES = COPYING
11
12 FLASHBENCH_CFLAGS = $(TARGET_CFLAGS)
13
14 ifeq ($(BR2_microblaze)$(BR2_sh2a),y)
15 # microblaze and sh2a toolchains only provide LLONG_MAX when used with gnu99 dialect
16 FLASHBENCH_CFLAGS += -std=gnu99
17 endif
18
19 define FLASHBENCH_BUILD_CMDS
20         $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
21                 CFLAGS="$(FLASHBENCH_CFLAGS)" \
22                 LDFLAGS="$(TARGET_LDFLAGS) -lrt"
23 endef
24
25 define FLASHBENCH_INSTALL_TARGET_CMDS
26         $(INSTALL) -m 755 -D $(@D)/flashbench $(TARGET_DIR)/usr/bin/flashbench
27         $(INSTALL) -m 755 -D $(@D)/erase $(TARGET_DIR)/usr/bin/erase
28 endef
29
30 $(eval $(generic-package))