2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
13 ifeq ($(CONFIG_LINUX_2_6_25),y)
16 PKG_MD5SUM:=77f66d09aa82981bb6d65fa19a2c1ba9
17 PATCH_DIR:=patches-4.5.16
21 PKG_MD5SUM:=64dfe10d9db0c1e34030891695ffca4b
24 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
25 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
30 include $(INCLUDE_DIR)/package.mk
35 TITLE:=System call tracer
36 URL:=http://strace.sourceforge.net/
39 define Package/strace/description
40 A useful diagnostic, instructional, and debugging tool. Allows you to track what
41 system calls a program makes while it is running.
44 # needed when compiling against Linux 2.4
46 ac_cv_header_linux_netlink_h=yes
48 ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),)
49 TARGET_CPPFLAGS += -I$(LINUX_DIR)/include
53 CCOPT="$(TARGET_CFLAGS)"
55 define Package/strace/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/strace $(1)/usr/bin/
60 $(eval $(call BuildPackage,strace))