dc7fa8491c
The old binary Microblaze and Sh2a toolchains were affected by Glibc Bug 1228: https://sourceware.org/bugzilla/show_bug.cgi?id=1228 that has been fixed in 2005, so let's remove actual work around: 'FLASHBENCH_CFLAGS += -std=gnu99' for both BR2_microblaze and BR2_sh2a and remove local FLASHBENCH_CFLAGS in favour of TARGET_CFLAGS. Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
24 lines
725 B
Makefile
24 lines
725 B
Makefile
################################################################################
|
|
#
|
|
# flashbench
|
|
#
|
|
################################################################################
|
|
|
|
FLASHBENCH_VERSION = 2e30b1968a66147412f21002ea844122a0d5e2f0
|
|
FLASHBENCH_SITE = git://git.linaro.org/people/arnd/flashbench.git
|
|
FLASHBENCH_LICENSE = GPL-2.0
|
|
FLASHBENCH_LICENSE_FILES = COPYING
|
|
|
|
define FLASHBENCH_BUILD_CMDS
|
|
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS) -lrt"
|
|
endef
|
|
|
|
define FLASHBENCH_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 755 -D $(@D)/flashbench $(TARGET_DIR)/usr/bin/flashbench
|
|
$(INSTALL) -m 755 -D $(@D)/erase $(TARGET_DIR)/usr/bin/erase
|
|
endef
|
|
|
|
$(eval $(generic-package))
|