U-boot for imx8mq with GZIP

I am trying to build u-boot with GZIP support on my mnt reform 2 with the stock imx8mq SOM.

My starting point was the repo used in building the official images (Reform / reform-boundary-uboot · GitLab). It builds u-boot just fine, but I can’t seem to add GZIP support. It won’t even show up in the menuconfig.

Can someone more knowledgeable than me explain why that is and if there is an easy way to enable GZIP support after all?

In a second attempt, I tried using the upstream u-boot. This, however, ends in a linker error:

git clone https://github.com/u-boot/u-boot.git
cd u-boot
make imx8mq_reform2_defconfig
make flash.bin
/usr/lib/gcc/aarch64-unknown-linux-gnu/13/../../../../aarch64-unknown-linux-gnu/bin/ld: read-only segment has dynamic relocations
collect2: error: ld returned 1 exit status

Any ideas why?

I was also wondering, how far the upstream u-boot is anyway. Is it working at all? Or just partially at least?