From patchwork Fri Apr 22 17:48:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 66492 Delivered-To: patch@linaro.org Received: by 10.140.93.198 with SMTP id d64csp854094qge; Fri, 22 Apr 2016 10:48:56 -0700 (PDT) X-Received: by 10.98.13.88 with SMTP id v85mr30015610pfi.150.1461347336232; Fri, 22 Apr 2016 10:48:56 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si7939873pfi.16.2016.04.22.10.48.55; Fri, 22 Apr 2016 10:48:56 -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; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932486AbcDVRsy (ORCPT + 29 others); Fri, 22 Apr 2016 13:48:54 -0400 Received: from mail-qg0-f47.google.com ([209.85.192.47]:34668 "EHLO mail-qg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932354AbcDVRsw (ORCPT ); Fri, 22 Apr 2016 13:48:52 -0400 Received: by mail-qg0-f47.google.com with SMTP id c6so63733857qga.1 for ; Fri, 22 Apr 2016 10:48:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=gxL77furobLjZyNC8TkOsl1bS3aL7Bbdu+vKSwsG6fw=; b=iad1aAgApw79zv9ELh0IJ9PYMeKqaDnuFj0Im89SQJa05CJFzaWDI5hlLFvD9eecfY cdHzv6XCiUR61JD01SY2z4GUIn/3HVEeOe5IRZqOLM0JkEJHJac0WjlgK5omgpwuXsh/ dRBIpP5Va4W02GLmLhQSNmQ4Fkx/1kp04mOsQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=gxL77furobLjZyNC8TkOsl1bS3aL7Bbdu+vKSwsG6fw=; b=Wgvd4m9hNmC4G5vqYX7p8H4k+SskmuHs/fxSSLLhW9R/ZmiKq/AoIDvBd91RkPutTv y9euWvq2vyxrP4npS6tbsa1H4RwIx4wAutTDjdIwe638EUOQ+ma1F3/x+i0gaGooQBgY EtWd9V+AHY8lif7Xmkq9jjziZl8GJTtCykCdnHaDmgzNmcdJg3sKx4PL4uwDnVxia8ej HeC5Hr5b8Z5PMr2rDUaIC53cqBZrjcgzcGnWbf1CUdKnOQnIFNyxXS7GvKl6qzjQ5ecz L/Y5nAhfXik8hf5U+F39KCrjeGmquAOu/h8mwyQeJQmPvFE8/r1VRJXHVf1Qxn7irv6w o/PA== X-Gm-Message-State: AOPr4FX2AZDR+/EqYaMns9hU+FE8SHGWm7X7F7PqqECH39L8XhEKbL0aDXHAP7kxe5836aNP X-Received: by 10.140.109.100 with SMTP id k91mr22826684qgf.54.1461347331013; Fri, 22 Apr 2016 10:48:51 -0700 (PDT) Received: from xanadu.home ([2607:fa48:6e39:d410:feaa:14ff:fea7:ed77]) by smtp.gmail.com with ESMTPSA id 13sm2832462qgt.8.2016.04.22.10.48.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Apr 2016 10:48:49 -0700 (PDT) Date: Fri, 22 Apr 2016 13:48:48 -0400 (EDT) From: Nicolas Pitre To: Randy Dunlap cc: Stephen Rothwell , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild , Michal Marek Subject: Re: linux-next: Tree for Apr 22 (adjust_autoksyms.sh) In-Reply-To: <571A56C4.7030907@infradead.org> Message-ID: References: <20160422153503.24aa389e@canb.auug.org.au> <571A56C4.7030907@infradead.org> User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 22 Apr 2016, Randy Dunlap wrote: > on x86_64: > > I'm seeing: > > /bin/sh: scripts/adjust_autoksyms.sh: No such file or directory > /local/lnx/next/linux-next-20160422/Makefile:937: recipe for target 'vmlinux' failed > > when using O=subdir for the build output directory. > > > Is there a missing $(objtree) somewhere? Rather a $(srctree). Please try the patch below. ----- >8 Subject: [PATCH] kbuild: fix CONFIG_TRIM_UNUSED_KSYMS=y with a separate output directory This fixes the following: /bin/sh: scripts/adjust_autoksyms.sh: No such file or directory Signed-off-by: Nicolas Pitre diff --git a/Makefile b/Makefile index e3af48068c..e9ad498238 100644 --- a/Makefile +++ b/Makefile @@ -934,7 +934,7 @@ quiet_cmd_link-vmlinux = LINK $@ # execute if the rest of the kernel build went well. vmlinux: scripts/link-vmlinux.sh $(vmlinux-deps) FORCE ifdef CONFIG_TRIM_UNUSED_KSYMS - $(Q)$(CONFIG_SHELL) scripts/adjust_autoksyms.sh \ + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \ "$(MAKE) KBUILD_MODULES=1 -f $(srctree)/Makefile autoksyms_recursive" endif ifdef CONFIG_HEADERS_CHECK @@ -949,13 +949,13 @@ endif +$(call if_changed,link-vmlinux) autoksyms_recursive: $(vmlinux-deps) - $(Q)$(CONFIG_SHELL) scripts/adjust_autoksyms.sh \ + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh \ "$(MAKE) KBUILD_MODULES=1 -f $(srctree)/Makefile autoksyms_recursive" PHONY += autoksyms_recursive # standalone target for easier testing include/generated/autoksyms.h: FORCE - $(Q)$(CONFIG_SHELL) scripts/adjust_autoksyms.sh true + $(Q)$(CONFIG_SHELL) $(srctree)/scripts/adjust_autoksyms.sh true # Build samples along the rest of the kernel ifdef CONFIG_SAMPLES