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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9D28AC6FD1C for ; Sat, 11 Mar 2023 19:35:47 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id ECAEC85FF8; Sat, 11 Mar 2023 20:35:43 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="L7m49cfZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6CC1C85FF2; Sat, 11 Mar 2023 20:35:40 +0100 (CET) Received: from mail-io1-xd36.google.com (mail-io1-xd36.google.com [IPv6:2607:f8b0:4864:20::d36]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2B03B85FEC for ; Sat, 11 Mar 2023 20:35:36 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd36.google.com with SMTP id m22so3443912ioy.4 for ; Sat, 11 Mar 2023 11:35:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1678563334; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8tYM/G6iMMTYrupgyaPowCtu5Uwo8kL61tjri6Ein50=; b=L7m49cfZc9VRfKFZI4G1sNP5jgmiINqP0UdL7kwSEIe6VoHeJ37oEL4tRJ0cBh1euD wNADMU+3GK6OEOHKc8zbSTWfM6qWnIIddnAE27gZO1Np2oVu3dPFfrOfKYGZfc6NvieU qxD2ERJcoBiT+30321SclrYXbxDOFHRWSGImA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678563334; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8tYM/G6iMMTYrupgyaPowCtu5Uwo8kL61tjri6Ein50=; b=b6kUq/7098Ajzz5EQaLSmWMdukesDXjkNBWxRwuw1v1EEowDhpnvc8a3l2V+h1LI/f 8RN0VSl1BKFZdo24sRWdOuda6QHWZ3ntL3i/Bpxa5XFhNF0sRRZ5Udm69c1HIKyMlXtZ Pe5QbBpt+p78Oxx/i8By4iNORx/uSmaQMZxUaTUb5yE+CnB3O1lokMXOZXV4SmDDN6pe zi83HZKgCyIKk/mug7x+1YmLQl17jburTAtM2+sJ33r6xv0pxqmyhjcoBVq802eQ28Hj qs/ykYqK3PhfernCYyKLqq5FYrMTX5B/PhkU8alXwTqoevVJDGJeyEm4fDrSzVlhFxqv VPqA== X-Gm-Message-State: AO0yUKVIMIc2FXpaBgljQFeCOAAO/mdDyvzjBCR7IeWY9+CmC+SdOjyy 7pSCVuOTGdYktHMs7qFbiIrDkb9HhCq9e4zD1iA= X-Google-Smtp-Source: AK7set+RqOQ86c77uiQRHlPAzqDj1ftO33rdz2NId7K9mPAAm+CsOTAHzeLsU2XTm2Tzafo8CtDWEg== X-Received: by 2002:a5d:9497:0:b0:71a:1b72:5afc with SMTP id v23-20020a5d9497000000b0071a1b725afcmr20545291ioj.19.1678563334572; Sat, 11 Mar 2023 11:35:34 -0800 (PST) Received: from sjg1.roam.corp.google.com (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id u14-20020a02c04e000000b003c51ac57342sm1066129jam.126.2023.03.11.11.35.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 11:35:34 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Masahiro Yamada Subject: [RFC PATCH 2/2] kconfig: U-Boot additions Date: Sat, 11 Mar 2023 11:35:22 -0800 Message-Id: <20230311193522.534464-3-sjg@chromium.org> X-Mailer: git-send-email 2.40.0.rc1.284.g88254d51c5-goog In-Reply-To: <20230311193522.534464-1-sjg@chromium.org> References: <20230311193522.534464-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Bring in some U-Boot additions This seems to build OK, but 'make menuconfig' does not build the scripts/kconfig/mconf utility. Signed-off-by: Simon Glass --- scripts/kconfig/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index af1c96198f49..6249afec12af 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -3,6 +3,12 @@ # Kernel configuration targets # These targets are used from top-level makefile +# Added for U-Boot +# Linux has defconfig files in arch/$(SRCARCH)/configs/, +# on the other hand, U-Boot does in configs/. +# Set SRCARCH to .. fake this Makefile. +SRCARCH := .. + ifdef KBUILD_KCONFIG Kconfig := $(KBUILD_KCONFIG) else @@ -93,6 +99,10 @@ endif %_defconfig: $(obj)/conf $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) +# Added for U-Boot (backward compatibility) +%_config: %_defconfig + @: + configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@) %.config: $(obj)/conf -- 2.40.0.rc1.284.g88254d51c5-goog