SKALE-4110 fix build base

parent d5aecacc
...@@ -13,13 +13,13 @@ index 1f3efdb..cd8df2e 100644 ...@@ -13,13 +13,13 @@ index 1f3efdb..cd8df2e 100644
-else -else
-$(error "Unsupported platform - neither systemctl nor initctl is found!") -$(error "Unsupported platform - neither systemctl nor initctl is found!")
-endif -endif
+ ifneq ($(shell awk -F/ '$$2 == "docker"' /proc/self/cgroup),) + ifneq ($(shell awk -F/ '$$2 == "docker"' /proc/self/cgroup),)
+ RAD_CONF_NAME=mpa_registration_tool.service + RAD_CONF_NAME=mpa_registration_tool.service
+ RAD_CONF_DEL=mpa_registration.conf + RAD_CONF_DEL=mpa_registration.conf
+ RAD_CONF_PATH=/lib/systemd/system + RAD_CONF_PATH=/lib/systemd/system
+ else + else
+ @exit 0 + @exit 0
+ endif + endif
endif endif
#install -d $(shell readlink -m $(DESTDIR)/$(SGX_RA_SERVICE_PACKAGE_NAME)/$(RAD_CONF_PATH)) #install -d $(shell readlink -m $(DESTDIR)/$(SGX_RA_SERVICE_PACKAGE_NAME)/$(RAD_CONF_PATH))
...@@ -65,14 +65,14 @@ index 89c5b21..aa70c4b 100644 ...@@ -65,14 +65,14 @@ index 89c5b21..aa70c4b 100644
-else -else
-$(error "Unsupported platform - neither systemctl nor initctl is found!") -$(error "Unsupported platform - neither systemctl nor initctl is found!")
-endif -endif
+ ifneq ($(shell awk -F/ '$$2 == "docker"' /proc/self/cgroup),) + ifneq ($(shell awk -F/ '$$2 == "docker"' /proc/self/cgroup),)
+ AESMD_CONF_NAME=aesmd.service + AESMD_CONF_NAME=aesmd.service
+ AESMD_CONF_DEL=aesmd.conf + AESMD_CONF_DEL=aesmd.conf
+ AESMD_CONF_PATH=/lib/systemd/system + AESMD_CONF_PATH=/lib/systemd/system
+ $(warning "You may need to start aesmd manually after it's installed!") + $(warning "You may need to start aesmd manually after it's installed!")
+ else + else
+ @exit 0 + @exit 0
+ endif + endif
endif endif
default: default:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment