Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1163696rwi; Fri, 14 Oct 2022 14:00:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5e8nSVZ5sBPHY0KySTRlTiPHi50yLr9VVdeEVXLaHM90lVo45U5ldB4STpjxCCtAG5LgiB X-Received: by 2002:a05:6402:410:b0:451:ea13:4ed7 with SMTP id q16-20020a056402041000b00451ea134ed7mr6026932edv.262.1665781251964; Fri, 14 Oct 2022 14:00:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665781251; cv=none; d=google.com; s=arc-20160816; b=KTcJIdG4NuO2IuA9jbgcxNBmlJVk8kDXXOxRHFtYH2/qOnLbQkv/JJxRIQLRKLGMT3 S2r3yTD0QY+p8BBM2pzS75wRSgsKGA2h/ode7mK43KDbPbtIomoiArIVKzPkwsj4VL9O uP1ePtZUhWGbt7MhJF9PbSI86KLdSKiTNyNosj6Y+ACngF+P4uzKvqlUEaY2hbuCwStw tLnnY0gDX7YhcKZi1VgYciJfbc0mcLU9D0EQLPmOlp/wNmrniPBpk0QuhxHLcBH3C9AK LKvsVsHcPT/HNNQHZSzz+1I44NEfVmRIGXL+6bN89u/NEEbD6bdyZuykEFMVDPdx+MpC GPBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=rJQW7rGStIaHSIEKaHNhEaOvRNB/X1bEirKIMQKFrcM=; b=S+rJPiu6iN+Odky2Q/eUtryPGvVMOK6kwbxvk4ze3mUwH81SQ94EMTbfCUwvmnIV/p SEJ4GQgr1hYTNjgP6IBG7oRcf0FrfL2asK63f9z4KcV4FM7dzKf+gNKgT9QXXT1WE6P/ YDCfyTNlqrNQatiOIFTrqumly2vXyaQoPxt9aYbUJUtDUZ5Bx5OBLVmkLfhFPn3WuUfz leSSSvE99GBYymL3DFM2hEZCQ8P48BJ04aHaq2+WQgMS6XTpAEr+Jt3LydwWaMDYeRYH FPFt7PQS1OA6t8HBkoN79qdC+NcQ/yXL3s5tYsZNgTluKQC3HiA7YlPsCItDiOHcbAne vs7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UahQdusA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n19-20020a170906165300b0077c5ec87ec2si110397ejd.297.2022.10.14.14.00.24; Fri, 14 Oct 2022 14:00:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=UahQdusA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231132AbiJNUSW (ORCPT + 99 others); Fri, 14 Oct 2022 16:18:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230377AbiJNUSU (ORCPT ); Fri, 14 Oct 2022 16:18:20 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7397F1BFB89; Fri, 14 Oct 2022 13:18:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 660E461BEA; Fri, 14 Oct 2022 20:18:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 819D4C433D6; Fri, 14 Oct 2022 20:18:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665778697; bh=er/JSvL2jSFCE1JJ71zJTUuSPL0SOIkeIx7Z8OFyvsw=; h=From:To:Cc:Subject:Date:From; b=UahQdusAca2FmKC8jMbNiUQ4LFzQ6FX2FlBE/05CTtDYuSRFNj3WjyIHwFVSSbqB0 L1MqxieNmbtcjI9xiJmOOquMl8Gvjmk9/MlwbL6CgbHC7ZzYUA879hex7r9/GQoCyl SFepZlQNjIpUD20seuFGlmgoPL1rRyLc8LAX0OZKgrlQZnW2/0B3bsFKgeVxaHYJIE j/hpvJOU3IY6Rgn76DWtJeNJcF12ekpfj0WA+ddXXrR6olr0ILyrKmsybnSvNfBAIU t5Ot92C44rC4UI5TbYV4tr/EMOACwJW3KwVdqLCg+epNfi9AqzbQPrqRF//0YiQ/RP bDgimq6io/q8w== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , David Sterba , Michal Marek , Nick Desaulniers , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: fix single directory build Date: Sat, 15 Oct 2022 05:18:11 +0900 Message-Id: <20221014201811.1118103-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit f110e5a250e3 ("kbuild: refactor single builds of *.ko") was wrong. KBUILD_MODULES _is_ needed for single builds. Otherwise, "make foo/bar/baz/" does not build module objects at all. Fixes: f110e5a250e3 ("kbuild: refactor single builds of *.ko") Reported-by: David Sterba Signed-off-by: Masahiro Yamada --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 85a63a1d29b3..48a005fc69ca 100644 --- a/Makefile +++ b/Makefile @@ -1978,6 +1978,8 @@ endif single-goals := $(addprefix $(build-dir)/, $(single-no-ko)) +KBUILD_MODULES := 1 + endif # Preset locale variables to speed up the build process. Limit locale -- 2.34.1