![Rahul Bedarkar](/assets/img/avatar_default.png)
We want to use SPDX identifier for license strings as much as possible. SPDX short identifier for GPLv2/GPLv2+ is GPL-2.0/GPL-2.0+. This change is done by using following command. find . -name "*.mk" | xargs sed -ri '/LICENSE( )?[\+:]?=/s/\<GPLv2\>/GPL-2.0/g' Signed-off-by: Rahul Bedarkar <rahulbedarkar89@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
31 lines
929 B
Makefile
31 lines
929 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
|
|
|
|
FLASHBENCH_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
ifeq ($(BR2_microblaze)$(BR2_sh2a),y)
|
|
# microblaze and sh2a toolchains only provide 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
|
|
|
|
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))
|