]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
cmd: fru: Move fru_data to data section instead of bss section
authorMichal Simek <michal.simek@xilinx.com>
Fri, 12 Apr 2019 09:37:02 +0000 (11:37 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 6 Jun 2019 11:46:52 +0000 (13:46 +0200)
I didn't fully check it but I think that there is an issue to use FIT
images with dtb again when bss section is cleared. U-Boot copy just
origin DTB and if embedded_dtb_select() doesn't find new DTB then can't
go back to origin DTB file.
Move this structure to data section for now.
It should be allocated by malloc anyway.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
common/fru_ops.c

index 75ae1151fe42e281f383d04ed704cd8cd35a11fa..26cb888a96fff69737e3db93a8a28108dc6198b0 100644 (file)
@@ -12,7 +12,7 @@
 #include <asm/arch/hardware.h>
 #include "linux/crc8.h"
 
-struct fru_table fru_data;
+struct fru_table fru_data  __attribute__((section(".data")));
 
 static u16 fru_cal_area_len(u8 len)
 {