2009-11-11 03:51:02 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# lmbench
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
LMBENCH_VERSION:=3.0-a9
|
|
|
|
LMBENCH_SOURCE:=lmbench-$(LMBENCH_VERSION).tgz
|
|
|
|
LMBENCH_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/project/lmbench/development/lmbench-3.0-a9/
|
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_CONFIGURE_CMDS
|
|
|
|
$(CONFIG_UPDATE) $(@D)
|
|
|
|
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile
|
|
|
|
sed -i '/cd .*doc/d' $(@D)/src/Makefile
|
|
|
|
sed -i '/include/d' $(@D)/src/Makefile
|
2009-11-11 03:51:02 +01:00
|
|
|
touch $@
|
2010-06-08 07:30:26 +02:00
|
|
|
endef
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_BUILD_CMDS
|
2010-07-06 09:27:32 +02:00
|
|
|
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" OS=$(ARCH) CC="$(TARGET_CC)" -C $(@D)/src
|
2010-06-08 07:30:26 +02:00
|
|
|
endef
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_INSTALL_TARGET_CMDS
|
2010-07-06 09:27:32 +02:00
|
|
|
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" OS=$(ARCH) CC="$(TARGET_CC)" BASE=$(TARGET_DIR)/usr -C $(@D)/src install
|
2010-06-08 07:30:26 +02:00
|
|
|
endef
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
define LMBENCH_CLEAN_CMDS
|
|
|
|
$(MAKE) -C $(@D)/src clean
|
|
|
|
endef
|
2009-11-11 03:51:02 +01:00
|
|
|
|
2010-06-08 07:30:26 +02:00
|
|
|
$(eval $(call GENTARGETS,package,lmbench))
|