mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
build: always use BASEDIR for xen sub-directory
Modify Makefiles using $(XEN_ROOT)/xen to use $(BASEDIR) instead. This is removing the dependency to xen subdirectory preventing using a wrong configuration file when xen subdirectory is duplicated for compilation tests. Signed-off-by: Bertrand Marquis <bertrand.marquis@arm.com> Acked-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
93508595d5
commit
e4e64408f5
4 files changed
+8
-8
No files matched your search
+3
-3
@@ -78,14 +78,14 @@ obj-$(CONFIG_UBSAN) += ubsan/
|
||||
obj-$(CONFIG_NEEDS_LIBELF) += libelf/
|
||||
obj-$(CONFIG_HAS_DEVICE_TREE) += libfdt/
|
||||
|
||||
CONF_FILE := $(if $(patsubst /%,,$(KCONFIG_CONFIG)),$(XEN_ROOT)/xen/)$(KCONFIG_CONFIG)
|
||||
CONF_FILE := $(if $(patsubst /%,,$(KCONFIG_CONFIG)),$(BASEDIR)/)$(KCONFIG_CONFIG)
|
||||
config.gz: $(CONF_FILE)
|
||||
gzip -c $< >$@
|
||||
|
||||
config_data.o: config.gz
|
||||
|
||||
config_data.S: $(XEN_ROOT)/xen/tools/binfile
|
||||
$(SHELL) $(XEN_ROOT)/xen/tools/binfile $@ config.gz xen_config_data
|
||||
config_data.S: $(BASEDIR)/tools/binfile
|
||||
$(SHELL) $(BASEDIR)/tools/binfile $@ config.gz xen_config_data
|
||||
|
||||
clean::
|
||||
rm -f config_data.S config.gz 2>/dev/null
|
||||
@@ -3,6 +3,6 @@ include $(XEN_ROOT)/Config.mk
|
||||
.PHONY: all
|
||||
all: cpuid-autogen.h
|
||||
|
||||
cpuid-autogen.h: $(XEN_ROOT)/xen/include/public/arch-x86/cpufeatureset.h $(XEN_ROOT)/xen/tools/gen-cpuid.py
|
||||
$(PYTHON) $(XEN_ROOT)/xen/tools/gen-cpuid.py -i $< -o $@.new
|
||||
cpuid-autogen.h: $(BASEDIR)/include/public/arch-x86/cpufeatureset.h $(BASEDIR)/tools/gen-cpuid.py
|
||||
$(PYTHON) $(BASEDIR)/tools/gen-cpuid.py -i $< -o $@.new
|
||||
$(call move-if-changed,$@.new,$@)
|
||||
@@ -9,7 +9,7 @@ Q :=
|
||||
kecho := :
|
||||
|
||||
# eventually you'll want to do out of tree builds
|
||||
srctree := $(XEN_ROOT)/xen
|
||||
srctree := $(BASEDIR)
|
||||
objtree := $(srctree)
|
||||
src := tools/kconfig
|
||||
obj := $(src)
|
||||
|
||||
@@ -35,8 +35,8 @@ $(subst include/,%/,$(AV_H_FILES)): $(AV_H_DEPEND) $(mkaccess) FORCE
|
||||
obj-bin-$(CONFIG_XSM_FLASK_POLICY) += flask-policy.o
|
||||
flask-policy.o: policy.bin
|
||||
|
||||
flask-policy.S: $(XEN_ROOT)/xen/tools/binfile
|
||||
$(SHELL) $(XEN_ROOT)/xen/tools/binfile -i $@ policy.bin xsm_flask_init_policy
|
||||
flask-policy.S: $(BASEDIR)/tools/binfile
|
||||
$(SHELL) $(BASEDIR)/tools/binfile -i $@ policy.bin xsm_flask_init_policy
|
||||
|
||||
FLASK_BUILD_DIR := $(CURDIR)
|
||||
POLICY_SRC := $(FLASK_BUILD_DIR)/xenpolicy-$(XEN_FULLVERSION)
|
||||
|
||||