Received: by 10.192.165.156 with SMTP id m28csp1114975imm; Wed, 11 Apr 2018 12:42:49 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+tfRQCjbAxRUt9IC584PAXVD//9Tx/JY+nGLwZnKySD/6nlzihTXQSnsar6CgTYQ2NhINj X-Received: by 10.101.76.77 with SMTP id l13mr4424097pgr.192.1523475768952; Wed, 11 Apr 2018 12:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523475768; cv=none; d=google.com; s=arc-20160816; b=cmNV3yuvRjF6q4gGVndggFMILSeFWxWYYrEk/L/nJldJiDnGrHM8pmzu7kf8wzLYwe EopUiLxioZbnyBqFGRMlq+lSZdIZpsSfIlCh0kpI7JZO9K2XPSzbxvIaZPr/CwQx06zx BExkvwIUJmnW2gNiRh56Q7xjsJd6px+UijQaogH5slK1lhPRGgd6iAgZ+b/rE3QRghYl mRSV/Lx/iGhhTWv4/r8qr9JEQE29l3gX2PFcBeAgvPzJxlJSTcTnLeKYAXzbroeRKPOJ tUvYe1PoqwljMK4mNGhcQjFdlKqJaacnbSbvf+gbyl0kZN7Kc9EdNImvIce6i4y6LTnu EW5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=kOrEwwoQRytbDax/ftDB048dY7c9JHiI7RPdwDtqxN8=; b=hiXWvChu3RXNXATNbk2Ow0Qebz1f3cwuovTWsfnYq1/vWyqaGQkaXqBRInTSk+yj+F Pi9KF+ir/VtOKPIqi7UTltBqJA8umH1qS4qq8wL74LXSgL++ALRox1vUKH9BK8wt0MG2 +FflrL7ndU1HREFKuRhvXmFZQcmHnd694XlDoVT6vgp1375Y3YL4aqTpYlz4q6LtmOzB /qEkTAEpF80bGtl1wOvf/MgcpX7JS2bFpf6Jwj6n5o3HJ4w45gNA1selRFCQ5+jlwklv hrmPltj8tL+HfSP89ns9q7na+5PJC5JTzYe4jEc0gfQzYOr9tEX7eByQ12nVo+HNsxuX 3FXA== 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 l3-v6si1727582pld.638.2018.04.11.12.42.12; Wed, 11 Apr 2018 12:42:48 -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 S934359AbeDKTCC (ORCPT + 99 others); Wed, 11 Apr 2018 15:02:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38370 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933585AbeDKTB7 (ORCPT ); Wed, 11 Apr 2018 15:01:59 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9CB8FDAC; Wed, 11 Apr 2018 19:01:58 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Robert Jarzmik , Masahiro Yamada , Sasha Levin Subject: [PATCH 4.9 203/310] tags: honor COMPILED_SOURCE with apart output directory Date: Wed, 11 Apr 2018 20:35:42 +0200 Message-Id: <20180411183631.308317946@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Robert Jarzmik [ Upstream commit cbf52a3e6a8a92beec6e0c70abf4111cd8f8faf7 ] When the kernel is compiled with an "O=" argument, the object files are not in the source tree, but in the build tree. This patch fixes O= build by looking for object files in the build tree. Fixes: 923e02ecf3f8 ("scripts/tags.sh: Support compiled source") Signed-off-by: Robert Jarzmik Signed-off-by: Masahiro Yamada Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- scripts/tags.sh | 1 + 1 file changed, 1 insertion(+) --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -106,6 +106,7 @@ all_compiled_sources() case "$i" in *.[cS]) j=${i/\.[cS]/\.o} + j="${j#$tree}" if [ -e $j ]; then echo $i fi