From 91ba67605de8ff5f15c335db4330594e07b5317e Mon Sep 17 00:00:00 2001 From: Sam Mendoza-Jonas Date: Tue, 22 Dec 2015 10:39:28 +0800 Subject: utils/hooks: Write offb device address to device tree On OpenPOWER machines, kernels missing the AST video driver can use the existing 'Open Firmware' framebuffer device code to inherit an existing framebuffer from Petitboot. This requires us to translate the 64-bit address of the framebuffer 'back' into a PCI address and write it into an assigned-addresses property in the device tree. Bootstrapped-by: Jeremy Kerr Signed-off-by: Sam Mendoza-Jonas --- utils/Makefile.am | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'utils/Makefile.am') diff --git a/utils/Makefile.am b/utils/Makefile.am index 9b36619..403f46d 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -19,6 +19,15 @@ sbin_PROGRAMS += utils/pb-event utils/pb-config utils_pb_config_LDADD = $(top_builddir)/lib/libpbcore.la \ $(top_builddir)/discover/platform.ro +utils_hooks_30_add_offb_SOURCES = utils/hooks/30-add-offb.c +utils_hooks_30_add_offb_LDADD = $(top_builddir)/lib/libpbcore.la \ + $(FDT_LIBS) + +if HAVE_LIBFDT +noinst_PROGRAMS = \ + utils/hooks/30-add-offb +endif + dist_pkgdata_DATA = \ utils/kboot.conf.sample \ utils/bb-kexec-reboot \ -- cgit v1.2.1