diff options
author | Alexey Neyman <stilor@att.net> | 2017-04-22 23:33:36 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-04-22 23:33:36 -0700 |
commit | c9dad337289153ee70d4ed264cf628f22f6ec2bb (patch) | |
tree | 4aed6b45c9b955047f16cc754a8588af840aca11 /samples/samples.mk | |
parent | 105e4b59b7989e9898795273e4064791fdfa056c (diff) | |
download | crosstool-ng-c9dad337289153ee70d4ed264cf628f22f6ec2bb.tar.gz crosstool-ng-c9dad337289153ee70d4ed264cf628f22f6ec2bb.tar.bz2 crosstool-ng-c9dad337289153ee70d4ed264cf628f22f6ec2bb.zip |
Use config from the install location
... no need to create a local symlink.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'samples/samples.mk')
-rw-r--r-- | samples/samples.mk | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/samples/samples.mk b/samples/samples.mk index 5c8f130e..ce7e7c98 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -48,7 +48,7 @@ show-config: .config # Prints the details of a sample PHONY += $(patsubst %,show-%,$(CT_SAMPLES)) -$(patsubst %,show-%,$(CT_SAMPLES)): show-%: config_files +$(patsubst %,show-%,$(CT_SAMPLES)): show-%: @KCONFIG_CONFIG=$$(pwd)/.config.sample \ $(CONF) --defconfig=$(call sample_dir,$*)/crosstool.config \ $(KCONFIG_TOP) >/dev/null @@ -72,7 +72,7 @@ list-samples-pre: FORCE @echo 'Status Sample name' PHONY += $(patsubst %,list-%,$(CT_SAMPLES)) -$(patsubst %,list-%,$(CT_SAMPLES)): list-%: config_files +$(patsubst %,list-%,$(CT_SAMPLES)): list-%: @KCONFIG_CONFIG=$$(pwd)/.config.sample \ $(CONF) --defconfig=$(call sample_dir,$*)/crosstool.config \ $(KCONFIG_TOP) >/dev/null @@ -87,7 +87,7 @@ list-samples-short: FORCE # Check one sample PHONY += $(patsubst %,check-%,$(CT_SAMPLES)) -$(patsubst %,check-%,$(CT_SAMPLES)): check-%: config_files +$(patsubst %,check-%,$(CT_SAMPLES)): check-%: @export KCONFIG_CONFIG=$$(pwd)/.config.sample; \ CT_NG_SAMPLE=$(call sample_dir,$*)/crosstool.config; \ $(CONF) -s --defconfig=$${CT_NG_SAMPLE} $(KCONFIG_TOP) &>/dev/null; \ @@ -119,7 +119,7 @@ wiki-samples-pre: FORCE wiki-samples-post: FORCE $(SILENT)$(CT_LIB_DIR)/scripts/showSamples.sh -W $(CT_SAMPLES) -$(patsubst %,wiki-%,$(CT_SAMPLES)): wiki-%: config_files +$(patsubst %,wiki-%,$(CT_SAMPLES)): wiki-%: $(SILENT)KCONFIG_CONFIG=$$(pwd)/.config.sample \ $(CONF) --defconfig=$(call sample_dir,$*)/crosstool.config \ $(KCONFIG_TOP) >/dev/null @@ -146,8 +146,8 @@ endef # How we do recall one sample PHONY += $(CT_SAMPLES) -$(CT_SAMPLES): config_files - @$(CT_ECHO) " CONF $(KCONFIG_TOP)" +$(CT_SAMPLES): + @$(CT_ECHO) " CONF $@" $(SILENT)$(CONF) --defconfig=$(call sample_dir,$@)/crosstool.config $(KCONFIG_TOP) @echo @echo '***********************************************************' @@ -225,7 +225,7 @@ endif # MAKECMDGOALS contains a build sample rule endif # MAKECMDGOALS != "" # Build a single sample -$(patsubst %,build-%,$(CT_SAMPLES)): build-%: config_files +$(patsubst %,build-%,$(CT_SAMPLES)): build-%: $(call build_sample,$*) # Cross samples (build==host) |