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: 50043 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 60A8622903 for ; Thu, 18 Jun 2015 12:52:17 +0000 (UTC) Received: by labsp1 with SMTP id sp1sf21284979lab.3 for ; Thu, 18 Jun 2015 05:52:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=Etd2Sa89bEoqCZZ51ghzEv6Vg18ZOgph2f1wrQ8U6QM=; b=in/rBFQVvj94WbN1/4pxkJFxjSuR86Nc3LPbvUqeqsDdEIzjynPjhUpEvXuCbWNv+9 zcMmwfDXJmr91ALCfWZzJe7oTEvoC3cRcV5FRVgjNxB36dxOwarPSsmKZjsd57vrDVSH dcL8YYZo6hP3Bb5QzhIYbqhH/adwazu8FwTdbF6rUpv1nRC8AB5Wiir5WkTCVS3nS2/F 3B77MjlY+vl6Ky1nWGRCsmdy/EtHE1ASfukRimvXz6jzVSuY0m3imkasyuPOM2MGLev8 i8J2zv7ylduUhwIKpKxowatDnBa8iodpH57QWxW+KWTHizvr41tuKact7dGhCZgWIlU4 oK+g== X-Gm-Message-State: ALoCoQmMnd6m4M2D+zYirYsuTfcTFTjNa4TqDTUG6vNa585+2iAgfrmnsKJ+WhFY/NbR0RgCjHjA X-Received: by 10.180.182.49 with SMTP id eb17mr24618197wic.2.1434631936298; Thu, 18 Jun 2015 05:52:16 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.242.2 with SMTP id wm2ls142710lac.38.gmail; Thu, 18 Jun 2015 05:52:16 -0700 (PDT) X-Received: by 10.152.27.197 with SMTP id v5mr12707570lag.23.1434631936055; Thu, 18 Jun 2015 05:52:16 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id ax10si6389880lbc.94.2015.06.18.05.52.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 05:52:16 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by labko7 with SMTP id ko7so53803928lab.2 for ; Thu, 18 Jun 2015 05:52:15 -0700 (PDT) X-Received: by 10.112.155.197 with SMTP id vy5mr12661261lbb.29.1434631935913; Thu, 18 Jun 2015 05:52:15 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp1161659lbb; Thu, 18 Jun 2015 05:52:14 -0700 (PDT) X-Received: by 10.68.228.168 with SMTP id sj8mr20803823pbc.102.1434631934147; Thu, 18 Jun 2015 05:52:14 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zn2si11224080pbc.102.2015.06.18.05.52.11; Thu, 18 Jun 2015 05:52:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754823AbbFRMwH (ORCPT + 30 others); Thu, 18 Jun 2015 08:52:07 -0400 Received: from mail-lb0-f173.google.com ([209.85.217.173]:35840 "EHLO mail-lb0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbbFRMv7 (ORCPT ); Thu, 18 Jun 2015 08:51:59 -0400 Received: by lbbqq2 with SMTP id qq2so51554179lbb.3 for ; Thu, 18 Jun 2015 05:51:57 -0700 (PDT) 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-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: riku.voipio@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 \