mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-08 00:20:38 -09:00
flashbench: unbreak build on microblaze
Fixes http://autobuild.buildroot.net/results/498287519fbb588ed4ee9624ff82002a4766a5f4 The old 4.1.2 binary microblaze toolchain only provides LLONG_MAX when used with the gnu99 dialect. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
@@ -9,8 +9,16 @@ FLASHBENCH_SITE = git://git.linaro.org/people/arnd/flashbench.git
|
||||
FLASHBENCH_LICENSE = GPLv2
|
||||
FLASHBENCH_LICENSE_FILES = COPYING
|
||||
|
||||
FLASHBENCH_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
ifeq ($(BR2_microblaze),y)
|
||||
# microblaze toolchain only provides LLONG_MAX when used with gnu99 dialect
|
||||
FLASHBENCH_CFLAGS += -std=gnu99
|
||||
endif
|
||||
|
||||
define FLASHBENCH_BUILD_CMDS
|
||||
$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
|
||||
CFLAGS="$(FLASHBENCH_CFLAGS)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) -lrt"
|
||||
endef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user