Add a very basic NVRAM driver for OPAL which can be used by the IBM powerpc-utils nvram utility, not to be confused with the base nvram utility, which only operates on powermac_nvram. The IBM utility handles all partitions itself, treating the nvram device as a plain store. An alternative would be to manage partitions in the kernel, and augment the base nvram utility to deal with different backing stores, but that complicates the driver significantly. Instead, present the same interface IBM's utlity expects, and we get the usage for free. Tested by: bdragon
11 lines
159 B
Makefile
11 lines
159 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${SRCTOP}/sys/powerpc/powernv
|
|
|
|
KMOD= opal_nvram
|
|
SRCS= opal_nvram.c
|
|
SRCS+= bus_if.h device_if.h
|
|
SRCS+= ofw_bus_if.h
|
|
|
|
.include <bsd.kmod.mk>
|