mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
This is just a placeholder dummy plugin and will be replaced by a proper plugin that implements support for AMD GPU devices. This just facilitates the initial pull request and CI build test trigger for early code review of CRIU specific changes. Future PRs will bring in more support for amdgpu_plugin to enable CRIU with AMD ROCm. Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
63 lines
1.5 KiB
Text
63 lines
1.5 KiB
Text
#
|
|
# Installation paths.
|
|
PREFIX ?= /usr/local
|
|
BINDIR ?= $(PREFIX)/bin
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
INCLUDEDIR ?= $(PREFIX)/include
|
|
LIBEXECDIR ?= $(PREFIX)/libexec
|
|
RUNDIR ?= /run
|
|
PLUGINDIR ?= /var/lib/criu
|
|
|
|
#
|
|
# For recent Debian/Ubuntu with multiarch support.
|
|
DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null)
|
|
ifneq "$(DEB_HOST_MULTIARCH)" ""
|
|
LIBDIR ?= $(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
|
|
else
|
|
#
|
|
# For most other systems
|
|
ifeq "$(shell uname -m)" "x86_64"
|
|
LIBDIR ?= $(PREFIX)/lib64
|
|
endif
|
|
endif
|
|
|
|
#
|
|
# LIBDIR falls back to the standard path.
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
|
|
export PREFIX BINDIR SBINDIR MANDIR RUNDIR
|
|
export LIBDIR INCLUDEDIR LIBEXECDIR PLUGINDIR
|
|
|
|
install-man:
|
|
$(Q) $(MAKE) -C Documentation install
|
|
.PHONY: install-man
|
|
|
|
install-lib: lib
|
|
$(Q) $(MAKE) $(build)=lib install
|
|
.PHONY: install-lib
|
|
|
|
install-criu: criu
|
|
$(Q) $(MAKE) $(build)=criu install
|
|
.PHONY: install-criu
|
|
|
|
install-dummy_amdgpu_plugin: dummy_amdgpu_plugin
|
|
$(Q) $(MAKE) -C plugins/amdgpu install
|
|
.PHONY: install-dummy_amdgpu_plugin
|
|
|
|
install-compel: $(compel-install-targets)
|
|
$(Q) $(MAKE) $(build)=compel install
|
|
$(Q) $(MAKE) $(build)=compel/plugins install
|
|
.PHONY: install-compel
|
|
|
|
install: install-man install-lib install-criu install-compel ;
|
|
.PHONY: install
|
|
|
|
uninstall:
|
|
$(Q) $(MAKE) -C Documentation $@
|
|
$(Q) $(MAKE) $(build)=lib $@
|
|
$(Q) $(MAKE) $(build)=criu $@
|
|
$(Q) $(MAKE) $(build)=compel $@
|
|
$(Q) $(MAKE) $(build)=compel/plugins $@
|
|
$(Q) $(MAKE) -C plugins/amdgpu $@
|
|
.PHONY: uninstall
|