On Wed, Feb 20, 2013 at 9:05 PM, Oliver Spornitz <[email protected]> wrote: > > Am 19.02.2013 um 21:17 schrieb Sedat Dilek: > >> On Tue, Feb 19, 2013 at 8:59 PM, Petr Machata <[email protected]> wrote: >>> Sedat Dilek <[email protected]> writes: >>> >>>> with latest ltrace upstream GIT I get for my 7170 (mipsel-based) router >>>> box: >>>> >>>> configure: creating ./config.status >>>> config.status: error: cannot find input file: `Makefile.in' >>> >>> As a wild guess: did you run ./autogen.sh, make distclean, etc.? >>> I.e. isn't there some state around that would still be hooked up to the >>> old ways? >>> >> >> Yes, I am using autogen.sh - which worked well all the other builds. >> Why should it not work now? >> And I am doing a 'make distclean' before building - always. >> >> - Sedat - >> >>> PM >> <ltrace.mk> > > I used your ltrace.mk to create a script building freetz on mipsel with > ltrace from git enabled. In your ltrace.mk only patching was removed. > Ltrace-git builds just fine. The script uses the defconfig, which is a > mipsel box to keep it simple. > > Regards > OS > > > #!/bin/bash > set -u > set -e > > TMPDIR=$(mktemp -d) > cd $TMPDIR > > # get freetz > wget http://freetz.org/downloads/freetz-1.2.tar.bz2 > tar xvjf freetz-1.2.tar.bz2 > > # set default config > cd freetz-1.2 > umask 0022 > make defconfig > > # enable ltrace in config > sed -i 's/# FREETZ_PACKAGE_LTRACE is not set/FREETZ_PACKAGE_LTRACE=y/' .config > make oldconfig > > cd make/ltrace > > # copy over ltrace.mk > cat << 'EOF' > ltrace.mk > $(call PKG_INIT_BIN, 0.7.90-git) > $(PKG)_SOURCE:=ltrace-$($(PKG)_VERSION).tar.gz > # Comment MD5 as it differs for each downloaded tarball from upstream Git > repository > #$(PKG)_SOURCE_MD5:=xxx > # XXX: Workaround: Generate a tarball from upstream Git repository (use 7 > digits) > $(PKG)_GIT_VERSION:=bc0de43 > $(PKG)_SITE:=http://anonscm.debian.org/gitweb/?p=collab-maint/ltrace.git;a=snapshot;h=$($(PKG)_GIT_VERSION);sf=tgz > > $(PKG)_BINARY:=$($(PKG)_DIR)/ltrace > $(PKG)_CONF:=$($(PKG)_DIR)/etc/ltrace.conf > $(PKG)_TARGET_BINARY:=$($(PKG)_DEST_DIR)/usr/sbin/ltrace > $(PKG)_TARGET_CONF:=$($(PKG)_DEST_DIR)/etc/ltrace.conf > > $(PKG)_DEPENDS_ON := libelf > > $(PKG)_REBUILD_SUBOPTS += FREETZ_PACKAGE_LTRACE_STATIC > > # Copy original header files and regenerate them using mksyscallent_mips and > mksignalent scripts > $(PKG)_CONFIGURE_PRE_CMDS += ( \ > cd sysdeps/linux-gnu/mips ; \ > cp syscallent.h syscallent.h.orig ; \ > cp signalent.h signalent.h.orig ; \ > ../mksyscallent_mips > $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/asm/unistd.h > syscallent.h ; \ > ../mksignalent > $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/asm/signal.h > signalent.h ; \ > ); > > # Use autogen.sh script to generate missing files like configure etc. > $(PKG)_CONFIGURE_PRE_CMDS += ./autogen.sh ; > > # Disable demangling support > $(PKG)_CONFIGURE_ENV += ac_cv_lib_iberty_cplus_demangle=no > $(PKG)_CONFIGURE_ENV += ac_cv_lib_stdcpp___cxa_demangle=no > $(PKG)_CONFIGURE_ENV += ac_cv_lib_supcpp___cxa_demangle=no > > $(PKG)_CONFIGURE_ENV += LD="$(TARGET_LD)" > > # Set compiler options to suppress warnings treated as errors > # Reference: gcc manual chapter "3.8 Options to Request or Suppress Warnings" > # <http://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#Warning-Options> > # EXAMPLE: TARGET_CC_OPTS := -Wno-error=maybe-uninitialized (here: gcc-4.7) > ifneq (,$(strip $(filter 4.7,$(TARGET_TOOLCHAIN_GCC_MAJOR_VERSION)))) > TARGET_CC_OPTS := -Wno-error=maybe-uninitialized > else > TARGET_CC_OPTS := > endif > > # XXX: Workaround: Download Git tarball (replaces $(PKG_SOURCE_DOWNLOAD)) > $(DL_DIR)/$(LTRACE_SOURCE): | $(DL_DIR) > wget -O $(DL_DIR)/$(LTRACE_SOURCE) "$(LTRACE_SITE)" > > $(pkg)-download: $(DL_DIR)/$(LTRACE_SOURCE) > > # XXX: Workaround: Unpack Git tarball and apply patches (replaces > $(PKG_UNPACKED)) > $($(PKG)_DIR)/.unpacked: $(DL_DIR)/$(LTRACE_SOURCE) | $(SOURCE_DIR) > mkdir -p $(LTRACE_DIR) > tar -C $(LTRACE_DIR) $(VERBOSE) --strip-components=1 \ > -xf $(DL_DIR)/$(LTRACE_SOURCE) > touch $@ > > $(pkg)-unpacked: $($(PKG)_DIR)/.unpacked > > # XXX: Workaround: Commented due to switch to Git tarball usage > #$(PKG_SOURCE_DOWNLOAD) > #$(PKG_UNPACKED) > $(PKG_CONFIGURED_CONFIGURE) > > $($(PKG)_CONF): $($(PKG)_DIR)/.unpacked > > $($(PKG)_TARGET_CONF): $($(PKG)_CONF) > mkdir -p $(dir $@) > cp $< $@ > > $($(PKG)_BINARY): $($(PKG)_DIR)/.configured > $(SUBMAKE) -C $(LTRACE_DIR) \ > ARCH="$(KERNEL_ARCH)" \ > CFLAGS="$(TARGET_CFLAGS) $(TARGET_CC_OPTS)" \ > $(if $(FREETZ_PACKAGE_LTRACE_STATIC),LDFLAGS="-all-static") > > $($(PKG)_TARGET_BINARY): $($(PKG)_BINARY) > $(INSTALL_BINARY_STRIP) > > $(pkg): > > $(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $($(PKG)_TARGET_CONF) > > $(pkg)-clean: > -$(SUBMAKE) -C $(LTRACE_DIR) clean > > $(pkg)-uninstall: > $(RM) $(LTRACE_TARGET_BINARY) > $(RM) $(LTRACE_TARGET_CONF) > > .PHONY: $(pkg)-download $(pkg)-unpacked $(pkg) $(pkg)-precompiled > $(pkg)-clean $(pkg)-uninstall > > $(PKG_FINISH) > EOF > > > > cd $TMPDIR/freetz-1.2 > # we do not have a firmware, create a dummy to make freetz happy > mkdir -p dl/fw > touch dl/fw/FRITZ.Box_Fon_WLAN_7270_v2.54.04.88.image > > make > >
Wow, you made a lot of efforts, Thanks! Is it possible you can send me source/target-mipsel_uClibc-0.9.32.1/ltrace-0.7.90-git as a tarball... directly to me? With your freetz-dotconfig file. - Sedat - _______________________________________________ Ltrace-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/ltrace-devel
