mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-05 01:17:45 +00:00
lmbench: add support to use libtirpc when available
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
7266e7630d
commit
80f7a4b679
@ -1,12 +1,8 @@
|
|||||||
config BR2_PACKAGE_LMBENCH
|
config BR2_PACKAGE_LMBENCH
|
||||||
bool "lmbench"
|
bool "lmbench"
|
||||||
# Uses pmap_set, pmap__unset, pmap_getport, etc.
|
select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
||||||
depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
|
||||||
help
|
help
|
||||||
LMbench is a suite of simple, portable,
|
LMbench is a suite of simple, portable,
|
||||||
ANSI/C microbenchmarks for UNIX/POSIX.
|
ANSI/C microbenchmarks for UNIX/POSIX.
|
||||||
|
|
||||||
http://sourceforge.net/projects/lmbench/
|
http://sourceforge.net/projects/lmbench/
|
||||||
|
|
||||||
comment "lmbench requires a toolchain with RPC support"
|
|
||||||
depends on !BR2_TOOLCHAIN_HAS_NATIVE_RPC
|
|
||||||
|
@ -9,6 +9,15 @@ LMBENCH_SITE:=http://downloads.sourceforge.net/project/lmbench/development/lmben
|
|||||||
LMBENCH_LICENSE = lmbench license (based on GPLv2)
|
LMBENCH_LICENSE = lmbench license (based on GPLv2)
|
||||||
LMBENCH_LICENSE_FILES = COPYING COPYING-2
|
LMBENCH_LICENSE_FILES = COPYING COPYING-2
|
||||||
|
|
||||||
|
LMBENCH_CFLAGS = $(TARGET_CFLAGS)
|
||||||
|
LMBENCH_LDLIBS = $(TARGET_LDFLAGS)
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_LIBTIRPC),y)
|
||||||
|
LMBENCH_DEPENDENCIES += libtirpc
|
||||||
|
LMBENCH_CFLAGS += -I$(STAGING_DIR)/usr/include/tirpc/
|
||||||
|
LMBENCH_LDFLAGS += -ltirpc
|
||||||
|
endif
|
||||||
|
|
||||||
define LMBENCH_CONFIGURE_CMDS
|
define LMBENCH_CONFIGURE_CMDS
|
||||||
$(call CONFIG_UPDATE,$(@D))
|
$(call CONFIG_UPDATE,$(@D))
|
||||||
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile
|
sed -i 's/CFLAGS=/CFLAGS+=/g' $(@D)/src/Makefile
|
||||||
@ -18,7 +27,7 @@ define LMBENCH_CONFIGURE_CMDS
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define LMBENCH_BUILD_CMDS
|
define LMBENCH_BUILD_CMDS
|
||||||
$(MAKE) CFLAGS="$(TARGET_CFLAGS)" OS=$(ARCH) CC="$(TARGET_CC)" -C $(@D)/src
|
$(MAKE) CFLAGS="$(LMBENCH_CFLAGS)" LDFLAGS="$(LMBENCH_LDFLAGS)" OS=$(ARCH) CC="$(TARGET_CC)" -C $(@D)/src
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define LMBENCH_INSTALL_TARGET_CMDS
|
define LMBENCH_INSTALL_TARGET_CMDS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user