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: 8914801 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 9F9AA9F1D3 for ; Fri, 22 Apr 2016 17:48:55 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B516C201C8 for ; Fri, 22 Apr 2016 17:48:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B730F201C0 for ; Fri, 22 Apr 2016 17:48:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932278AbcDVRsx (ORCPT ); Fri, 22 Apr 2016 13:48:53 -0400 Received: from mail-qg0-f44.google.com ([209.85.192.44]:35012 "EHLO mail-qg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932333AbcDVRsw (ORCPT ); Fri, 22 Apr 2016 13:48:52 -0400 Received: by mail-qg0-f44.google.com with SMTP id f74so56373324qge.2 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=Plj1tTe5VgG8WJhxAPWGIk99Gbx+eEA//7+du8g1ELKJXPej83Gbe27h9U5TyTmJvo TPwF2MOWSUo4t/GoYZHa9QMJmn3+h3N7T8ZGUaWpACHBqf3qW4kgXa8pTEcrNGV74gEm Pc2ShROpaR315LxvNJgw5PhrMUjPt46E36gg+LDddKmiwhQmgaPTuLrzFPEXzXUUv3sE MmuaAMo5D98vWPgOy++qp0+THYCBoHxdDapfwHtsRgRTauzUVcNnB0LS3rqfSXnHDtqp d/V8TuULks5g32HLaYtL3ubfbCrwpDKbmSaRNqLYwyyZIyF98oS5OXB99oKWzZcIhIYc uanw== X-Gm-Message-State: AOPr4FWiY78Z/i1HXrLf6SoBfnKdZ5oHOHfKamiTeHmVM1t2UbjA3hMjDtYfph/CYyvk3KY9 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-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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