Message ID | 1e05792904c98bf7c1c2f9afb6d7dc46e1114b6a.1532469861.git.geoff@infradead.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Zt7X48mPz9s2g for <incoming@patchwork.ozlabs.org>; Wed, 25 Jul 2018 08:19:20 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="QLoQP5Fz"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41Zt7X2T5ZzDrpp for <incoming@patchwork.ozlabs.org>; Wed, 25 Jul 2018 08:19:20 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="QLoQP5Fz"; dkim-atps=neutral X-Original-To: Petitboot@lists.ozlabs.org Delivered-To: Petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="QLoQP5Fz"; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41Zt3S5nvhzDrHN for <Petitboot@lists.ozlabs.org>; Wed, 25 Jul 2018 08:15:48 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Subject:From:References: In-Reply-To:Message-Id:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=9QZRSQy+QE4RAnA35J3r+ESNwlG2vDrDIsBSItfh6GI=; b=QLoQP5Fz4f1ksk/Dh6nvByRQs AJURmFNj0EXSOoyIDxgoN4htUrmCN+f3PjlmGVMoqqgG5q27scA/AVaa29SO/R8w9hs8VnLVrDInb cZ+QvyNhDWQeNqJu+GA7Ez1b+6mTmgCQIep+ukyc5FmjzIav/5uGZShVtWK9beEkMcuhrfXFKs6Tt QWUd+0bXWHSbqN2cVaw70H8hDe1GbqGf7GLxQ01wU9tLpUsBcQXMeVGyTwE7ABLcqEjwu2qZYMeWU Ph4lWJOECNV2lwE9GFDApHS5ZXNXz/6I6N93apNLR89na27HbCXLtkibO7Txe94aucdPpWaz3pTZ8 aR0gluarA==; Received: from geoff by merlin.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fi5ar-0004mP-2f; Tue, 24 Jul 2018 22:15:45 +0000 Message-Id: <1e05792904c98bf7c1c2f9afb6d7dc46e1114b6a.1532469861.git.geoff@infradead.org> In-Reply-To: <cover.1532469861.git.geoff@infradead.org> References: <cover.1532469861.git.geoff@infradead.org> From: Geoff Levand <geoff@infradead.org> Patch-Date: Tue, 24 Jul 2018 15:03:16 -0700 Subject: [PATCH v1 26/30] discover: Add platform-dummy To: Samuel Mendoza-Jonas <sam@mendozajonas.com> Date: Tue, 24 Jul 2018 22:15:45 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Petitboot bootloader development <petitboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/petitboot>, <mailto:petitboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/petitboot/> List-Post: <mailto:petitboot@lists.ozlabs.org> List-Help: <mailto:petitboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/petitboot>, <mailto:petitboot-request@lists.ozlabs.org?subject=subscribe> Cc: Ge Song <songgebird@gmail.com>, Petitboot@lists.ozlabs.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" <petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
[v1,01/30] docker: Add libfdt-dev
|
expand
|
diff --git a/discover/Makefile.am b/discover/Makefile.am index 3992a66..f9625ec 100644 --- a/discover/Makefile.am +++ b/discover/Makefile.am @@ -86,6 +86,9 @@ discover_platform_ro_SOURCES = \ discover_platform_ro_CPPFLAGS = \ $(AM_CPPFLAGS) +# Build dummy last to put it at the end of the platforms section. +discover_platform_ro_SOURCES += discover/platform-dummy.c + if ENABLE_MTD discover_platform_ro_SOURCES += \ discover/hostboot.c diff --git a/discover/platform-dummy.c b/discover/platform-dummy.c new file mode 100644 index 0000000..7c2e1dc --- /dev/null +++ b/discover/platform-dummy.c @@ -0,0 +1,16 @@ +#include "platform.h" + +static bool probe(struct platform *p, void *ctx) +{ + (void)p; + (void)ctx; + + return false; +} + +static struct platform dummy = { + .name = "dummy", + .probe = probe, +}; + +register_platform(dummy);
With the new configure enable-platform parameters it is possible configure no platform support. Add a new minimal 'dummy' platform so that the __start_platforms and __stop_platforms variables needed by platform_init are created. Signed-off-by: Geoff Levand <geoff@infradead.org> --- discover/Makefile.am | 3 +++ discover/platform-dummy.c | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 discover/platform-dummy.c