From patchwork Thu Aug 2 17:29:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 952929 Return-Path: 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 41hHMy4Wywz9s2g for ; Fri, 3 Aug 2018 03:33:50 +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="ZIl1p8YP"; 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 41hHMy2h9GzF2D3 for ; Fri, 3 Aug 2018 03:33:50 +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="ZIl1p8YP"; 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=) 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="ZIl1p8YP"; 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 41hHHD3HM4zF22V for ; Fri, 3 Aug 2018 03:29:44 +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=O2IGqd3u2qqS48+LU7fscKP4MqPZoUYGCROJG6Fp6m8=; b=ZIl1p8YPgpx4k08QRZWWSOsy9 VlaNfLKMwoZvNjrnMxwXYTGDHxEmtG/a2O2mKUaqSRaLdTaedR1RL8f5dllMc3bQuzUDoBkBTOueh tpe3RhlCLBfZYKM4FIevqQ8eS0TUa3g9Wvq4aLT0gD6i9y3sKoBiymq1uLI7PkOosKYLhsHn9/y6G 5HCxr014ouBtVHPKlb45q5swON2EOhImFG2Z8/I6QcwXSueN8IMlMhsQTWyMesNGJ00loSG2r9bu7 KjfuFUGlDQ7YjQfsHP5KhfvR+/GTrUL6vrc/dsFh52b/uHZC/NPMKxSJ3acLe9zYim1PoOx2Nchff z5q4/bXfQ==; Received: from geoff by merlin.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1flHPw-0007aI-UY; Thu, 02 Aug 2018 17:29:41 +0000 Message-Id: In-Reply-To: References: From: Geoff Levand Patch-Date: Thu, 2 Aug 2018 10:19:54 -0700 Subject: [PATCH v2 29/30] lib/system: Add dmidecode as system app To: Samuel Mendoza-Jonas Date: Thu, 02 Aug 2018 17:29:40 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ge Song , Petitboot@lists.ozlabs.org MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" For use by the arm64 get_sysinfo. Signed-off-by: Geoff Levand --- configure.ac | 1 + lib/system/system.c | 1 + lib/system/system.h | 1 + 3 files changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index 38fe341..eca574a 100644 --- a/configure.ac +++ b/configure.ac @@ -394,6 +394,7 @@ DEFINE_HOST_PROG(PB_PLUGIN, pb-plugin, [/usr/sbin/pb-plugin]) DEFINE_HOST_PROG(PB_EXEC, pb-exec, [/usr/sbin/pb-exec]) DEFINE_HOST_PROG(SH, sh, [/bin/sh]) DEFINE_HOST_PROG(SCSI_RESCAN, scsi-rescan, [/usr/sbin/scsi-rescan]) +DEFINE_HOST_PROG(DMIDECODE, dmidecode, [/sbin/dmidecode]) AC_ARG_WITH( [tftp], diff --git a/lib/system/system.c b/lib/system/system.c index df27c87..89790ba 100644 --- a/lib/system/system.c +++ b/lib/system/system.c @@ -35,6 +35,7 @@ const struct pb_system_apps pb_system_apps = { .pb_exec = HOST_PROG_PB_EXEC, .sh = HOST_PROG_SH, .scsi_rescan = HOST_PROG_SCSI_RESCAN, + .dmidecode = HOST_PROG_DMIDECODE, }; #ifndef TFTP_TYPE diff --git a/lib/system/system.h b/lib/system/system.h index e3e8a30..2389951 100644 --- a/lib/system/system.h +++ b/lib/system/system.h @@ -20,6 +20,7 @@ struct pb_system_apps { const char *pb_exec; const char *sh; const char *scsi_rescan; + const char *dmidecode; }; extern const struct pb_system_apps pb_system_apps;