From what I can tell, this warning is generated because xfsbl_hw.h is being injected into psu_init.h by CMake.
|
list(PREPEND defs "#include \"xfsbl_hw.h\"\n\n") |
CRL_APB_RST_LPD_TOP is defined in my HW designs generated psu_init.c and also in xfsbl_hw.h. The included board files under misc also define CRL_APB_RST_LPD_TOP and would have the same warning generated if used, so I suspect this isn't a problem with my particular HW design files.
|
#define CRL_APB_RST_LPD_TOP ((CRL_APB_BASEADDR) + 0X0000023CU) |
|
#define CRL_APB_RST_LPD_TOP ( ( CRL_APB_BASEADDR ) + 0X0000023CU ) |
I removed the xfsbl_hw.h injection from CMakeLists.txt and was able to compile successfully without any errors or warnings. I'm not sure what the intended purpose of injecting that header is, maybe there are cases where it is needed, but it seems to only cause problems for me and doesn't appear to be needed.
From what I can tell, this warning is generated because
xfsbl_hw.his being injected intopsu_init.hby CMake.embeddedsw/lib/sw_apps/zynqmp_fsbl/src/CMakeLists.txt
Line 29 in 97f2baf
CRL_APB_RST_LPD_TOPis defined in my HW designs generatedpsu_init.cand also inxfsbl_hw.h. The included board files under misc also defineCRL_APB_RST_LPD_TOPand would have the same warning generated if used, so I suspect this isn't a problem with my particular HW design files.embeddedsw/lib/sw_apps/zynqmp_fsbl/misc/zcu102/psu_init.c
Line 22379 in 97f2baf
embeddedsw/lib/sw_apps/zynqmp_fsbl/src/xfsbl_hw.h
Line 264 in 97f2baf
I removed the
xfsbl_hw.hinjection fromCMakeLists.txtand was able to compile successfully without any errors or warnings. I'm not sure what the intended purpose of injecting that header is, maybe there are cases where it is needed, but it seems to only cause problems for me and doesn't appear to be needed.