Message ID | 1522073505-13066-2-git-send-email-bryan.odonoghue@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp3894585ljb; Mon, 26 Mar 2018 07:13:04 -0700 (PDT) X-Google-Smtp-Source: AIpwx48oDa6b5Xb5eihV5y8uyuy5sxzirI3iNrwwj/OOYzpNyICdqLPGSv322B2Q953zRNPIlg/u X-Received: by 10.80.243.21 with SMTP id p21mr5757157edm.153.1522073584851; Mon, 26 Mar 2018 07:13:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522073584; cv=none; d=google.com; s=arc-20160816; b=sLeLp/MLo+dY4peADmAEICoxOpbjOa48IKaFe0vLqA8yqe0VpDEk/yJR8bhfdP0u6w 9uuMGMYY8eBAxHH3+O0+RKx5+YgBAwxLpkF9nMvUXhx1T27QqUroeGtGTMp/hMSWMomG 8EmrmXJLlrMm0yHI3jv6UoChQq1bOU12y4a0hRvK4SgGxlOd/T7IrwEcL0usF7Kw8B8U Hlfob9d2rjpbMu8pr373oUBRcKClad2iJ1Xx2XWNrTYpfKYl8ssgWWzt3SORoI+g9ehK tCcu9RpOTle7rPQEQD6SdlXNS5Mi1kagwiHZ166GTHXaDROSBobqK3CDLeRW3KUquYFQ ld1A== 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:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=7YSwblQY0zJgFRUFSYOOLIrONIzx1YlgN+lgRkGMeQQ=; b=faAtcVZ83xLb8s7N+D/lMmiJScW7zwMhJ0VGd8hSKerJlr8xc4Yvqin4T4YyotW+JO rlucpOuPRZ6zoHf/HpFJemVovdvxnwlyLrojaM6h7vzSCAjrXqjK25dzYlS0YiZ2mu6N qfU/YiuoZpCRKeJgm6Ps2dRlTSmqdka/GQH9a+gHU+uItMgOezX9v+SthWy6frh2elhw dejqk6w0CgYbYDVVMtri2Yym/kB4hdvdEIyVTc2sO/jUa2X2dwSEKEg8NNwaJRq+PkoM JjzwKE9Ey6vyYk6YDQZ90PLhWsGFIFWb1zFCSk9+Iw+xPHhA5opo1eCHC/jNp1DQ6IkD 0/BQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=etO9b9Ku; 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: <u-boot-bounces@lists.denx.de> Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id a56si8192511edc.11.2018.03.26.07.13.04; Mon, 26 Mar 2018 07:13:04 -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=etO9b9Ku; 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 64B39C21F35; Mon, 26 Mar 2018 14:12:08 +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 C20DDC21F32; Mon, 26 Mar 2018 14:11:50 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 80B65C21E7E; Mon, 26 Mar 2018 14:11:49 +0000 (UTC) Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by lists.denx.de (Postfix) with ESMTPS id F3029C21E26 for <U-Boot@lists.denx.de>; Mon, 26 Mar 2018 14:11:48 +0000 (UTC) Received: by mail-wm0-f67.google.com with SMTP id l16so15819744wmh.3 for <U-Boot@lists.denx.de>; Mon, 26 Mar 2018 07:11:48 -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:in-reply-to:references; bh=rzoIKHhhWd2qWMFKQ+oYI8u1CUjNVZwwjeZrLbeB7os=; b=etO9b9Kuyosd/YokslTFo1XKLUTxWqayBNsNMZB1OjpPaxQVjR0+qWWXX85ezq7w/z BdEVfB9Tb5oA/MKygcDoGjdRArSiAP+/504YaBh/jeDhCxiSdHEVW80etAnR60WBSiBd doFgIDwOy4SlZ9HhzQ0qgmaxXDrFgqcgeNPR0= 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:in-reply-to :references; bh=rzoIKHhhWd2qWMFKQ+oYI8u1CUjNVZwwjeZrLbeB7os=; b=cirAzAKbE4WLl2o6kmbH6HlvNHNz0h2Wp9ZQDBa4GDYOpdeLykS2e/MU7yV/AgwtQE wX78xbhIt0F3nTowQ/JKG/QI4jwK/TgfuvjKqPWOoIqCC3z1jZLYvkG9FaoRSf0++zUV zR8CURA9t5LmsuSyTfL3Dac4D3EZGW3jPqSQZ85s6deVCiLUJUpykPh4tLrdg3qDORQM d0JrpjCtpN+Z4jpv46WRQ67Qn7J7Cogd0FFF1+gs9ntTtgICFKVB0c8P2BgDHRja5fZZ mBE0/3fSmPh8VC7SlCX7Y7z6gBDIvMRzPfQlK/IHgKxE2/iv+z5lOtGXYVLrxn1exv3j ziIg== X-Gm-Message-State: AElRT7GcWNc9fwoHe0AVOsKTIWShNwodHLuSXNtJLRbX4SdPu5Yg5bha cKxgM5ox/6XAA1TQP5le/9dhGOCSeiM= X-Received: by 10.80.247.4 with SMTP id g4mr15917189edn.121.1522073508370; Mon, 26 Mar 2018 07:11:48 -0700 (PDT) Received: from localhost.localdomain ([109.255.42.2]) by smtp.gmail.com with ESMTPSA id a10sm10714045eda.71.2018.03.26.07.11.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Mar 2018 07:11:47 -0700 (PDT) From: Bryan O'Donoghue <bryan.odonoghue@linaro.org> To: U-Boot@lists.denx.de, sbabic@denx.de Date: Mon, 26 Mar 2018 15:11:43 +0100 Message-Id: <1522073505-13066-2-git-send-email-bryan.odonoghue@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522073505-13066-1-git-send-email-bryan.odonoghue@linaro.org> References: <1522073505-13066-1-git-send-email-bryan.odonoghue@linaro.org> Cc: breno.lima@nxp.com, fabio.estevam@nxp.com, utkarsh.gupta@nxp.com Subject: [U-Boot] [PATCH v2 1/3] imximage: Encase majority of header in __ASSEMBLY__ declaration 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>, <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>, <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> |
Series |
imx: hab: Add helper functions for scripted HAB auth
|
expand
|
diff --git a/include/imximage.h b/include/imximage.h index de1ea8f..553b852 100644 --- a/include/imximage.h +++ b/include/imximage.h @@ -56,6 +56,7 @@ #define DCD_CHECK_BITS_SET_PARAM 0x14 #define DCD_CHECK_BITS_CLR_PARAM 0x04 +#ifndef __ASSEMBLY__ enum imximage_cmd { CMD_INVALID, CMD_IMAGE_VERSION, @@ -197,4 +198,5 @@ typedef void (*set_dcd_rst_t)(struct imx_header *imxhdr, typedef void (*set_imx_hdr_t)(struct imx_header *imxhdr, uint32_t dcd_len, uint32_t entry_point, uint32_t flash_offset); +#endif /* __ASSEMBLY__ */ #endif /* _IMXIMAGE_H_ */
Subsequent patches will want to include imageimage.h but in doing so include it on an assembly compile path causing a range of compile errors. Fix the errors pre-emptively by encasing the majority of the declarations in imximage.h inside an ifdef __ASSEMBLY__ block. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Cc: Utkarsh Gupta <utkarsh.gupta@nxp.com> Cc: Breno Lima <breno.lima@nxp.com> Cc: Fabio Estevam <fabio.estevam@nxp.com> --- include/imximage.h | 2 ++ 1 file changed, 2 insertions(+)