diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-09-05 11:20:38 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-09-05 11:20:38 (GMT) |
commit | 57db77a46d1f02caae4548bb88391122d0089d25 (patch) | |
tree | 04b2653dcba141530620f8094082468024a3d935 /samples/samples.mk | |
parent | 679e8feb9fb0e9322bf07712c6bf6888d0cb80c1 (diff) |
Backport #975 from trunk:
Warn the user if he/she recalls a sample with EXPERIMENTAL features.
Also, print the EXPERIMENTAL status when listing the samples.
NB: even it is not purely a fix backport, it is still very important that the user gets warned about the EXPERIMENTAL status of the samples.
/branches/1.2/scripts/showSamples.sh | 17 14 3 0 ++++++++++++++---
/branches/1.2/samples/samples.mk | 12 12 0 0 ++++++++++++
2 files changed, 26 insertions(+), 3 deletions(-)
Diffstat (limited to 'samples/samples.mk')
-rw-r--r-- | samples/samples.mk | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/samples/samples.mk b/samples/samples.mk index a3f8881..40db58f 100644 --- a/samples/samples.mk +++ b/samples/samples.mk @@ -35,6 +35,18 @@ PHONY += $(CT_SAMPLES) $(CT_SAMPLES): @echo 'Configuring for "$@"' @$(CT_NG) $(patsubst %,copy_config_%,$(@)) oldconfig + @if grep -E '^CT_EXPERIMENTAL=y$$' .config >/dev/null 2>&1; then \ + echo ''; \ + echo '***********************************************************'; \ + echo ''; \ + echo 'WARNING! This sample may enable experimental features.'; \ + echo ' Please be sure to review the configuration prior'; \ + echo ' to building and using your toolchain!'; \ + echo 'Now, you have been warned!'; \ + echo ''; \ + echo '***********************************************************'; \ + echo ''; \ + fi @echo 'Execute "$(CT_NG) build" to build your toolchain' $(patsubst %,copy_config_%,$(CT_SAMPLES)): |