asm-offsets: generate bd_t size
authorMike Frysinger <vapier@gentoo.org>
Fri, 24 Dec 2010 17:57:23 +0000 (12:57 -0500)
committerWolfgang Denk <wd@denx.de>
Sun, 9 Jan 2011 17:08:20 +0000 (18:08 +0100)
Some ports set up the board info structure at the same time as the global
data structure, and largely keep them together.  So generate a define for
the board info struct too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
lib/asm-offsets.c

index 22095610f931d8ef3253d58f23f78f045be565b0..6f253a6362b360399f2e73ea720c24d54aef21e3 100644 (file)
@@ -25,5 +25,8 @@ int main(void)
        DEFINE(GENERATED_GBL_DATA_SIZE,
                (sizeof(struct global_data)+15) & ~15);
 
+       DEFINE(GENERATED_BD_INFO_SIZE,
+               (sizeof(struct bd_info)+15) & ~15);
+
        return 0;
 }