Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) # SPDX-License-Identifier: GPL-2.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) PREFIX		?= /usr
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3) DESTDIR		?=
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5) all:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6) 	@echo "Nothing to build"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) install : uninstall
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) 	install -d  $(DESTDIR)$(PREFIX)/lib/pm-graph
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 	install sleepgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) 	install bootgraph.py $(DESTDIR)$(PREFIX)/lib/pm-graph
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	install -d  $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	install -m 644 config/cgskip.txt $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	install -m 644 config/freeze-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	install -m 644 config/freeze.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	install -m 644 config/freeze-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 	install -m 644 config/standby-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 	install -m 644 config/standby.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 	install -m 644 config/standby-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) 	install -m 644 config/suspend-callgraph.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	install -m 644 config/suspend.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) 	install -m 644 config/suspend-dev.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 	install -m 644 config/suspend-x2-proc.cfg $(DESTDIR)$(PREFIX)/lib/pm-graph/config
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	install -d  $(DESTDIR)$(PREFIX)/bin
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) 	ln -s ../lib/pm-graph/bootgraph.py $(DESTDIR)$(PREFIX)/bin/bootgraph
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) 	ln -s ../lib/pm-graph/sleepgraph.py $(DESTDIR)$(PREFIX)/bin/sleepgraph
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) 	install -d  $(DESTDIR)$(PREFIX)/share/man/man8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) 	install bootgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) 	install sleepgraph.8 $(DESTDIR)$(PREFIX)/share/man/man8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) uninstall :
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) 	rm -f $(DESTDIR)$(PREFIX)/share/man/man8/bootgraph.8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) 	rm -f $(DESTDIR)$(PREFIX)/share/man/man8/sleepgraph.8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) 	rm -f $(DESTDIR)$(PREFIX)/bin/bootgraph
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) 	rm -f $(DESTDIR)$(PREFIX)/bin/sleepgraph
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) 	rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/config/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) 	if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph/config ] ; then \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) 		rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph/config; \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) 	fi;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) 	rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/__pycache__/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) 	if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph/__pycache__ ] ; then \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) 		rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph/__pycache__; \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) 	fi;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) 	rm -f $(DESTDIR)$(PREFIX)/lib/pm-graph/*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) 	if [ -d $(DESTDIR)$(PREFIX)/lib/pm-graph ] ; then \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 		rmdir $(DESTDIR)$(PREFIX)/lib/pm-graph; \
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) 	fi;