summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-15 21:29:56 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2008-10-15 21:29:56 (GMT)
commit4e7d6836a5d1b2bf5dd0ed181a4263ce7b305cd6 (patch)
treef6bb12ede31697ffa3735d15a910a12890d680cc /samples
parentb77f4abe34a7d415486f505e2fb11c09114318c6 (diff)
Cheesy kconfig stuff:
- silent/quiet/verbose build: - ct-ng by default only prints quit messages, such as "CC xxx", - if using V=0, nothing is printed, - if using V=1, the full command lines are printed, - other values are indeterminate, - should help in debugging the kconfig stuff; - complete kconfig/{,m}conf generation: - fully dynamic dependencies on source files, - compilation of .c into .o, then linking (instead of direct linking), - VPATH usage when not --local; Typo + a coment moved. /trunk/kconfig/kconfig.mk | 140 87 53 0 +++++++++++++++++++++++++++++++++-------------------- /trunk/tools/tools.mk | 12 6 6 0 ++-- /trunk/steps.mk | 6 3 3 0 +- /trunk/samples/samples.mk | 30 15 15 0 +++++----- /trunk/ct-ng.in | 40 28 12 0 +++++++++++---- 5 files changed, 139 insertions(+), 89 deletions(-)
Diffstat (limited to 'samples')
-rw-r--r--samples/samples.mk30
1 files changed, 15 insertions, 15 deletions
diff --git a/samples/samples.mk b/samples/samples.mk
index 5ea7276..ab8fdb7 100644
--- a/samples/samples.mk
+++ b/samples/samples.mk
@@ -33,12 +33,12 @@ list-samples: .FORCE
# How we do recall one sample
PHONY += $(CT_SAMPLES)
$(CT_SAMPLES):
- @cp $(call sample_dir,$@)/crosstool.config .config
- @$(MAKE) -rf $(CT_NG) oldconfig
+ $(SILENT)cp $(call sample_dir,$@)/crosstool.config .config
+ $(SILENT)$(MAKE) -rf $(CT_NG) oldconfig
@echo
@echo '***********************************************************'
@echo
- @( . $(call sample_dir,$@)/reported.by; \
+ $(SILENT)( . $(call sample_dir,$@)/reported.by; \
echo "Initially reported by: $${reporter_name:-Yann E. MORIN}"; \
echo "URL: $${reporter_url:-http://ymorin.is-a-geek.org/}"; \
if [ -n "$${reporter_comment}" ]; then \
@@ -49,14 +49,14 @@ $(CT_SAMPLES):
echo ; \
echo '***********************************************************'; \
)
- @if grep -E '^CT_EXPERIMENTAL=y$$' .config >/dev/null 2>&1; then \
- 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 '***********************************************************'; \
+ $(SILENT)if grep -E '^CT_EXPERIMENTAL=y$$' .config >/dev/null 2>&1; then \
+ 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 '***********************************************************'; \
fi
@echo
@echo 'Now configured for "$@"'
@@ -76,7 +76,7 @@ regtest-local: $(patsubst %,regtest_%,$(CT_TOP_SAMPLES))
regtest-global: $(patsubst %,regtest_%,$(CT_LIB_SAMPLES))
regtest.% regtest-local.% regtest-global.%:
- @$(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
+ $(SILENT)$(CT_NG) $(shell echo "$(@)" |sed -r -e 's|^([^.]+)\.([[:digit:]]+)$$|\1 CT_JOBS=\2|;')
# One regtest per sample
# We could use a simple rule like: 'regtest: $(CT_SAMPLES)', but that doesn't
@@ -88,7 +88,7 @@ regtest.% regtest-local.% regtest-global.%:
# if the options set has changed, but oldconfig does not like when stdin is
# not a terminal (eg. it is a pipe).
$(patsubst %,regtest_%,$(CT_SAMPLES)):
- @samp=$(patsubst regtest_%,%,$@) ; \
+ $(SILENT)samp=$(patsubst regtest_%,%,$@) ; \
echo -e "\rBuilding sample \"$${samp}\"" && \
$(CT_NG) copy_config_$${samp} && \
yes "" |$(CT_NG) defoldconfig >/dev/null 2>&1 && \
@@ -109,7 +109,7 @@ $(patsubst %,regtest_%,$(CT_SAMPLES)):
echo -e "\r"
saveconfig:
- @$(CT_LIB_DIR)/scripts/saveSample.sh
+ $(SILENT)$(CT_LIB_DIR)/scripts/saveSample.sh
wiki-samples:
- @$(CT_LIB_DIR)/scripts/showSamples.sh -w $(CT_SAMPLES)
+ $(SILENT)$(CT_LIB_DIR)/scripts/showSamples.sh -w $(CT_SAMPLES)