{"id":801899,"url":"http://patchwork.ozlabs.org/api/1.2/patches/801899/?format=json","web_url":"http://patchwork.ozlabs.org/project/uboot/patch/1502862122-14771-6-git-send-email-bmeng.cn@gmail.com/","project":{"id":18,"url":"http://patchwork.ozlabs.org/api/1.2/projects/18/?format=json","name":"U-Boot","link_name":"uboot","list_id":"u-boot.lists.denx.de","list_email":"u-boot@lists.denx.de","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1502862122-14771-6-git-send-email-bmeng.cn@gmail.com>","list_archive_url":null,"date":"2017-08-16T05:41:54","name":"[U-Boot,05/13] tools: binman: Add a new entry type for Intel VBT","commit_ref":"59ea8c250b311ab5a414d5a36d9b07cd426ef74b","pull_url":null,"state":"accepted","archived":false,"hash":"31700ce08f914a00cb3872d8e3886a8efd09924f","submitter":{"id":64981,"url":"http://patchwork.ozlabs.org/api/1.2/people/64981/?format=json","name":"Bin Meng","email":"bmeng.cn@gmail.com"},"delegate":{"id":56520,"url":"http://patchwork.ozlabs.org/api/1.2/users/56520/?format=json","username":"bmeng","first_name":"Bin","last_name":"Meng","email":"bmeng.cn@gmail.com"},"mbox":"http://patchwork.ozlabs.org/project/uboot/patch/1502862122-14771-6-git-send-email-bmeng.cn@gmail.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/801899/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/801899/checks/","tags":{},"related":[],"headers":{"Return-Path":"<u-boot-bounces@lists.denx.de>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"LVh9NkCA\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xXJF959DYz9sRm\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 16 Aug 2017 15:44:13 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid 779B8C21E23; Wed, 16 Aug 2017 05:39:21 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id EFE15C21E01;\n\tWed, 16 Aug 2017 05:38:13 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 8B393C21DE0; Wed, 16 Aug 2017 05:37:52 +0000 (UTC)","from mail-it0-f65.google.com (mail-it0-f65.google.com\n\t[209.85.214.65])\n\tby lists.denx.de (Postfix) with ESMTPS id 3902CC21DF4\n\tfor <u-boot@lists.denx.de>; Wed, 16 Aug 2017 05:37:47 +0000 (UTC)","by mail-it0-f65.google.com with SMTP id 77so1876328itj.4\n\tfor <u-boot@lists.denx.de>; Tue, 15 Aug 2017 22:37:47 -0700 (PDT)","from ala-d2121-lx1.wrs.com (unknown-156-139.windriver.com.\n\t[147.11.156.139])\n\tby smtp.gmail.com with ESMTPSA id g13sm30442ioi.0.2017.08.15.22.37.44\n\t(version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 15 Aug 2017 22:37:45 -0700 (PDT)"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.0 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.0","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id:in-reply-to:references;\n\tbh=ATZ8dttbP6b3xQs06iUFFTmO28rDksUvX4tdJMIzQ5U=;\n\tb=LVh9NkCAlGR53bPlfgv/VUVPEoI0Y/KGBf86AVC5GfRN7+Q467wN7J/5rlQxW6Air4\n\td27OTS91R0ssI/m3XxpeqDAyTrsaJ9GkW8qEUoS1uvYWBsPOd8OIWBAYm9lzDd8YkF9N\n\tRn0qlQwCq1Kr4sgSMXh1MdnJWC3/0mBdOny4RFlsO+PuWnIrxNqxwVkb2uBmeG9Jaq1W\n\taT/hcKgypLvp2ubS3ETtifjhSHkb/7yyDXdXIWzijrOLIf+NhGloG6F832dwzKhv10SF\n\tMPc/N80E0kPPdxmAFcKuiMBOwRmE6qbu+nb9oFi00wVCgntrtu+w9/sqQKCPWwrehtDJ\n\tfXwA==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=ATZ8dttbP6b3xQs06iUFFTmO28rDksUvX4tdJMIzQ5U=;\n\tb=eHMyGocxg/R6XxGXet3G5+LBpcCZjRB8E5FQPaRRgKjQBnR2WkzmITs9R4UjkPpHQP\n\tFmCKRBprtnOnafIcXFEPsM1VzYcumqFjtBzzFZw/hbX82qcUBrNX/il0JJWQ3f9tfl7t\n\tVXcsXDxlOo9e+HEKu+xZ6c24wks92jE5Yfcdlwdx53bQ74FovCxzVZICC3XtlWnXZjGm\n\tAh5XrZn3KiqvgPQ0ge6Oe2snOPeUj9yXgFOibhtEcPIkrjDwEld9sczmL32GLyUSWOVu\n\t3Tl2GBhW7apoE4vQ+bVDwKb0dpR6XhHfNHAvPJpdIfMaVXYTHAY2EvXDdVXH448SdVFq\n\tkSOg==","X-Gm-Message-State":"AHYfb5juItQfjFjmj96vmXXYsP3X/BWWMGhgLrojqWNdpEWS0nVK6ly2\n\t0ydOvMHX+9AL5Q==","X-Received":"by 10.36.110.149 with SMTP id w143mr948429itc.21.1502861866186; \n\tTue, 15 Aug 2017 22:37:46 -0700 (PDT)","From":"Bin Meng <bmeng.cn@gmail.com>","To":"Simon Glass <sjg@chromium.org>,\n\tU-Boot Mailing List <u-boot@lists.denx.de>","Date":"Tue, 15 Aug 2017 22:41:54 -0700","Message-Id":"<1502862122-14771-6-git-send-email-bmeng.cn@gmail.com>","X-Mailer":"git-send-email 1.7.9.5","In-Reply-To":"<1502862122-14771-1-git-send-email-bmeng.cn@gmail.com>","References":"<1502862122-14771-1-git-send-email-bmeng.cn@gmail.com>","Subject":"[U-Boot] [PATCH 05/13] tools: binman: Add a new entry type for\n\tIntel VBT","X-BeenThere":"u-boot@lists.denx.de","X-Mailman-Version":"2.1.18","Precedence":"list","List-Id":"U-Boot discussion <u-boot.lists.denx.de>","List-Unsubscribe":"<https://lists.denx.de/options/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=unsubscribe>","List-Archive":"<http://lists.denx.de/pipermail/u-boot/>","List-Post":"<mailto:u-boot@lists.denx.de>","List-Help":"<mailto:u-boot-request@lists.denx.de?subject=help>","List-Subscribe":"<https://lists.denx.de/listinfo/u-boot>,\n\t<mailto:u-boot-request@lists.denx.de?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"u-boot-bounces@lists.denx.de","Sender":"\"U-Boot\" <u-boot-bounces@lists.denx.de>"},"content":"This adds a new entry type for Intel Video BIOS Table.\n\nSigned-off-by: Bin Meng <bmeng.cn@gmail.com>\n---\n\n tools/binman/etype/intel_vbt.py    | 14 ++++++++++++++\n tools/binman/func_test.py          |  9 ++++++++-\n tools/binman/test/46_intel-vbt.dts | 14 ++++++++++++++\n 3 files changed, 36 insertions(+), 1 deletion(-)\n create mode 100644 tools/binman/etype/intel_vbt.py\n create mode 100644 tools/binman/test/46_intel-vbt.dts","diff":"diff --git a/tools/binman/etype/intel_vbt.py b/tools/binman/etype/intel_vbt.py\nnew file mode 100644\nindex 0000000..29aedaf\n--- /dev/null\n+++ b/tools/binman/etype/intel_vbt.py\n@@ -0,0 +1,14 @@\n+#\n+# Copyright (C) 2017, Bin Meng <bmeng.cn@gmail.com>\n+#\n+# SPDX-License-Identifier:\tGPL-2.0+\n+#\n+# Entry-type module for Intel Video BIOS Table binary blob\n+#\n+\n+from entry import Entry\n+from blob import Entry_blob\n+\n+class Entry_intel_vbt(Entry_blob):\n+    def __init__(self, image, etype, node):\n+        Entry_blob.__init__(self, image, etype, node)\ndiff --git a/tools/binman/func_test.py b/tools/binman/func_test.py\nindex 8b4db41..c4207ce 100644\n--- a/tools/binman/func_test.py\n+++ b/tools/binman/func_test.py\n@@ -38,6 +38,7 @@ X86_START16_DATA    = 'start16'\n U_BOOT_NODTB_DATA   = 'nodtb with microcode pointer somewhere in here'\n FSP_DATA            = 'fsp'\n CMC_DATA            = 'cmc'\n+VBT_DATA            = 'vbt'\n \n class TestFunctional(unittest.TestCase):\n     \"\"\"Functional tests for binman\n@@ -74,6 +75,7 @@ class TestFunctional(unittest.TestCase):\n         TestFunctional._MakeInputFile('u-boot-nodtb.bin', U_BOOT_NODTB_DATA)\n         TestFunctional._MakeInputFile('fsp.bin', FSP_DATA)\n         TestFunctional._MakeInputFile('cmc.bin', CMC_DATA)\n+        TestFunctional._MakeInputFile('vbt.bin', VBT_DATA)\n         self._output_setup = False\n \n         # ELF file with a '_dt_ucode_base_size' symbol\n@@ -801,6 +803,11 @@ class TestFunctional(unittest.TestCase):\n         self.assertEqual(FSP_DATA, data[:len(FSP_DATA)])\n \n     def testPackCmc(self):\n-        \"\"\"Test that an image with a FSP binary can be created\"\"\"\n+        \"\"\"Test that an image with a CMC binary can be created\"\"\"\n         data = self._DoReadFile('43_intel-cmc.dts')\n         self.assertEqual(CMC_DATA, data[:len(CMC_DATA)])\n+\n+    def testPackVbt(self):\n+        \"\"\"Test that an image with a VBT binary can be created\"\"\"\n+        data = self._DoReadFile('46_intel-vbt.dts')\n+        self.assertEqual(VBT_DATA, data[:len(VBT_DATA)])\ndiff --git a/tools/binman/test/46_intel-vbt.dts b/tools/binman/test/46_intel-vbt.dts\nnew file mode 100644\nindex 0000000..733f575\n--- /dev/null\n+++ b/tools/binman/test/46_intel-vbt.dts\n@@ -0,0 +1,14 @@\n+/dts-v1/;\n+\n+/ {\n+\t#address-cells = <1>;\n+\t#size-cells = <1>;\n+\n+\tbinman {\n+\t\tsize = <16>;\n+\n+\t\tintel-vbt {\n+\t\t\tfilename = \"vbt.bin\";\n+\t\t};\n+\t};\n+};\n","prefixes":["U-Boot","05/13"]}