From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/strace
Date: Mon, 4 Aug 2008 12:07:41 -0700 (PDT) [thread overview]
Message-ID: <20080804190741.DDA103C8AA@busybox.net> (raw)
Author: jacmet
Date: 2008-08-04 12:07:41 -0700 (Mon, 04 Aug 2008)
New Revision: 23025
Log:
strace: convert to makefile.autotools.in format
Modified:
trunk/buildroot/package/strace/strace.mk
Changeset:
Modified: trunk/buildroot/package/strace/strace.mk
===================================================================
--- trunk/buildroot/package/strace/strace.mk 2008-08-04 19:07:38 UTC (rev 23024)
+++ trunk/buildroot/package/strace/strace.mk 2008-08-04 19:07:41 UTC (rev 23025)
@@ -6,77 +6,24 @@
STRACE_VERSION:=4.5.15
STRACE_SOURCE:=strace-$(STRACE_VERSION).tar.bz2
STRACE_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/strace
-STRACE_CAT:=$(BZCAT)
-STRACE_DIR:=$(BUILD_DIR)/strace-$(STRACE_VERSION)
+STRACE_AUTORECONF:=no
+STRACE_INSTALL_STAGING:=NO
+STRACE_INSTALL_TARGET:=YES
-$(DL_DIR)/$(STRACE_SOURCE):
- $(WGET) -P $(DL_DIR) $(STRACE_SITE)/$(STRACE_SOURCE)
+STRACE_DEPENDENCIES:=uclibc
-strace-source: $(DL_DIR)/$(STRACE_SOURCE)
+STRACE_CONF_ENV:= ac_cv_header_linux_if_packet_h=yes \
+ ac_cv_header_linux_netlink_h=yes \
+ $(if $(BR2_LARGEFILE),ac_cv_type_stat64=yes,ac_cv_type_stat64=no)
-$(STRACE_DIR)/.unpacked: $(DL_DIR)/$(STRACE_SOURCE)
- $(STRACE_CAT) $(DL_DIR)/$(STRACE_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(STRACE_DIR) package/strace \
- strace\*.patch strace\*.patch.$(ARCH)
- $(CONFIG_UPDATE) $(STRACE_DIR)
- touch $(STRACE_DIR)/.unpacked
+$(eval $(call AUTOTARGETS,package,strace))
-$(STRACE_DIR)/.configured: $(STRACE_DIR)/.unpacked
- (cd $(STRACE_DIR); rm -rf config.cache; \
- $(if $(BR2_LARGEFILE),ac_cv_type_stat64=yes,ac_cv_type_stat64=no) \
- $(TARGET_CONFIGURE_OPTS) \
- $(TARGET_CONFIGURE_ARGS) \
- CFLAGS="$(TARGET_CFLAGS)" \
- ac_cv_header_linux_if_packet_h=yes \
- ac_cv_header_linux_netlink_h=yes \
- ./configure \
- --target=$(REAL_GNU_TARGET_NAME) \
- --host=$(REAL_GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --exec-prefix=/usr \
- --bindir=/usr/bin \
- --sbindir=/usr/sbin \
- --libdir=/lib \
- --libexecdir=/usr/lib \
- --sysconfdir=/etc \
- --datadir=/usr/share \
- --localstatedir=/var \
- --mandir=/usr/man \
- --infodir=/usr/info \
- $(DISABLE_NLS) \
- $(DISABLE_LARGEFILE) \
- )
- touch $(STRACE_DIR)/.configured
-
-$(STRACE_DIR)/strace: $(STRACE_DIR)/.configured
- $(MAKE) CC=$(TARGET_CC) -C $(STRACE_DIR)
-
-$(TARGET_DIR)/usr/bin/strace: $(STRACE_DIR)/strace
- install -c $(STRACE_DIR)/strace $(TARGET_DIR)/usr/bin/strace
- $(STRIPCMD) $(TARGET_DIR)/usr/bin/strace > /dev/null 2>&1
+$(STRACE_HOOK_POST_INSTALL): $(STRACE_TARGET_INSTALL_TARGET)
+ $(STRIPCMD) $(STRIP_STRIP_ALL) $(TARGET_DIR)/usr/bin/strace
+ rm -f $(TARGET_DIR)/usr/bin/strace-graph
ifeq ($(strip $(BR2_CROSS_TOOLCHAIN_TARGET_UTILS)),y)
mkdir -p $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/target_utils
install -c $(TARGET_DIR)/usr/bin/strace \
$(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/target_utils/strace
endif
-
-strace: uclibc $(TARGET_DIR)/usr/bin/strace
-
-strace-clean:
- rm -f $(TARGET_DIR)/usr/bin/strace \
- $(STAGING_DIR)/$(REAL_GNU_TARGET_NAME)/target_utils/strace
- -$(MAKE) -C $(STRACE_DIR) clean
-
-strace-dirclean:
- rm -rf $(STRACE_DIR)
-
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(strip $(BR2_PACKAGE_STRACE)),y)
-TARGETS+=strace
-endif
+ touch $@
next reply other threads:[~2008-08-04 19:07 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 19:07 jacmet at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-01-08 9:24 [Buildroot] svn commit: trunk/buildroot/package/strace egtvedt at uclibc.org
2008-12-22 22:10 jacmet at uclibc.org
2008-12-01 13:49 egtvedt at uclibc.org
2008-10-20 9:04 jacmet at uclibc.org
2008-08-04 19:07 jacmet at uclibc.org
2008-08-04 19:06 jacmet at uclibc.org
2008-04-24 9:03 jacmet at uclibc.org
2008-03-24 19:29 nkukard at uclibc.org
2007-11-03 7:23 ulf at uclibc.org
2007-07-24 17:59 aldot at uclibc.org
2007-07-24 17:56 ` Yann E. MORIN
2007-07-23 10:26 ulf at uclibc.org
2007-02-07 2:51 sjhill at uclibc.org
2007-02-06 18:12 sjhill at uclibc.org
2007-02-04 18:21 aldot at uclibc.org
2007-01-29 17:02 aldot at uclibc.org
2007-01-20 12:57 aldot at uclibc.org
2006-11-17 11:52 aldot at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080804190741.DDA103C8AA@busybox.net \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox