mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-07 20:00:13 +00:00
HV:Acrn-hypvervisor Root Directory Clean-up and create misc/ folder for Acrn daemons, services and tools.
This patch is to clean-up acrn-hypervisor root directory, targt only 5 folders under acrn-hypervisor:1.hypervisor,2.devicemodel,3.misc,4.doc,5.build Tracked-On: #3482 Signed-off-by: Terry Zou <terry.zou@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
31
misc/acrn-config/library/deps.mk
Normal file
31
misc/acrn-config/library/deps.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
# usage: check_dep_exec <executable name> <variable>
|
||||
#
|
||||
# Create a target that checks the existence of the specified executable, and
|
||||
# append that target to the given variable.
|
||||
define check_dep_exec =
|
||||
$(2) += check_exec_$(1)
|
||||
check_exec_$(1):
|
||||
@if ! which $(1) > /dev/null; then \
|
||||
echo "******** Missing prerequisite tool ********"; \
|
||||
echo "Cannot find executable *$(1)*"; \
|
||||
echo "Please refer to the Getting Started Guide" \
|
||||
"for installation instructions"; \
|
||||
exit 1; \
|
||||
fi
|
||||
endef
|
||||
|
||||
# usage: check_dep_py3lib <library name> <variable>
|
||||
#
|
||||
# Create a target that checks the existence of the specified python 3 library, and
|
||||
# append that target to the given variable.
|
||||
define check_dep_py3lib =
|
||||
$(2) += check_py3lib_$(1)
|
||||
check_py3lib_$(1):
|
||||
@if ! python3 -c "import $(1)" > /dev/null 2>&1; then \
|
||||
echo "******** Missing prerequisite tool ********"; \
|
||||
echo "The python3 library *$(1)* is not installed"; \
|
||||
echo "Please refer to the Getting Started Guide" \
|
||||
"for installation instructions"; \
|
||||
exit 1; \
|
||||
fi
|
||||
endef
|
Reference in New Issue
Block a user