From patchwork Thu Jun 18 12:51:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 6636791 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id AF81E9F1C1 for ; Thu, 18 Jun 2015 12:52:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D2B7F20832 for ; Thu, 18 Jun 2015 12:52:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA35B2082A for ; Thu, 18 Jun 2015 12:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753266AbbFRMv7 (ORCPT ); Thu, 18 Jun 2015 08:51:59 -0400 Received: from mail-la0-f47.google.com ([209.85.215.47]:35301 "EHLO mail-la0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751001AbbFRMv6 (ORCPT ); Thu, 18 Jun 2015 08:51:58 -0400 Received: by labko7 with SMTP id ko7so53798903lab.2 for ; Thu, 18 Jun 2015 05:51:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=o3N71BmVC1TzWXZZ6DrrCkzbives24CSBGU3veDoyMU=; b=A6IT1qccUsh14Wfxv61/5D+bCCumuBVSqpQsjBhdJGllg8ktlO8hFYCvXoYmKQ/3Xp levQGRcte/AAOg6GeWucIpE6ExOI8FdAmFIXOGA48YNITuzwk407kCft1C3p10gfpEjx d8IFgqpjH6c4Tqn4J3qBxV32JH5Bx7MOzWIXm4nCn3N1S+SNjS1+Zp2U2rBF76zMJOUU Z4r3OdHGLm1DSn+KV0phnBCg0DHTP5Sv0ZSXRjGIIoR4ajdGkmz6XECrVvNgqmEqWBGK 647D0vDT6iKsXEYs/zCS/Q9VlaJAS6Rb/JjxRRm90uVUD1yW+fHAKx1PsQfWeDlIDgBx QRkA== X-Gm-Message-State: ALoCoQkIR+WMK0Ll4DGjf/I4EyvM5Fga3MGEdmGYMlmZiGGuhXbGUo3VIYCLC/Xy4JrlupZ+PG1a X-Received: by 10.152.204.7 with SMTP id ku7mr12896168lac.38.1434631917136; Thu, 18 Jun 2015 05:51:57 -0700 (PDT) Received: from beaming.home (91-157-196-38.elisa-laajakaista.fi. [91.157.196.38]) by mx.google.com with ESMTPSA id tp10sm1750733lbb.4.2015.06.18.05.51.56 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 18 Jun 2015 05:51:56 -0700 (PDT) From: riku.voipio@linaro.org To: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Cc: acme@kernel.org, mingo@redhat.com, a.p.zijlstra@chello.nl, hekuang@huawei.com, Riku Voipio Subject: [PATCH] Makefile.perf: make python module depend on traceevent Date: Thu, 18 Jun 2015 15:51:49 +0300 Message-Id: <1434631909-12636-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Riku Voipio Building python module might fail if libtraceevent-dynamic-list hasn't been built before: to LDFLAGS: GEN python/perf.so /usr/bin/ld: cannot open linker script file /x/tools/lib/traceevent/libtraceevent-dynamic-list: No such file or directory collect2: error: ld returned 1 exit status error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 cp: cannot stat ?python_ext_build/lib/perf.so?: No such file or directory Add explicit Makefile dependency to make sure libtraceevent-dynamic-list is built before. Signed-off-by: Riku Voipio --- tools/perf/Makefile.perf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf index b1dfcd8..66045d0 100644 --- a/tools/perf/Makefile.perf +++ b/tools/perf/Makefile.perf @@ -188,7 +188,7 @@ export PYTHON_EXTBUILD_LIB PYTHON_EXTBUILD_TMP python-clean := $(call QUIET_CLEAN, python) $(RM) -r $(PYTHON_EXTBUILD) $(OUTPUT)python/perf.so PYTHON_EXT_SRCS := $(shell grep -v ^\# util/python-ext-sources) -PYTHON_EXT_DEPS := util/python-ext-sources util/setup.py $(LIBTRACEEVENT) $(LIBAPI) +PYTHON_EXT_DEPS := util/python-ext-sources util/setup.py $(LIBTRACEEVENT) $(LIBTRACEEVENT_DYNAMIC_LIST) $(LIBAPI) $(OUTPUT)python/perf.so: $(PYTHON_EXT_SRCS) $(PYTHON_EXT_DEPS) $(QUIET_GEN)CFLAGS='$(CFLAGS)' $(PYTHON_WORD) util/setup.py \