toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / flashbench / flashbench.mk
blob6759338a2eb4756cf37d31d3ea4c79719599b6f5
1 ################################################################################
3 # flashbench
5 ################################################################################
7 FLASHBENCH_VERSION = 2e30b1968a66147412f21002ea844122a0d5e2f0
8 FLASHBENCH_SITE = git://git.linaro.org/people/arnd/flashbench.git
9 FLASHBENCH_LICENSE = GPLv2
10 FLASHBENCH_LICENSE_FILES = COPYING
12 FLASHBENCH_CFLAGS = $(TARGET_CFLAGS)
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
19 define FLASHBENCH_BUILD_CMDS
20 $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
21 CFLAGS="$(FLASHBENCH_CFLAGS)" \
22 LDFLAGS="$(TARGET_LDFLAGS) -lrt"
23 endef
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
30 $(eval $(generic-package))