mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 07:55:03 +07:00
a6fbdbb2b8
- name change: analyze_boot.py to bootgraph.py - name change: analyze_suspend.py to sleepgraph.py - added config files for easier sleepgraph usage - added example.cfg which describes all config options - added cgskip.txt definition for slimmer callgraphs Signed-off-by: Todd Brandt <todd.e.brandt@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
48 lines
2.0 KiB
Makefile
48 lines
2.0 KiB
Makefile
# SPDX-License-Identifier: GPL-2.0
|
|
PREFIX ?= /usr
|
|
DESTDIR ?=
|
|
|
|
all:
|
|
@echo "Nothing to build"
|
|
|
|
install : uninstall
|
|
install -d $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
install sleepgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
install bootgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph
|
|
install -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/cgskip.txt $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/freeze-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/freeze.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/freeze-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/standby-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/standby.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/standby-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/suspend-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/suspend.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/suspend-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
install -m 644 config/suspend-x2-proc.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/bin
|
|
ln -s $(DESTDIR)$(PREFIX)/lib/pm-graph/bootgraph.py $(DESTDIR)$(PREFIX)/bin/bootgraph
|
|
ln -s $(DESTDIR)$(PREFIX)/lib/pm-graph/sleepgraph.py $(DESTDIR)$(PREFIX)/bin/sleepgraph
|
|
|
|
install -d $(DESTDIR)$(PREFIX)/share/man/man8
|
|
install bootgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
|
|
install sleepgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
|
|
|
|
uninstall :
|
|
rm -f $(DESTDIR)$(PREFIX)/share/man/man8/bootgraph.8
|
|
rm -f $(DESTDIR)$(PREFIX)/share/man/man8/sleepgraph.8
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/bootgraph
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/sleepgraph
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/config/*
|
|
if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config ] ; then \
|
|
rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph/config; \
|
|
fi;
|
|
rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/*
|
|
if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph ] ; then \
|
|
rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph; \
|
|
fi;
|