summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/google/Makefile
diff options
context:
space:
mode:
authorWei-Ning Huang <wnhuang@google.com>2017-04-12 18:56:19 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-18 18:05:23 +0200
commit049a59db34eb4c41a0231f983f180053db8f80d4 (patch)
tree7ea69c30732d0825bb6a744949af6a8fe8a26551 /drivers/firmware/google/Makefile
parentfirmware: Google VPD: import lib_vpd source files (diff)
downloadlinux-049a59db34eb4c41a0231f983f180053db8f80d4.tar.xz
linux-049a59db34eb4c41a0231f983f180053db8f80d4.zip
firmware: Google VPD sysfs driver
This patch introduces the Google Vital Product Data driver. This driver reads Vital Product Data from coreboot tables and then creates the corresponding sysfs entries under /sys/firmware/vpd to provide easy access for userspace programs (does not require flashrom). The sysfs is structured as follow: /sys/firmware/vpd |-- ro | |-- key1 | `-- key2 |-- ro_raw |-- rw | `-- key1 `-- rw_raw Where ro_raw and rw_raw contain the raw VPD partition. The files under ro and rw correspond to the key name in the VPD and the the file content is the value for the key. Signed-off-by: Wei-Ning Huang <wnhuang@google.com> Signed-off-by: Thierry Escande <thierry.escande@collabora.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/firmware/google/Makefile')
-rw-r--r--drivers/firmware/google/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/google/Makefile b/drivers/firmware/google/Makefile
index bb952c686d3b..bc4de02202ad 100644
--- a/drivers/firmware/google/Makefile
+++ b/drivers/firmware/google/Makefile
@@ -6,3 +6,6 @@ obj-$(CONFIG_GOOGLE_COREBOOT_TABLE_OF) += coreboot_table-of.o
obj-$(CONFIG_GOOGLE_MEMCONSOLE) += memconsole.o
obj-$(CONFIG_GOOGLE_MEMCONSOLE_COREBOOT) += memconsole-coreboot.o
obj-$(CONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY) += memconsole-x86-legacy.o
+
+vpd-sysfs-y := vpd.o vpd_decode.o
+obj-$(CONFIG_GOOGLE_VPD) += vpd-sysfs.o