From patchwork Tue Jul 17 11:33:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Igor Opaniuk X-Patchwork-Id: 142132 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3538828ljj; Tue, 17 Jul 2018 04:33:36 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe4AjCufJlgxksrCbCEnRR35hR8+T35JE9evkRiMWuwI2QPS/xr5e/hKdoSHOMwCTy5BVEP X-Received: by 2002:a50:f5ad:: with SMTP id u42-v6mr2087951edm.93.1531827216302; Tue, 17 Jul 2018 04:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531827216; cv=none; d=google.com; s=arc-20160816; b=LFvMl9dagmn7qh4foCJAEWYCO/q0uC6oIIUta1svF3bkAkInyDxugHFb2gIQVhKz0e zfQVYYzLNOn7rMKG8SzTt0nzTP5CVrDd1mPF7pqRXUNyhk+gClRMds1cfTwaBUBHWdLs 4knaKBp5jWtFJV82Ikex59Y6sZnB7OrSsaib6a80EpWTezptAq2lZ3Owpl41RQn6G3eS noSebX15CPds921jXpF2KxbBvS7hPhMxzwE1ePiDMNvHIbrzZQI9ELUk2Vspwjjk134a n048o31ctf6rnkpA9tAMxAzrjkIWYbAUsTl3LpmqmMZ51NwZ3Y3i0N3sjqMzkjBbiAdT 3b9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=UwqmmPYNV/50jN6BKKHN+Qhuy+EFvyCmzwcgiO7GpF4=; b=uCRr58Gc6Zha657zbDwTPxCCI6rMnD1/JddrbHWqfF6vgpsQoDU1XsEEY9/mBqYz/U 5qsy70+OhyZdfRWJL0xjqxhAkk33DJUfTRrXWMdvZK0uo23QsjazTtoIu889E6sYTmWc 9IEEBxg9fWr6mMCIuPR2tlVuuq/6ZNcS34+sEGcG4RtmCdXm4d09LpMt7l4z9P3dbBPI OhfWbGKljBkFkiW2kP3P5ozJXSY4njWk+qkGl7WI53dvDCQbu5sc8IvdKp0ZV41JT1em sG1s9zcI8qx9+xJNT9Ho92isX/YF8O7x0NT5BI+oMFoV13YHj7lgjutZeoSTI+N8EFNb BBuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Tu5pnj9S; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id s4-v6si728808edk.129.2018.07.17.04.33.35; Tue, 17 Jul 2018 04:33:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Tu5pnj9S; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 74A04C21EBA; Tue, 17 Jul 2018 11:33:33 +0000 (UTC) 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=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 29018C21C4A; Tue, 17 Jul 2018 11:33:31 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A2459C21C27; Tue, 17 Jul 2018 11:33:29 +0000 (UTC) Received: from mail-lf0-f66.google.com (mail-lf0-f66.google.com [209.85.215.66]) by lists.denx.de (Postfix) with ESMTPS id 4AD7DC21C27 for ; Tue, 17 Jul 2018 11:33:29 +0000 (UTC) Received: by mail-lf0-f66.google.com with SMTP id n96-v6so591674lfi.1 for ; Tue, 17 Jul 2018 04:33:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=7DqN3wv3Zv5Fg2bG1QP4fXnN1TgSZnt0sPr6ybN6Fls=; b=Tu5pnj9SYrfBKXFg+JGioJ5u4+djkOPZxssoQLZyu1oMzk/ngjDdgY23Ojj3nDgik9 MPETlEdGby5Z/hfT1RzupnRjKRGtI75jOW/6Gj/1DJZzJ9YApP6bAocpYBgxhgzohp63 /n2lTz5B9z5cv5p0KGnbv9ISrC+4itPi56T+s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=7DqN3wv3Zv5Fg2bG1QP4fXnN1TgSZnt0sPr6ybN6Fls=; b=hEt+Z/SekLvCl/9eBTvRu+RPfcHg4VcCwoMMaZuIaJaBf79/duhVeJVKcMUn10/AeO ldl8ZB1RVK05A2vXw09SmZid+usESzXdRjy9AaJWNgha2cx5Nh+B9311GKpzNAVNFVqF 3NSa6+Vm69CA/x/TKSe75cNKDcjC67zTg2xag6sooEjiQTQx7FtZXvtOm8hfOvnbEODj GEaBXE4T0noedXN4sLl3QkXuSU+61qlFRmndIh+AEe9DznE8pumU0K88spDRhW9fRm5z qb2JYZifxuo5/Qwn+wiJt05ijrR1Ng5F3SqsTz4VdbmJqMd1PkCLtOavC2c/Ls6imwoo 7ktQ== X-Gm-Message-State: AOUpUlH+RmCFZHCJznDILvCEHjmHDfH2hUEoakuDRMeBkxzNMv24hlkm 8TkHMfIqyLhX95JkM6IDla1eKYSm/g49SA== X-Received: by 2002:a19:1586:: with SMTP id 6-v6mr991760lfv.51.1531827208413; Tue, 17 Jul 2018 04:33:28 -0700 (PDT) Received: from localhost (host-176-36-145-117.la.net.ua. [176.36.145.117]) by smtp.gmail.com with ESMTPSA id l3-v6sm123412lfi.36.2018.07.17.04.33.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Jul 2018 04:33:27 -0700 (PDT) From: Igor Opaniuk To: u-boot@lists.denx.de Date: Tue, 17 Jul 2018 14:33:24 +0300 Message-Id: <1531827206-16158-1-git-send-email-igor.opaniuk@linaro.org> X-Mailer: git-send-email 2.7.4 Cc: trini@konsulko.com, praneeth@ti.com, misael.lopez@ti.com, erosca@de.adit-jv.com, joakim.bech@linaro.org Subject: [U-Boot] [PATCH v2 0/2] avb2.0: fix multiple compilation issues in sandbox X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This series of two patches fixes compilation issues when AVB 2.0 is enabled for the 'sandbox' architecture: 1. Since libavb library alone is highly portable, it introduce dedicated Kconfig symbol for AVB compiler-dependent operations, so it's possible to build libavb separately. 2. Add CONFIG_FASTBOOT dependency, as fastboot buffer is re-used in partition verification operations. 3. Use blk_dread()/blk_dwrite() in mmc_read()/mmc_write() AVB operation implementations. This fixes compilation issues when CONFIG_BLK is enabled. Changes for v2: - Updated eb81cae89f ("avb2.0: add proper dependencies") commit message (added more details). - Extended description of AVB_VERIFY Kconfig symbol. - Replaced CONFIG_LIBAVB to CONFIG_AVB_VERIFY in common/Makefile. Igor Opaniuk (2): avb2.0: add proper dependencies avb2.0: use block API in AVB ops cmd/Kconfig | 2 +- common/Kconfig | 10 ++++++++++ common/Makefile | 2 +- common/avb_verify.c | 9 +++++---- doc/README.avb2 | 1 + 5 files changed, 18 insertions(+), 6 deletions(-) --- 2.7.4