Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 98CE7C48BE7 for ; Tue, 9 Jul 2019 11:46:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6AB7C21537 for ; Tue, 9 Jul 2019 11:46:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="vI0HVHl7" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726030AbfGILqG (ORCPT ); Tue, 9 Jul 2019 07:46:06 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:35066 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726010AbfGILqG (ORCPT ); Tue, 9 Jul 2019 07:46:06 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x69BjLp0027144; Tue, 9 Jul 2019 06:45:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562672721; bh=wQ3UAeu8W6N9X1ldbP7KTlrtlb9hPFCas/j9VAW9g/A=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=vI0HVHl7U8de7/1nn3E2diLlOmdpiRme48pbvVDFFFhuft/2c/PnREo6q33jq5kWT ZBujdEwCEqNWNaXFSnpv+vC8diWzvnt/91qnkIaTKMWxwKke3VUiW36nFXv2oi8m8G t2QTKp/E8lrAgvHSBSm82XX0qYZAbzq2X6gAyUMM= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x69BjLAR121698 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 9 Jul 2019 06:45:21 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 9 Jul 2019 06:45:21 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 9 Jul 2019 06:45:21 -0500 Received: from [172.24.190.233] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x69BjINn030406; Tue, 9 Jul 2019 06:45:19 -0500 Subject: Re: [PATCH v1] tools: PCI: Fix installation when `make tools/pci_install` To: Andy Shevchenko CC: Lorenzo Pieralisi , , Jean-Jacques Hiblot , Arnaldo Carvalho de Melo References: <20190628133326.18203-1-andriy.shevchenko@linux.intel.com> <20190705162358.GA3080@e121166-lin.cambridge.arm.com> <20190705170853.GG9224@smile.fi.intel.com> <7c48dbae-847b-812d-88f3-7336686bd46e@ti.com> <20190709113822.GV9224@smile.fi.intel.com> From: Kishon Vijay Abraham I Message-ID: <2bc03df8-f07f-d25a-dd95-19e109c151db@ti.com> Date: Tue, 9 Jul 2019 17:13:39 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190709113822.GV9224@smile.fi.intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org Hi, On 09/07/19 5:08 PM, Andy Shevchenko wrote: > On Tue, Jul 09, 2019 at 04:48:57PM +0530, Kishon Vijay Abraham I wrote: >> Hi, >> >> On 05/07/19 10:38 PM, Andy Shevchenko wrote: >>> On Fri, Jul 05, 2019 at 05:23:58PM +0100, Lorenzo Pieralisi wrote: >>>> On Fri, Jun 28, 2019 at 04:33:26PM +0300, Andy Shevchenko wrote: >>>>> The commit c9a707875053 ("tools pci: Do not delete pcitest.sh in 'make clean'") >>>>> fixed a `make tools clean` issue and simultaneously brought a regression >>>>> to the installation process: >>>>> >>>>> for script in .../tools/pci/pcitest.sh; do \ >>>>> install $script .../usr/usr/bin; \ >>>>> done >>>>> install: cannot stat '.../tools/pci/pcitest.sh': No such file or directory >>>>> >>>>> Here is the missed part of the fix. >>>> >>>> Sigh, hopefully that's the last fix :), Kishon if that's OK mind >>>> ACKing it please ? >>> >>> From my side, yes. Now it works as I expect. >>> >>> Honestly, I'm puzzled how so many errors has been pushed upstream... >> >> I'm not sure why, but I don't see any issue without this patch as well. Am I >> missing something here? > > Yes. > I'm not contaminate my Linux kernel tree with any build stuff, so, I'm using > the folder which is out to the build, i.e. > > % make O=/xyz ... Okay, got it. Thanks Kishon > >> I'm copy pasting the steps below. >> >> a0393678@a0393678ub:~/repos/linux/tools/pci$ make clean >> rm -f pcitest >> rm -rf include/ >> find . -name '*.o' -delete -o -name '\.*.d' -delete >> a0393678@a0393678ub:~/repos/linux/tools/pci$ make >> mkdir -p include/linux/ 2>&1 || true >> ln -sf /home/a0393678/repos/linux/tools/pci/../../include/uapi/linux/pcitest.h >> include/linux/ >> make -f /home/a0393678/repos/linux/tools/build/Makefile.build dir=. obj=pcitest >> make[1]: Entering directory '/home/a0393678/repos/linux/tools/pci' >> CC pcitest.o >> LD pcitest-in.o >> make[1]: Leaving directory '/home/a0393678/repos/linux/tools/pci' >> LINK pcitest >> a0393678@a0393678ub:~/repos/linux/tools/pci$ sudo make install >> make -f /home/a0393678/repos/linux/tools/build/Makefile.build dir=. obj=pcitest >> install -d -m 755 /usr/bin; \ >> for program in pcitest pcitest.sh; do \ >> install $program /usr/bin; \ >> done; \ >> for script in pcitest.sh; do \ >> install $script /usr/bin; \ >> done >> a0393678@a0393678ub:~/repos/linux/tools/pci$ >> >> Thanks >> Kishon >