]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
build: Detect host environment
authorSimon Kuenzer <simon@unikraft.io>
Wed, 11 Jan 2023 00:47:53 +0000 (01:47 +0100)
committerUnikraft <monkey@unikraft.io>
Fri, 11 Aug 2023 10:21:30 +0000 (10:21 +0000)
This commit intorduces thwe build variable $(HOSTOSENV) which contains the
host environmenrt (e.g., Linux, Darwin) so that the build system is able to
behave appropriately to the details of the host environment.

Checkpatch-Ignore: FSF_MAILING_ADDRESS
Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Alexander Jung <alex@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #1034

Makefile

index ce60f922a3b94e4c75e25d4af9acb4c0bd10435b..6213c91e7d6350f2b2ee4f01335c41a9b5a9d08f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,8 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 #
 
+HOSTOSENV := $(shell uname)
+
 # Trick for always running with a fixed umask
 UMASK = 0022
 ifneq ($(shell umask),$(UMASK))