ppc64-diag/ppc64-diag-2.6.2-prrnscriptloc.patch
Vasant Hegde 469091fa69 Fix minor build issue. Also install PRRN hotplug script
into proper location.

Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2013-09-15 17:28:52 +05:30

49 lines
1.7 KiB
Diff

From ee73019f875b15e011f5af2c41386f780b5a65cb Mon Sep 17 00:00:00 2001
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date: Sun, 15 Sep 2013 17:13:57 +0530
Subject: [PATCH] Fix PRRN hotplug script location
Install PRRN Hotplug scripts into proper directory.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
---
rtas_errd/Makefile | 4 ++--
rtas_errd/prrn.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/rtas_errd/Makefile b/rtas_errd/Makefile
index d5427d5..a255979 100644
--- a/rtas_errd/Makefile
+++ b/rtas_errd/Makefile
@@ -38,12 +38,12 @@ extract_platdump: $(EXTRACT_PLATDUMP_OBJS)
install: all
@$(call install_sbin,$(CMDS),$(DESTDIR))
@$(call install_files,$(SCRIPTS),744,$(DESTDIR)/etc)
- @$(call install_files,$(PRRN_HOTPLUG),744,$(DESTDIR)/etc/ppc64-diag)
+ @$(call install_files,$(PRRN_HOTPLUG),744,$(DESTDIR)/usr/libexec/ppc64-diag)
uninstall:
@$(call uninstall_sbin,$(CMDS),$(DESTDIR))
@$(call uninstall_files,$(SCRIPTS),$(DESTDIR)/etc)
- @$(call uninstall_files,$(PRRN_HOTPLUG),$(DESTDIR)/etc/ppc64-diag)
+ @$(call uninstall_files,$(PRRN_HOTPLUG),$(DESTDIR)/usr/libexec/ppc64-diag)
doc: $(DOXYGEN_CFG)
@echo "Creating doxygen docs..."
diff --git a/rtas_errd/prrn.c b/rtas_errd/prrn.c
index 8bfe7ac..71cebb9 100644
--- a/rtas_errd/prrn.c
+++ b/rtas_errd/prrn.c
@@ -39,7 +39,7 @@ static int prrn_log_fd = -1;
#define OFDT_BASE "/proc/device-tree"
#define OFDTPATH "/proc/ppc64/ofdt"
-#define PRRN_HOTPLUG "/etc/ppc64-diag/prrn_hotplug"
+#define PRRN_HOTPLUG "/usr/libexec/ppc64-diag/prrn_hotplug"
#define DRCONF_PATH "/proc/device-tree/ibm,dynamic-reconfiguration-memory/ibm,dynamic-memory"
static int write_prrn_log(const char *buf, int len)
--
1.7.11.7