]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: refactor overlay loading a little bit
authorkevans <kevans@FreeBSD.org>
Thu, 11 Apr 2019 13:26:28 +0000 (13:26 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 11 Apr 2019 13:26:28 +0000 (13:26 +0000)
commitbd383e74e5f43b85b8136a66081221b9c995d99e
tree72210511a7b41c86dea6425d517890b01cf5d0ff
parent3029eefecfb6f982279acda4d941079f142c6520
stand: refactor overlay loading a little bit

It was pointed out that manually loading a .dtb to be used rather than
relying on platform-specific method for loading .dtb will result in overlays
not being applied. This was true because overlay loading was hacked into
fdt_platform_load_dtb, rather than done in a way more independent from how
the .dtb is loaded.

Instead, push overlay loading (for now) out into an
fdt_platform_load_overlays. This method easily allows ubldr to pull in any
fdt_overlays specified in the ub env, and omits overlay-checking on
platforms where they're not tested and/or not desired (e.g. powerpc). If we
eventually stop caring about fdt_overlays from ubenv (if we ever cared),
this method should get chopped out in favor of just calling
fdt_load_dtb_overlays() directly.

Reported by: Manuel Stühn (freebsdnewbie freenet de)
stand/efi/fdt/efi_fdt.c
stand/fdt/fdt_loader_cmd.c
stand/fdt/fdt_platform.h
stand/powerpc/kboot/kbootfdt.c
stand/powerpc/ofw/ofwfdt.c
stand/uboot/fdt/uboot_fdt.c