forked from OERV-BSP/u-boot
This was apparently not built for several years: Sincea2535243e0, optee_copy_fdt_nodes implicitly works against the U-Boot dt. We therefore have to tweak its reference before using the function and restore things afterwards. If it had been built, actually trying it out would have failed next: We need CONFIG_OPTEE_LIB to actually build the function that is primarily being tested here. And we need to re-initialize target fdt, now that the tests may run in random order. Fixes:a2535243e0("lib: optee: migration optee_copy_fdt_nodes for OF_LIVE support") Fixes:ba2feaf414("test: Split optee tests into three functions") Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>