From patchwork Thu Mar 31 08:24:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 12796846 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5A2B2C433EF for ; Thu, 31 Mar 2022 08:24:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232711AbiCaI0c (ORCPT ); Thu, 31 Mar 2022 04:26:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232758AbiCaI03 (ORCPT ); Thu, 31 Mar 2022 04:26:29 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2C7D57494; Thu, 31 Mar 2022 01:24:37 -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 ams.source.kernel.org (Postfix) with ESMTPS id 77CD6B81FE2; Thu, 31 Mar 2022 08:24:36 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 220F1C340ED; Thu, 31 Mar 2022 08:24:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1648715075; bh=jLjZOnXI/ACGnxXl3tZNcFkD6L1cKyv9i4IjbKr7Ueg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QwVpjamY9mYUgvW0d/8/WpYGLGvI60EkqDIwxeT2m3TRr3GjGx1sQi6wTA4t5+rbA J6pOEBjndq2T5Fic/nNNpNyF2ccxR9dHSuWM5e7igzVA9mI2PRk9yx8UnekVpOrsjY lVZMW3CGc2bDTBoH70wxSi+EgBt79pkkUYDd52SpOVQEViUryfmkI/O+dteVKD/kHs r44Fw6Ncj07p3SplNFNPciMQs2EluxF9BZI9dHzZrxAYrWxYmLuU8kZ474SKoGGLi/ EJkJ963ORnLI10dOZBdPWoziSkdE3gyzYSGzgg66IJOyOHSoMHmIdAf3nMzDNn20yy fAaCC0fu3Wuhw== From: Masami Hiramatsu To: Steven Rostedt Cc: Masami Hiramatsu , Padmanabha Srinivasaiah , LKML , Jonathan Corbet , linux-doc@vger.kernel.org, Randy Dunlap , Nick Desaulniers , Sami Tolvanen , Nathan Chancellor , llvm@lists.linux.dev, Masahiro Yamada , Linux Kbuild mailing list Subject: [PATCH v7 1/4] bootconfig: Make the bootconfig.o as a normal object file Date: Thu, 31 Mar 2022 17:24:29 +0900 Message-Id: <164871506921.178991.16611183818516468043.stgit@devnote2> X-Mailer: git-send-email 2.25.1 In-Reply-To: <164871505771.178991.7870442736805590948.stgit@devnote2> References: <164871505771.178991.7870442736805590948.stgit@devnote2> User-Agent: StGit/0.19 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Since the APIs defined in the bootconfig.o are not individually used, it is meaningless to build it as library by lib-y. Use obj-y for that. Reported-by: Masahiro Yamada Signed-off-by: Masami Hiramatsu --- Changes in v6: - Newly added. --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 6b9ffc1bd1ee..08053df16c7c 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -279,7 +279,7 @@ $(foreach file, $(libfdt_files), \ $(eval CFLAGS_$(file) = -I $(srctree)/scripts/dtc/libfdt)) lib-$(CONFIG_LIBFDT) += $(libfdt_files) -lib-$(CONFIG_BOOT_CONFIG) += bootconfig.o +obj-$(CONFIG_BOOT_CONFIG) += bootconfig.o obj-$(CONFIG_RBTREE_TEST) += rbtree_test.o obj-$(CONFIG_INTERVAL_TREE_TEST) += interval_tree_test.o