From mboxrd@z Thu Jan 1 00:00:00 1970 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 30306C433EF for ; Sun, 30 Jan 2022 15:52:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D883080FD2; Sun, 30 Jan 2022 16:52:34 +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="l6qOjkUe"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 707DA8091B; Sun, 30 Jan 2022 16:52:33 +0100 (CET) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 8CDE180F68 for ; Sun, 30 Jan 2022 16:52:29 +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-xd29.google.com with SMTP id s18so13747465ioa.12 for ; Sun, 30 Jan 2022 07:52:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9mPSk45URp5jedgaRLQOrLkr4M7nuQq8Hs31hxGOR04=; b=l6qOjkUeIa0pqjcJEvFWWUBsTnIdt/18a4EDNuC+fnhSjhxo7O47GeAVbQV4Fi5bdT lTi50FZ3/LeyzXo2GuBK9pFAN0NVXWCZiTIKcgkxXH8+xpTROjU0hw47M5Zl8GGJVkgw spF1zYZHUp/eVviV+sKsXx/9Z8iF16NgmDjlg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9mPSk45URp5jedgaRLQOrLkr4M7nuQq8Hs31hxGOR04=; b=JXpkAvAmHGt9PE9+pYfG58meW0U5/JkON50DYF2jJiRQ2WxrIOugYWJa3XhmZixk5W zDfRTMyF4cIiTCCvGvfst+l36yr2qnwy6NgL3jNhYbPOo3aTNg7LXK+NaK9CZxTvNC6x /jeJEm9bKnAamlOOS4n9551UajY22xMO3ujn/+Jc3vOzwsc5uVdXpwgv4jl4832Jemr4 6Q+AeOgvWx3sKYob8iRMI7Gi2NK0eVG4BiHSz3UnEXuDOadnCNcmfBWvPAvEmHhbAukM 35j3yysyAu+tulZdWha7M8bwn+frpSJya2pGgKNh5jKfzZXHMIA8rppR5M/UCsVzrSYQ APug== X-Gm-Message-State: AOAM532+qBjMpobsP2i4GGe9L0A8CRoT846k7FUcVup2b1Rfl1YuYUzm NPMg40/KiacbRN0PdC7hKYxOuDnapILrbg== X-Google-Smtp-Source: ABdhPJz4bKNoHwJvgEqw2TxL7tb63p5hSSk6C27NisyDmZw59XxCEqIduIH3nPz942/+yOSgYbcRYA== X-Received: by 2002:a02:272d:: with SMTP id g45mr8764117jaa.165.1643557947900; Sun, 30 Jan 2022 07:52:27 -0800 (PST) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id r15sm16657042ilo.25.2022.01.30.07.52.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jan 2022 07:52:27 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Michal Simek , huang lin , Jeffy Chen , Simon Glass , Kever Yang , Philipp Tomsich , "NXP i . MX U-Boot Team" , Masahiro Yamada , Wolfgang Denk Subject: [PATCH v2 1/2] Makefile: Create a file to indicate the config Date: Sun, 30 Jan 2022 08:52:24 -0700 Message-Id: <20220130155225.726890-1-sjg@chromium.org> X-Mailer: git-send-email 2.35.0.rc2.247.g8bbb082509-goog 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.5 at phobos.denx.de X-Virus-Status: Clean At present it is not actually possible to discover the defconfig file that was used to build U-Boot, so far as I can tell. Write this out to a file in the build directory, so this is visible. Signed-off-by: Simon Glass --- (no changes since v1) scripts/kconfig/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 12e525ee31f..83a40c7eb3b 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile @@ -92,8 +92,10 @@ else endif endif +# Write out the defconfig name to a file so we know which board was configured %_defconfig: $(obj)/conf $(Q)$< $(silent) --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) + $(Q)echo $(subst _defconfig,,$@) > .defconfig_name # Added for U-Boot (backward compatibility) %_config: %_defconfig -- 2.35.0.rc2.247.g8bbb082509-goog