From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.61]) by mx.groups.io with SMTP id smtpd.web12.1578.1587714849929493747 for ; Fri, 24 Apr 2020 00:54:10 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JaepgWgL; spf=pass (domain: redhat.com, ip: 205.139.110.61, mailfrom: lersek@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587714849; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=frS3tHyRpref6fwwADquuE1UQo5rd+eY2Qtv65oWWu0=; b=JaepgWgLlfcuCd9GoE/SYh2x2sh0H7KHS4E2lJD4OtjmS8JH4WdtWJrOApg5HICRohMHIg UK2nEIgXjRCGgcvTbiphffCuFhp/OcQqMkcO46oYmMCQXWdj4WOY1NDvKj2396RBm3MwqY HjUbsNbGwav/eS/bv2jP+efW6FjLRK8= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-182-rz-nZFmQOnWqDmRgu_cTOQ-1; Fri, 24 Apr 2020 03:54:05 -0400 X-MC-Unique: rz-nZFmQOnWqDmRgu_cTOQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 76666800580; Fri, 24 Apr 2020 07:54:04 +0000 (UTC) Received: from lacos-laptop-7.usersys.redhat.com (ovpn-113-159.ams2.redhat.com [10.36.113.159]) by smtp.corp.redhat.com (Postfix) with ESMTP id 34BE010016DA; Fri, 24 Apr 2020 07:54:03 +0000 (UTC) From: "Laszlo Ersek" To: edk2-devel-groups-io Cc: Ard Biesheuvel , Jordan Justen , Per Sundstrom , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 3/7] OvmfPkg/PlatformPei: use QemuFwCfgParseBool in UPDATE_BOOLEAN_PCD_FROM_... Date: Fri, 24 Apr 2020 09:53:49 +0200 Message-Id: <20200424075353.8489-4-lersek@redhat.com> In-Reply-To: <20200424075353.8489-1-lersek@redhat.com> References: <20200424075353.8489-1-lersek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 VGhlIFVQREFURV9CT09MRUFOX1BDRF9GUk9NX0ZXX0NGRygpIG1hY3JvIGN1cnJlbnRseSBjYWxs cyB0aGUKbW9kdWxlLXByaXZhdGUgaGVscGVyIGZ1bmN0aW9uIEdldE5hbWVkRndDZmdCb29sZWFu KCkuIFJlcGxhY2UgdGhlIGxhdHRlcgp3aXRoIFFlbXVGd0NmZ1BhcnNlQm9vbCgpIGZyb20gUWVt dUZ3Q2ZnU2ltcGxlUGFyc2VyTGliLgoKVGhpcyBjaGFuZ2UgaXMgY29tcGF0aWJsZSB3aXRoIHZh bGlkIHN0cmluZ3MgYWNjZXB0ZWQgcHJldmlvdXNseS4KCkNjOiBBcmQgQmllc2hldXZlbCA8YXJk LmJpZXNoZXV2ZWxAYXJtLmNvbT4KQ2M6IEpvcmRhbiBKdXN0ZW4gPGpvcmRhbi5sLmp1c3RlbkBp bnRlbC5jb20+CkNjOiBQZXIgU3VuZHN0cm9tIDxwZXJfc3VuZHN0cm9tQHlhaG9vLmNvbT4KQ2M6 IFBoaWxpcHBlIE1hdGhpZXUtRGF1ZMOpIDxwaGlsbWRAcmVkaGF0LmNvbT4KUmVmOiBodHRwczov L2J1Z3ppbGxhLnRpYW5vY29yZS5vcmcvc2hv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AgICBjYXNlICcxJzoNCi0gICAgICBjYXNlICd5JzoNCi0gICAgICBj YXNlICdZJzoNCi0gICAgICAgICpTZXR0aW5nID0gVFJVRTsNCi0gICAgICAgIHJldHVybiBFRklf U1VDQ0VTUzsNCi0NCi0gICAgICBkZWZhdWx0Og0KLSAgICAgICAgYnJlYWs7DQotICAgIH0NCi0g IH0NCi0gIHJldHVybiBFRklfUFJPVE9DT0xfRVJST1I7DQotfQ0KLQ0KICNkZWZpbmUgVVBEQVRF X0JPT0xFQU5fUENEX0ZST01fRldfQ0ZHKFRva2VuTmFtZSkgICAgICAgICAgICAgICAgICAgXA0K ICAgICAgICAgICBkbyB7ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgXA0KICAgICAgICAgICAgIEJPT0xFQU4gICAgICAgU2V0dGluZzsgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgXA0KICAgICAgICAgICAgIFJFVFVSTl9TVEFUVVMg UGNkU3RhdHVzOyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgXA0KICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg XA0KLSAgICAgICAgICAgIGlmICghRUZJX0VSUk9SIChHZXROYW1lZEZ3Q2ZnQm9vbGVhbiAoICAg ICAgICAgICAgICAgICAgXA0KKyAgICAgICAgICAgIGlmICghUkVUVVJOX0VSUk9SIChRZW11RndD ZmdQYXJzZUJvb2wgKCAgICAgICAgICAgICAgICAgXA0KICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICJvcHQvb3ZtZi8iICNUb2tlbk5hbWUsICZTZXR0aW5nKSkpIHsgXA0KICAgICAgICAg ICAgICAgUGNkU3RhdHVzID0gUGNkU2V0Qm9vbFMgKFRva2VuTmFtZSwgU2V0dGluZyk7ICAgICAg ICAgXA0KICAgICAgICAgICAgICAgQVNTRVJUX1JFVFVSTl9FUlJPUiAoUGNkU3RhdHVzKTsgICAg ICAgICAgICAgICAgICAgICAgXA0KLS0gCjIuMTkuMS4zLmczMDI0N2FhNWQyMDEKCgo=