From: regehr Date: Fri, 10 Apr 2009 22:32:06 +0000 (+0000) Subject: add stack checking makefile support X-Git-Tag: rc_6_tinyos_2_1_1~418 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=a81ad2997ae0fcc1b2cab3db94ecf62ab4a923ee add stack checking makefile support --- diff --git a/support/make/avr/avr.rules b/support/make/avr/avr.rules index 5f95880b..dfbbcb10 100644 --- a/support/make/avr/avr.rules +++ b/support/make/avr/avr.rules @@ -138,6 +138,11 @@ exe0: builddir $(BUILD_EXTRA_DEPS) FORCE $(NCC) -o $(MAIN_EXE) $(NCC_SAFE_TINYOS_FLAGS) $(OPTFLAGS) $(PFLAGS) $(CFLAGS) $(WIRING_CHECK_FLAGS) $(COMPONENT).nc $(LIBS) $(LDFLAGS) ifdef WIRING_CHECK_FILE @nescc-wiring $(WIRING_CHECK_FILE) +endif +ifdef STACK_CHECK + @echo + @tos-ramsize $(PLATFORM) $(MAIN_EXE) + @echo endif @echo " compiled $(COMPONENT) to $(MAIN_EXE)" diff --git a/support/make/stack-check.extra b/support/make/stack-check.extra new file mode 100644 index 00000000..b649d43c --- /dev/null +++ b/support/make/stack-check.extra @@ -0,0 +1,3 @@ +#-*-Makefile-*- vim:syntax=make + +STACK_CHECK = 1