1################################################################################ 2# 3# uftrace 4# 5################################################################################ 6 7UFTRACE_VERSION = 0.10 8UFTRACE_SITE = $(call github,namhyung,uftrace,v$(UFTRACE_VERSION)) 9UFTRACE_LICENSE = GPL-2.0 10UFTRACE_LICENSE_FILES = COPYING 11UFTRACE_CONFIGURE_OPTS = \ 12 --without-libdw \ 13 --without-libpython \ 14 --without-libluajit \ 15 --without-libncurses \ 16 --without-capstone 17 18ifeq ($(BR2_i386),y) 19UFTRACE_ARCH = i386 20else 21UFTRACE_ARCH = $(BR2_ARCH) 22endif 23 24# Only --without-<foo> options are supported. 25ifeq ($(BR2_PACKAGE_ELFUTILS),y) 26UFTRACE_DEPENDENCIES += elfutils 27else 28UFTRACE_CONFIGURE_OPTS += --without-libelf 29endif 30 31ifeq ($(BR2_INSTALL_LIBSTDCPP),) 32UFTRACE_CONFIGURE_OPTS += --without-libstdc++ 33endif 34 35UFTRACE_LDFLAGS = $(TARGET_LDFLAGS) 36 37ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y) 38UFTRACE_DEPENDENCIES += argp-standalone 39UFTRACE_LDFLAGS += -largp 40endif 41 42define UFTRACE_CONFIGURE_CMDS 43 (cd $(@D); $(TARGET_CONFIGURE_OPTS) \ 44 LDFLAGS="$(UFTRACE_LDFLAGS)" \ 45 ./configure \ 46 --arch=$(UFTRACE_ARCH) \ 47 --prefix=/usr \ 48 $(UFTRACE_CONFIGURE_OPTS) \ 49 -o $(@D)/.config) 50endef 51 52define UFTRACE_BUILD_CMDS 53 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) 54endef 55 56define UFTRACE_INSTALL_TARGET_CMDS 57 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install 58endef 59 60$(eval $(generic-package)) 61