From patchwork Mon Mar 18 23:51:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 228840 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 14E952C009B for ; Tue, 19 Mar 2013 10:54:09 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 76F364A0ED; Tue, 19 Mar 2013 00:54:07 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wCOdpb4pBaHh; Tue, 19 Mar 2013 00:54:06 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 04A574A09C; Tue, 19 Mar 2013 00:53:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 23F004A048 for ; Tue, 19 Mar 2013 00:53:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nQQaHY5tLv-9 for ; Tue, 19 Mar 2013 00:53:22 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-vc0-f201.google.com (mail-vc0-f201.google.com [209.85.220.201]) by theia.denx.de (Postfix) with ESMTPS id 1AFC84A02F for ; Tue, 19 Mar 2013 00:53:19 +0100 (CET) Received: by mail-vc0-f201.google.com with SMTP id hf12so462717vcb.0 for ; Mon, 18 Mar 2013 16:53:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=naO+wXfa2XP+EVj8FXq5mJ9iWXdEOsAq1rgVaYcLh3k=; b=edqqlofW56gpQgTlIb/RmUuIk4inm/JxYamdolCBhytYgxES4wRDDKRUhHl30z+pN1 kMQ0foEkwdso1dfO/gBqOTHKfXWXa7h2vV0GLDlv6ME3gacMV30ODzt8n/a+x4slR6lY vGTvHlN5xiuDgRqGvjel1zYfBm9R/bAy0PCdAiQ4uTsjZ6WBebdwciOSjoTQT4agM8VT GWiwmGn2ZZd+fZnZIrRHBYYeH2LqnJidrxIzbXHKBWb0kgokcoON6bAsV/8KHTdGR56W vFDceMTeWYEcMOMqIxm87fKG1fD21rf+kN97Jnmr0APUcUgvwUw1L+wJnXDqEijJiq6K QeEA== X-Received: by 10.58.213.169 with SMTP id nt9mr15504286vec.0.1363650798289; Mon, 18 Mar 2013 16:53:18 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id f64si2187939yhj.7.2013.03.18.16.53.18 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Mon, 18 Mar 2013 16:53:18 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id 1D15E31C00F; Mon, 18 Mar 2013 16:53:18 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id D0CE116036D; Mon, 18 Mar 2013 16:53:17 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Mon, 18 Mar 2013 16:51:26 -0700 Message-Id: <1363650725-30459-7-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.1.3 In-Reply-To: <1363650725-30459-1-git-send-email-sjg@chromium.org> References: <1363650725-30459-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmo03fXR4otxwr3T85AHr2JCUZw4JWC+AP+dkiy5mTQ+EUOszymCaWmCric2h8EcVot1gXhOeglOGU4rEdRuSZyzXQW8oZPWF1Y7lT5isKB5TZ2Qx55DDJ7lNJmkonfGl3XcTDUk+ij421U9nleqkfON4mJur4tjPBsDr3pFRXzucz8kyIGr6efpjA77uibfdMJeBsJ Cc: Joel A Fernandes , Will Drewry , Joe Hershberger , u-boot-review@google.com, Bill Richardson , Randall Spangler , Tom Rini , Vadim Bendebury , =?UTF-8?q?Andreas=20B=C3=A4ck?= , Kees Cook Subject: [U-Boot] [PATCH v2 06/45] image: Export fit_check_ramdisk() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de One we split out the FIT code from image.c we will need this function. Export it in the header. Signed-off-by: Simon Glass Reviewed-by: Marek Vasut --- Changes in v2: None common/image.c | 9 ++------- include/image.h | 3 +++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/common/image.c b/common/image.c index d01b8f6..af66138 100644 --- a/common/image.c +++ b/common/image.c @@ -49,14 +49,9 @@ #include #endif -#if defined(CONFIG_FIT) #include #include -static int fit_check_ramdisk(const void *fit, int os_noffset, - uint8_t arch, int verify); -#endif - #ifdef CONFIG_CMD_BDI extern int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]); #endif @@ -3363,8 +3358,8 @@ void fit_conf_print(const void *fit, int noffset, const char *p) * 0, on failure */ #ifndef USE_HOSTCC -static int fit_check_ramdisk(const void *fit, int rd_noffset, uint8_t arch, - int verify) +int fit_check_ramdisk(const void *fit, int rd_noffset, uint8_t arch, + int verify) { fit_image_print(fit, rd_noffset, " "); diff --git a/include/image.h b/include/image.h index 32a961c..880ce07 100644 --- a/include/image.h +++ b/include/image.h @@ -632,6 +632,9 @@ int fit_conf_get_fdt_node(const void *fit, int noffset); void fit_conf_print(const void *fit, int noffset, const char *p); +int fit_check_ramdisk(const void *fit, int os_noffset, + uint8_t arch, int verify); + #ifndef USE_HOSTCC static inline int fit_image_check_target_arch(const void *fdt, int node) {