diff options
author | Thomas Wood <thomas.wood@intel.com> | 2015-09-04 14:46:45 +0100 |
---|---|---|
committer | Thomas Wood <thomas.wood@intel.com> | 2015-09-08 16:14:45 +0100 |
commit | 9ecb50e5c55c4d287f9f083b41d5e51b6a9d9ad2 (patch) | |
tree | ec3db630e7104ad64e73e45e4e765712407bed38 /tools/intel_reg.c | |
parent | af9791849467a3437e0920c8f08c5a646302da7d (diff) |
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 <jani.nikula@linux.intel.com>
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
Diffstat (limited to 'tools/intel_reg.c')
-rw-r--r-- | tools/intel_reg.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |