소스 검색

asm-offsets: generate bd_t size

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>
Mike Frysinger 14 년 전
부모
커밋
89c95f0cd3
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      lib/asm-offsets.c

+ 3 - 0
lib/asm-offsets.c

@@ -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;
 }