From patchwork Sun Aug 2 22:59:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1340049 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=j1vf82wH; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BKc4R3KnYz9sRN for ; Mon, 3 Aug 2020 09:03:03 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 028D981F3C; Mon, 3 Aug 2020 01:02:54 +0200 (CEST) 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="j1vf82wH"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6344981B88; Mon, 3 Aug 2020 01:02:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ot1-x344.google.com (mail-ot1-x344.google.com [IPv6:2607:f8b0:4864:20::344]) (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 8890E81D6D for ; Mon, 3 Aug 2020 01:00:59 +0200 (CEST) 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-ot1-x344.google.com with SMTP id r21so16091482ota.10 for ; Sun, 02 Aug 2020 16:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cCR36D/ApE2FtM20ha3XvkyEMng5k1NBw4dFxYor1wE=; b=j1vf82wHMpjBpY+Jgs+EXA18QFO++EolruBlCmnhUHStjH2gVqiq8MKj7lHC1+Iy7u 6pwrETxHShgakD04YcLlKMOFk/ujvlq558JU8HQa53ncsCCRIPRhrYWfPa3IvXmRGfTL m2Ww9rUnekBQZIxEuyYSAYBjllBnX4n1+ZXG8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=cCR36D/ApE2FtM20ha3XvkyEMng5k1NBw4dFxYor1wE=; b=I0LWjTFQrbUMahUx++5sQxu5DUx6HMQELURW3/moocWvDwuEaJhImlptdZTmrO1DcJ y5LZ4na4r/VUKE/h54gj8u7WNXKpoeZM6T+pBiuU5mIvLe9sQPlvu7X5NyI7ENTAkc6Z 8z5jqj7CfTeQW3NKJpBFtgrLPxIzn6Cqu7cYzqGnaeXNPjgprFKvvBlBfvV+bQrb3nwK dAhvdUBTihusDITQdBfVvoV+e71Ul6gTzItRs2ux41DIrNGsFmk0kSnH6f1lSrdCu/dc CNXT/o5/NPoS4mHvmZEFpPWFPCAHt4NhgJvpO7+EK+qpoUlS8QPCnO+F5S75Juew74Tz lr3w== X-Gm-Message-State: AOAM5325xIX2G3aj6MiLMlyLAnCvUlUly1agzCHtevsTw/MZ8N24o1sh kBcT0Erum1NnjsKeALlm1w6Kb88/eVBgvA== X-Google-Smtp-Source: ABdhPJzykFpUwRptgjIi/2PxrMaAgxeR4shBXjaP3JnSNk0NBBTW96JZjOgBaF+WOEK55uX1xbHGRQ== X-Received: by 2002:a9d:6315:: with SMTP id q21mr12341215otk.231.1596409258113; Sun, 02 Aug 2020 16:00:58 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id i5sm2572245otc.31.2020.08.02.16.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Aug 2020 16:00:57 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Masahiro Yamada Subject: [PATCH 16/16] Makefile: Drop linux/kconfig.h from config.h Date: Sun, 2 Aug 2020 16:59:40 -0600 Message-Id: <20200802225940.51457-17-sjg@chromium.org> X-Mailer: git-send-email 2.28.0.163.g6104cc2f0b6-goog In-Reply-To: <20200802225940.51457-1-sjg@chromium.org> References: <20200802225940.51457-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean This header always included by the build system (see UBOOTINCLUDE) except when building tools, so is unnecessary. Drop it and update the documentation in the common.h header. Tools generally should not make use of the board config, but a few do. Update the Atmel pmecc tool to cope with this. Signed-off-by: Simon Glass --- scripts/Makefile.autoconf | 8 ++------ tools/atmel_pmecc_params.c | 1 + 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/scripts/Makefile.autoconf b/scripts/Makefile.autoconf index a0f6783bc7d..0339cef1d91 100644 --- a/scripts/Makefile.autoconf +++ b/scripts/Makefile.autoconf @@ -105,17 +105,14 @@ tpl/include/autoconf.mk: tpl/u-boot.cfg # 2. #include # 3. #include # 4. #include -# 5. #include -# 6. #include +# 5. #include # # 1 should be able to move to Kconfig # 2 should be removed by tidying up a few Kconfig items # 3 uses CONFIG_SYS_CONFIG_NAME and will go away when Kconfig migration is # completed and all files in include/configs are removed # 4 should be removed when all CONFIG options in those files move to Kconfig -# 5 is automatically included by the build system (see UBOOTINCLUDE) so is -# already unnecessary -# 6 should be removed by tidying up a few Kconfig items +# 5 should be removed by tidying up a few Kconfig items # # So all of the above should eventually go away define filechk_config_h @@ -128,7 +125,6 @@ define filechk_config_h echo \#include \; \ echo \#include \; \ echo \#include \; \ - echo \#include \; \ echo \#include \;) endef diff --git a/tools/atmel_pmecc_params.c b/tools/atmel_pmecc_params.c index a4ae03f0fd4..bb203427aa0 100644 --- a/tools/atmel_pmecc_params.c +++ b/tools/atmel_pmecc_params.c @@ -14,6 +14,7 @@ #include #include +#include static int pmecc_get_ecc_bytes(int cap, int sector_size) {