I'm seeing a build failure with meta-freescale when using kirkstone branch.
I simply cloned poky & meta-freescale, adding meta-freescale as a bblayer and set the machine to t1024rdb....
db-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.c
| make -f /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/scripts/Makefile.build obj=disk
| make -f /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/scripts/Makefile.build obj=drivers
| In file included from /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/include/compiler.h:8,
| from /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/include/env.h:12,
| from /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/include/command.h:13,
| from /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:8:
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c: In function 'checkboard':
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:13:34: error: invalid use of undefined type 'struct cpld_data'
| 13 | #define CPLD_READ(reg) cpld_read(offsetof(struct cpld_data, reg))
| | ^~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:61:16: note: in expansion of macro 'CPLD_READ'
| 61 | CPLD_READ(hw_ver), CPLD_READ(sw_ver));
| | ^~~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:13:34: error: invalid use of undefined type 'struct cpld_data'
| 13 | #define CPLD_READ(reg) cpld_read(offsetof(struct cpld_data, reg))
| | ^~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:61:35: note: in expansion of macro 'CPLD_READ'
| 61 | CPLD_READ(hw_ver), CPLD_READ(sw_ver));
| | ^~~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:13:34: error: invalid use of undefined type 'struct cpld_data'
| 13 | #define CPLD_READ(reg) cpld_read(offsetof(struct cpld_data, reg))
| | ^~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:74:15: note: in expansion of macro 'CPLD_READ'
| 74 | reg = CPLD_READ(flash_csr);
| | ^~~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c: In function 'board_mux_lane':
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:13:34: error: invalid use of undefined type 'struct cpld_data'
| 13 | #define CPLD_READ(reg) cpld_read(offsetof(struct cpld_data, reg))
| | ^~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:104:18: note: in expansion of macro 'CPLD_READ'
| 104 | u8 reg = CPLD_READ(misc_ctl_status);
| | ^~~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:15:28: error: invalid use of undefined type 'struct cpld_data'
| 15 | cpld_write(offsetof(struct cpld_data, reg), value)
| | ^~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:112:17: note: in expansion of macro 'CPLD_WRITE'
| 112 | CPLD_WRITE(misc_ctl_status, reg & ~CPLD_PCIE_SGMII_MUX);
| | ^~~~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:15:28: error: invalid use of undefined type 'struct cpld_data'
| 15 | cpld_write(offsetof(struct cpld_data, reg), value)
| | ^~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:115:17: note: in expansion of macro 'CPLD_WRITE'
| 115 | CPLD_WRITE(misc_ctl_status, reg | CPLD_PCIE_SGMII_MUX);
| | ^~~~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:15:28: error: invalid use of undefined type 'struct cpld_data'
| 15 | cpld_write(offsetof(struct cpld_data, reg), value)
| | ^~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:117:9: note: in expansion of macro 'CPLD_WRITE'
| 117 | CPLD_WRITE(boot_override, CPLD_OVERRIDE_MUX_EN);
| | ^~~~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c: In function 'board_reset':
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/cpld.h:15:28: error: invalid use of undefined type 'struct cpld_data'
| 15 | cpld_write(offsetof(struct cpld_data, reg), value)
| | ^~~~~~~~
| /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/board/freescale/t102xrdb/t102xrdb.c:178:9: note: in expansion of macro 'CPLD_WRITE'
| 178 | CPLD_WRITE(reset_ctl1, CPLD_LBMAP_RESET);
| | ^~~~~~~~~~
| In file included from /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/include/compiler.h:8,
| from /home/wruser/sciex/poky/build/tmp/work/t1024rdb-poky-linux/u-boot-qoriq/2021.04+fslgit-r0/git/include/env.h:12,
The latest Yocto SDK which NXP supports for T1024 is
dunfell | YP 3.1–LSDK 2004