From patchwork Wed Oct 27 20:31:09 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Partington X-Patchwork-Id: 71947 X-Patchwork-Delegate: wd@denx.de Return-Path: X-Original-To: wd@gemini.denx.de Delivered-To: wd@gemini.denx.de Received: from diddl.denx.de (diddl.denx.de [10.0.0.6]) by gemini.denx.de (Postfix) with ESMTP id B034A152451 for ; Wed, 27 Oct 2010 22:32:24 +0200 (CEST) Received: from diddl.denx.de (localhost.localdomain [127.0.0.1]) by diddl.denx.de (Postfix) with ESMTP id 9012C3364F87 for ; Wed, 27 Oct 2010 22:32:24 +0200 (CEST) Received: from pop.mnet-online.de by diddl.denx.de with POP3 (fetchmail-6.3.17) for (single-drop); Wed, 27 Oct 2010 22:32:24 +0200 (CEST) Received: from murder ([192.168.8.180]) by backend2 (Cyrus v2.2.12) with LMTPA; Wed, 27 Oct 2010 22:31:54 +0200 X-Sieve: CMU Sieve 2.2 Received: from mail.m-online.net (localhost [127.0.0.1]) by frontend1.mail.m-online.net (Cyrus v2.2.12) with LMTPA; Wed, 27 Oct 2010 22:31:54 +0200 Received: from scanner-2.m-online.net (scanner-2.mail.m-online.net [192.168.8.166]) by mail.m-online.net (Postfix) with ESMTP id 856221C002A1; Wed, 27 Oct 2010 22:31:54 +0200 (CEST) Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by mxin-3.m-online.net (Postfix) with ESMTP id 111DA46AF21; Wed, 27 Oct 2010 22:31:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0C078280AC; Wed, 27 Oct 2010 22:31:48 +0200 (CEST) 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 muQmAzNMTRO6; Wed, 27 Oct 2010 22:31:47 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 31DBA280AD; Wed, 27 Oct 2010 22:31:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 232DA280A7 for ; Wed, 27 Oct 2010 22:31:39 +0200 (CEST) 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 gKPi-4rvTXc5 for ; Wed, 27 Oct 2010 22:31:36 +0200 (CEST) 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 exprod8og118.obsmtp.com (exprod8og118.obsmtp.com [64.18.3.36]) by theia.denx.de (Postfix) with SMTP id 0C23F280A5 for ; Wed, 27 Oct 2010 22:31:34 +0200 (CEST) Received: from source ([192.146.101.10]) by exprod8ob118.postini.com ([64.18.7.12]) with SMTP ID DSNKTMiMJa3DLhHvhjLdHByUL1rCtUV3+lc+@postini.com; Wed, 27 Oct 2010 13:31:36 PDT Received: from lxkssmtp2e.lex.lexmark.com (smtp5b.notes.lexmark.com [157.184.50.112]) by smtp04a.notes.lexmark.com (Postfix) with ESMTP id D44551300AE for ; Wed, 27 Oct 2010 16:31:32 -0400 (EDT) Received: from thoth.lpdev.prtdev.lexmark.com ([10.199.21.29]) by lxkssmtp2e.lex.lexmark.com (Lotus Domino Release 6.5.5) with ESMTP id 2010102716313177-332161 ; Wed, 27 Oct 2010 16:31:31 -0400 Received: from windstar.lpdev.prtdev.lexmark.com (windstar.lpdev.prtdev.lexmark.com [157.184.40.73]) by thoth.lpdev.prtdev.lexmark.com (Postfix) with ESMTP id 5301CBE0077; Wed, 27 Oct 2010 16:31:27 -0400 (EDT) Received: (from mparting@localhost) by windstar.lpdev.prtdev.lexmark.com (8.13.8/8.13.8/Submit) id o9RKVRKj032479; Wed, 27 Oct 2010 16:31:27 -0400 From: Mike Partington To: u-boot@lists.denx.de Date: Wed, 27 Oct 2010 16:31:09 -0400 Message-Id: <1288211469-32443-1-git-send-email-mparting@lexmark.com> X-Mailer: git-send-email 1.7.3.5.g4a3b In-Reply-To: <4CC8813A.7080800@dawes.za.net> References: <4CC8813A.7080800@dawes.za.net> X-LPDEV-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 5301CBE0077.AAC86 X-LPDEV-MailScanner: Found to be clean X-LPDEV-MailScanner-SpamScore: sss X-LPDEV-MailScanner-From: mparting@lpdev.prtdev.lexmark.com X-MIMETrack: Itemize by SMTP Server on smtp5b/Lex/Lexmark(Release 6.5.5|November 30, 2005) at 10/27/2010 16:31:31, Serialize by Router on smtp5b/Lex/Lexmark(Release 6.5.5|November 30, 2005) at 10/27/2010 16:31:32, Serialize complete at 10/27/2010 16:31:32 Cc: Mike Partington Subject: [U-Boot] [PATCH v2] Standalone Apps: Standalone apps should need only exports.h. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 X-Virus-Scanned: by amavisd-new at m-online.net Modify exports.h to remove its dependencies on other files, thus enabling standalone apps to require only exports.h from the U-Boot source tree. This appears to be the intent based on the following note: http://lists.denx.de/pipermail/u-boot/2010-January/067174.html Signed-off-by: Mike Partington --- Changes for v2: - Replace domain specific email address with generic address examples/standalone/atmel_df_pow2.c | 1 + examples/standalone/stubs.c | 1 + include/exports.h | 5 +---- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/standalone/atmel_df_pow2.c b/examples/standalone/atmel_df_pow2.c index b5b4503..2e14aba 100644 --- a/examples/standalone/atmel_df_pow2.c +++ b/examples/standalone/atmel_df_pow2.c @@ -8,6 +8,7 @@ #include #include +#include #define CMD_ID 0x9f #define CMD_STAT 0xd7 diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c index 2d2e709..1ebe43b 100644 --- a/examples/standalone/stubs.c +++ b/examples/standalone/stubs.c @@ -1,3 +1,4 @@ +#include #include #ifndef GCC_VERSION diff --git a/include/exports.h b/include/exports.h index 7404a7c..01b83dc 100644 --- a/include/exports.h +++ b/include/exports.h @@ -3,8 +3,6 @@ #ifndef __ASSEMBLY__ -#include - /* These are declarations of exported functions available in C code */ unsigned long get_version(void); int getc(void); @@ -12,7 +10,7 @@ int tstc(void); void putc(const char); void puts(const char*); int printf(const char* fmt, ...); -void install_hdlr(int, interrupt_handler_t*, void*); +void install_hdlr(int, void (*interrupt_handler_t)(void *), void*); void free_hdlr(int); void *malloc(size_t); void free(void*); @@ -30,7 +28,6 @@ int ustrtoul(const char *cp, char **endp, unsigned int base); int i2c_write (uchar, uint, int , uchar* , int); int i2c_read (uchar, uint, int , uchar* , int); #endif -#include void app_startup(char * const *);