]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
build: Remove obsolete relative paths handling for external libs
authorSimon Kuenzer <simon@unikraft.io>
Thu, 12 Oct 2023 13:18:21 +0000 (15:18 +0200)
committerRazvan Deaconescu <razvand@unikraft.io>
Fri, 20 Oct 2023 16:35:55 +0000 (19:35 +0300)
This commit removes obsolete build system code that checked if external
libraries and external platforms were handed over from `$(UK_BASE)`
(Application directory or Unikraft root). Relative paths were never
supported and in the meantime, arguments are even checked to be absolute.

Signed-off-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Reviewed-by: Michalis Pappas <michalis@unikraft.io>
Reviewed-by: Maria Sfiraiala <maria.sfiraiala@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #1104

Makefile

index b733e1bad8fd9ab3b8c9545d9adc2a6444251633..48deb4db2843ba7527961e539976d583b8900e8d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -178,11 +178,8 @@ ifeq ("$(origin P)", "command line")
 $(foreach ITR,$(subst :, ,$(P)), \
 $(if $(filter /%,$(ITR)),,$(error Path to external platform "$(ITR)" (P) is not absolute));\
 $(if $(wildcard $(ITR)), \
-       $(eval EPLAT_DIR += $(ITR)) \
-, $(if $(wildcard $(CONFIG_UK_BASE)/$(ITR)),\
-       $(eval EPLAT_DIR += $(CONFIG_UK_BASE)/$(ITR)), \
-       $(error Cannot find platform library: $(ITR)) \
-   ) \
+$(eval EPLAT_DIR += $(realpath $(patsubst %/,%,$(patsubst %.,%,$(ITR))))), \
+$(error Cannot find platform library: $(ITR)) \
 ) \
 )
 endif
@@ -195,11 +192,8 @@ ifeq ("$(origin L)", "command line")
 $(foreach ITR,$(subst :, ,$(L)), \
 $(if $(filter /%,$(ITR)),,$(error Path to external library "$(ITR)" (L) is not absolute));\
 $(if $(wildcard $(ITR)), \
-       $(eval ELIB_DIR += $(ITR)) \
-, $(if $(wildcard $(CONFIG_UK_BASE)/$(ITR)),\
-       $(eval ELIB_DIR += $(CONFIG_UK_BASE)/$(ITR)), \
-       $(error Cannot find library: $(ITR)) \
-   )\
+$(eval ELIB_DIR += $(ITR)), \
+$(error Cannot find library: $(ITR)) \
 ) \
 )
 endif