From 9ecb50e5c55c4d287f9f083b41d5e51b6a9d9ad2 Mon Sep 17 00:00:00 2001 From: Thomas Wood Date: Fri, 4 Sep 2015 14:46:45 +0100 Subject: tools: install the register definition files Install the register definition files and use them by default in intel_reg. v2: remove redundant path check Suggested-by: Jani Nikula Signed-off-by: Thomas Wood --- tools/intel_reg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/intel_reg.c') diff --git a/tools/intel_reg.c b/tools/intel_reg.c index 190aa5b3..95760db8 100644 --- a/tools/intel_reg.c +++ b/tools/intel_reg.c @@ -713,7 +713,7 @@ static int get_reg_spec_file(char *buf, size_t buflen, const char *dir, static int read_reg_spec(struct config *config) { char buf[PATH_MAX]; - char *path; + const char *path; struct stat st; int r; @@ -722,7 +722,7 @@ static int read_reg_spec(struct config *config) path = getenv("INTEL_REG_SPEC"); if (!path) - goto builtin; + path = PKGDATADIR"/registers"; r = stat(path, &st); if (r) { -- cgit v1.2.3