Received: by 10.213.65.68 with SMTP id h4csp145585imn; Tue, 27 Mar 2018 18:56:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48oeuJ6gCdF5mCOnjkzhBN8mZ0EVQC/8esP23K1wbSqVmaCPfYiIHr4fbdbRSF4EO43pGAZ X-Received: by 2002:a17:902:bf43:: with SMTP id u3-v6mr1656325pls.227.1522202169770; Tue, 27 Mar 2018 18:56:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522202169; cv=none; d=google.com; s=arc-20160816; b=mDKWFqTCBaKPAffWRXQICQCu/e8y1Mtj9/U0EY93ZFcHht4he0kefpjEIeleJbdKbW h8lhtEgHqrYIe9FCaDMbGD9RyfX3m6T34+8k6wjbjzyi+mmyyHOASqCHmjBetQPXgD5e Dhy17ZGZVqGzvTraMyiNq8uAF8k1uwHTrk4PL2Km80XXlERg6VM/9YdcgUmc7UNON6Hl Ni8qORWPAigf35rscuwxpZOUzvlhmoogsr6yzokbuV9pmzHhk87VL32WtnjILpjXF2zu DPAythKm++4ioPOzkVSvVOfN8WHcM6vLSSVIV8073AgZ44gcHi4IWg91DdOVAwpEJLQd 9CzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=WYumiS9+jo0MuC/ZwxvTAPIW5F1tjfkQ1OmXiBl4wkA=; b=VNelLyON/f3OSJA4nH8UXnQauxLk2WW6Jph5orjODtU9SX8kVHgjX3ZkgK95hKPOeP wiiLS/WARXgarMdl9TZhCOQrwtcdinzmymlQpcLR8NPOIdSzGpcH/Mw/KbgnPOMuY74J F49k9lXT21yz9lxJ3Uvb8fHL0gTVHoEgusNmC8Sqf5XyP3opLy9ttWTQ4wZN87jL1NeP laozpAC0MuWhhGwXipbliCBYg73lH4Yw6aoNOarzpQmrdzvrBQ3f8h14Bx8t22xkbsEG 32M9KonbojKGZq4KBavdsFaJrC3zXIuP90KPsirZJ2OL+iZ/az0u9e0deYmrvj8j0LiF tUsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s17si1713252pgq.421.2018.03.27.18.55.46; Tue, 27 Mar 2018 18:56:09 -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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752618AbeC1Byv (ORCPT + 99 others); Tue, 27 Mar 2018 21:54:51 -0400 Received: from mga03.intel.com ([134.134.136.65]:55246 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752311AbeC1Byu (ORCPT ); Tue, 27 Mar 2018 21:54:50 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Mar 2018 18:54:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,369,1517904000"; d="scan'208";a="42756744" Received: from gvt-dell.bj.intel.com (HELO intel.com) ([10.238.154.59]) by orsmga001.jf.intel.com with SMTP; 27 Mar 2018 18:54:48 -0700 Date: Wed, 28 Mar 2018 09:45:25 +0800 From: "Du, Changbin" To: Shuah Khan Cc: changbin.du@intel.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan Subject: Re: [PATCH v2 1/4] selftests/Makefile: append a slash to env variable OUTPUT Message-ID: <20180328014525.bl3iih4xvo74wedb@intel.com> References: <1522120294-24926-1-git-send-email-changbin.du@intel.com> <1522120294-24926-2-git-send-email-changbin.du@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323-6-5ca392 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 27, 2018 at 03:19:26PM -0600, Shuah Khan wrote: > On 03/26/2018 09:11 PM, changbin.du@intel.com wrote: > > From: Changbin Du > > > > The tools/build/Makefile.build use 'OUTPUT' variable as below example: > > objprefix := $(subst ./,,$(OUTPUT)$(dir)/) > > > > So it requires the 'OUTPUT' already has a slash at the end. > > > > This patch can kill below odd paths: > > make[3]: Entering directory '/home/changbin/work/linux/tools/gpio' > > CC /home/changbin/work/linux/tools/testing/selftests/gpiolsgpio.o > > CC /home/changbin/work/linux/tools/testing/selftests/gpiogpio-utils.o > > LD /home/changbin/work/linux/tools/testing/selftests/gpiolsgpio-in.o > > > > A correct path should be: > > /home/changbin/work/linux/tools/testing/selftests/gpio/lsgpio.o > > > > Signed-off-by: Changbin Du > > Are you seeing this when you run "make kselftest" - if gpio is the > only test compile that fails, it should be fixed in gpio/Makefile, > not is the common Makefile. > I only saw error in gpio, but I also saw some kselftest Makefiles having string concatenation as '$(OUTPUT)$(dir)'. So the rule is not aligned all over. They just didn't produce any errors so far. By the way, is there a basic test for kselftest infrastructure? It seems it was always reporting error when building it :( > thanks, > -- Shuah -- Thanks, Changbin Du