[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 02/13] build: Introduce a new variable UK_FAMILY
This patch series modifies the folder layout organized by CPU families like: unikraft----arch----arm----arm | |-----arm64 | |-----x86----x86 |-----x86_64 In this case, we introduce a new variable UK_FAMILY for build scipts. we should not expect the user to set or select UK_FAMILY in a menu or by setting the variable externally. So we retrieve UK_FAMILY directly from UK_ARCH. Because of this we can keep Compiler.uk, Makefile.uk, and Config.uk directly under the UK_FAMILY directory. Signed-off-by: Wei Chen <Wei.Chen@xxxxxxx> --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 801b82f..63495ca 100644 --- a/Makefile +++ b/Makefile @@ -337,6 +337,16 @@ endif override ARCH := $(UK_ARCH) export UK_ARCH ARCH +# Retrive target CPU family from architecture +export UK_FAMILY ?= $(shell echo "$(UK_ARCH)" | \ + sed -e "s/-.*//" \ + -e 's//\1/' \ + -e 's/x86.*/x86/' \ + -e 's/sparc64/sparc/' \ + -e 's/arm.*/arm/' \ + -e 's/powerpc.*/powerpc/' \ + -e 's/sh.*/sh/' ) + # Quick-check if architecture exists ifeq ($(filter $(null_targets) print-vars,$(MAKECMDGOALS)),) ifeq ($(wildcard $(UK_BASE)/arch/$(ARCH)/Makefile.uk),) -- 2.7.4 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |