From patchwork Sat Feb 4 00:26:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1737390 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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: legolas.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=MTOKs0zX; 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 ECDSA (P-384)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4P7tpc3ZvFz23hd for ; Sat, 4 Feb 2023 11:35:20 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D612486099; Sat, 4 Feb 2023 01:30:20 +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="MTOKs0zX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 627878608C; Sat, 4 Feb 2023 01:30:01 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) (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 C61D986013 for ; Sat, 4 Feb 2023 01:28:50 +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-il1-x135.google.com with SMTP id i6so2762522ilq.8 for ; Fri, 03 Feb 2023 16:28:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; 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=5FBEstfZKUMbunQt4GN8x5SuN+e2ebj7CCyQadBt7Ps=; b=MTOKs0zXluWiRPlcLeoAP3sqjXzXv+XYPZCyDf3dvzQWMsH78WhErW2FDuuZLX6ZQi umfv4EHPuamcfwfCFRBEmAoQg5z0BdS519LHBK1ZeEo74VU4YCuv17z8338kCST5h6iK mHNbH72+yFKYOs/+mrHl1cbGzeNDoR0cQxb8c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=5FBEstfZKUMbunQt4GN8x5SuN+e2ebj7CCyQadBt7Ps=; b=B7bwNOZTtChYzIcTSu7k1GozHQOuMDgNJgz+IRI0jbQIlMMxb2TbZZ6Ol81F++JxCQ Iq5XxXpN4hbo9tMbWzXZoMuQNlBE7wWPLrITLFg/3ETaboWNlsor9+m9exi2oV9Q3/4k NPwRQhdsFQiZ5S47NGK27cTbxnCf9w7GbI554/A2LSL8QacEea26nRB55YauzxaS+0Ut iU9Kea2f0Fx7e2JbfJTm2roOyx47Fx3TOEBmy3gWav+TkoCZL+op3BwX4sEZoICwRlG+ jUUdlkpxy72QlDLqhlnynUBN8JoByADD+turGlc1l1s0hnDak/YXSMXtuvhbQ5sPm8Yc n1yg== X-Gm-Message-State: AO0yUKWG0QvuwMLRJOHChXph4tS+F1ClFe5Uw72LvQCqAYnWQURI/Tcl Ogd+GfSfguk6gJrVgPrs6LfRjMLe77tmTs19 X-Google-Smtp-Source: AK7set9FPx+LY7S46eoYGfYwyUuWWp0tzcltgsDVwbIs7ZcnR29w50QzIeA2CQCwmix2/N+6L5O56A== X-Received: by 2002:a05:6e02:1b8a:b0:310:d25e:2dcd with SMTP id h10-20020a056e021b8a00b00310d25e2dcdmr9546992ili.26.1675470517584; Fri, 03 Feb 2023 16:28:37 -0800 (PST) Received: from kea.bld.corp.google.com ([2620:15c:183:200:5b65:12f1:51b7:8157]) by smtp.gmail.com with ESMTPSA id j12-20020a02cc6c000000b003adab954c5asm1270255jaq.153.2023.02.03.16.28.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Feb 2023 16:28:37 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Bin Meng Subject: [RFC PATCH v2 43/56] x86: coral: Avoid build errors with missing SPL symbols Date: Fri, 3 Feb 2023 17:26:06 -0700 Message-Id: <20230204002619.938387-44-sjg@chromium.org> X-Mailer: git-send-email 2.39.1.519.gcb327c4b5f-goog In-Reply-To: <20230204002619.938387-1-sjg@chromium.org> References: <20230204002619.938387-1-sjg@chromium.org> MIME-Version: 1.0 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.6 at phobos.denx.de X-Virus-Status: Clean With split config this does not build due to the missing symbols. Add them and fix the PCI condition. Signed-off-by: Simon Glass --- (no changes since v1) arch/x86/cpu/Makefile | 2 +- configs/chromebook_coral_defconfig | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/cpu/Makefile b/arch/x86/cpu/Makefile index 16e67e3da24..6f36281c970 100644 --- a/arch/x86/cpu/Makefile +++ b/arch/x86/cpu/Makefile @@ -63,7 +63,7 @@ ifndef CONFIG_$(SPL_)X86_64 obj-$(CONFIG_$(SPL_)SMP) += mp_init.o endif obj-y += mtrr.o -obj-$(CONFIG_PCI) += pci.o +obj-$(CONFIG_PPL_PCI) += pci.o ifndef CONFIG_$(SPL_)X86_64 obj-$(CONFIG_SMP) += sipi_vector.o endif diff --git a/configs/chromebook_coral_defconfig b/configs/chromebook_coral_defconfig index 401506e2193..f5995f22004 100644 --- a/configs/chromebook_coral_defconfig +++ b/configs/chromebook_coral_defconfig @@ -87,6 +87,7 @@ CONFIG_TFTP_TSIZE=y CONFIG_USE_ROOTPATH=y CONFIG_REGMAP=y CONFIG_SYSCON=y +CONFIG_TPL_SIMPLE_BUS=y CONFIG_SPL_OF_TRANSLATE=y CONFIG_LBA48=y CONFIG_SYS_64BIT_LBA=y @@ -96,6 +97,8 @@ CONFIG_SYS_I2C_DW=y CONFIG_MISC=y CONFIG_CROS_EC=y CONFIG_CROS_EC_LPC=y +CONFIG_SPL_P2SB=y +CONFIG_TPL_P2SB=y CONFIG_SPI_FLASH_WINBOND=y # CONFIG_X86_PCH7 is not set # CONFIG_X86_PCH9 is not set