From patchwork Wed Apr 7 04:32:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1463154 X-Patchwork-Delegate: bmeng.cn@gmail.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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) 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=iRvJorq4; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4FFWmD5DTSz9sV5 for ; Wed, 7 Apr 2021 14:35:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 986D181780; Wed, 7 Apr 2021 06:33:56 +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="iRvJorq4"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 75646819C3; Wed, 7 Apr 2021 06:33:34 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (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 A8488817A5 for ; Wed, 7 Apr 2021 06:33:25 +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-pl1-x62c.google.com with SMTP id a6so5366324pls.1 for ; Tue, 06 Apr 2021 21:33:25 -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=ej3e8n08xV1FKPTDjRtEbPaKkeypp2wlX6w0evLpXUk=; b=iRvJorq4GBzyGJi+HjGQe5z85iv+mhNO5v9x4l7Eks1TS2lMZ9vZyhU04nHWLSNW9w VyRcd/FcA6TmNLUXfYDy/QoEdjmi+s0Lvz2hl4W3gmbKqkfSuyTAlFqbNDJnYJLG0wkK mEHytJmBoRRGX3o7KksHX4WW+6ILjG0frTCnQ= 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=ej3e8n08xV1FKPTDjRtEbPaKkeypp2wlX6w0evLpXUk=; b=XhOLkqfuH9RsdPeQG5VuEDkuKm4M5hPIhy2gE5lS4tfTdJVKJ+CDL0CmEWhvgw88mo xmZ8uMuX8mH7cjQ4cGHPxtGI/l24sFsyeTWbtnH8wIOGGpv9yfkPP09qfUCGnuYG7Itr 2IOAqr62JuShzt6pjXoMwAbtnQUsm70skNt+0AVl62YwGjHpHbM6+TCqDQi8Q1J2vNvl QjK297NODkZlQYYkcsaRdoelXOdCe8sTSuo6h9wHKNzfjfaML4HmGdgYEAT059r4Qrs4 Z64kmJxno0hQIRo11RjmRcvSsAsKLuHtIaNMBaSHlAmQfL1deM7LSRCAs6oK3vFokDUX Qd2w== X-Gm-Message-State: AOAM530LxUa0fCllM+Xyucj2zKZ9YF/7RkizIUu8Sfxw/M2QMZZlPB66 qmm/CLQWE+DONj/Fvud1OR/58KKxmQ+zpw== X-Google-Smtp-Source: ABdhPJwxI0Ix0IZ+dGLsDDPkSx6LHDKAqhHOWLl7D6uy4uOKPhGfkmUzgsEZQcP+9ZuP7YvlZUSNwA== X-Received: by 2002:a17:903:2490:b029:e6:faf5:86df with SMTP id p16-20020a1709032490b02900e6faf586dfmr1283139plw.69.1617770004077; Tue, 06 Apr 2021 21:33:24 -0700 (PDT) Received: from localhost.localdomain (118-93-106-206.dsl.dyn.ihug.co.nz. [118.93.106.206]) by smtp.gmail.com with ESMTPSA id k21sm19968918pfi.28.2021.04.06.21.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 21:33:23 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Simon Glass , Bin Meng Subject: [PATCH 12/17] x86: coreboot: Use vendor in the Kconfig Date: Wed, 7 Apr 2021 16:32:22 +1200 Message-Id: <20210407163159.12.Ic028f6df43c9740024371590bbe8ea1be27ec45f@changeid> X-Mailer: git-send-email 2.31.0.208.g409f899ff0-goog In-Reply-To: <20210407043228.2268429-1-sjg@chromium.org> References: <20210407043228.2268429-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.4 at phobos.denx.de X-Virus-Status: Clean Use VENDOR_COREBOOT instead of TARGET_COREBOOT so we can have multiple coreboot boards, sharing options. Only SYS_CONFIG_NAME needs to be defined TARGET_COREBOOT. Signed-off-by: Simon Glass --- arch/x86/cpu/coreboot/Kconfig | 2 +- board/coreboot/coreboot/Kconfig | 12 ++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/x86/cpu/coreboot/Kconfig b/arch/x86/cpu/coreboot/Kconfig index 497d6284ac1..b97c2779041 100644 --- a/arch/x86/cpu/coreboot/Kconfig +++ b/arch/x86/cpu/coreboot/Kconfig @@ -1,4 +1,4 @@ -if TARGET_COREBOOT +if VENDOR_COREBOOT config SYS_COREBOOT bool diff --git a/board/coreboot/coreboot/Kconfig b/board/coreboot/coreboot/Kconfig index 5bd6465d989..05e9b3b6f75 100644 --- a/board/coreboot/coreboot/Kconfig +++ b/board/coreboot/coreboot/Kconfig @@ -1,4 +1,4 @@ -if TARGET_COREBOOT +if VENDOR_COREBOOT config SYS_BOARD default "coreboot" @@ -9,9 +9,6 @@ config SYS_VENDOR config SYS_SOC default "coreboot" -config SYS_CONFIG_NAME - default "coreboot" - config SYS_TEXT_BASE default 0x01110000 @@ -31,4 +28,11 @@ config SYS_CAR_SIZE help This option specifies the board specific Cache-As-RAM (CAR) size. +endif # CONFIG_VENDOR_COREBOOT + +if TARGET_COREBOOT + +config SYS_CONFIG_NAME + default "coreboot" + endif