I think the condition is required, only if set linux-libc-headers to EXTRADEPENDS, it makes sense to add vardep of do_create_spdx. That's why adding the code along with adding linux-libc-headers to gcc-cross's depends. //Hongxu