altos: Check pdata+xdata memory usage during build
authorKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2011 02:37:53 +0000 (18:37 -0800)
committerKeith Packard <keithp@keithp.com>
Sun, 13 Nov 2011 02:37:53 +0000 (18:37 -0800)
commitef7f86453d686a49882e8c1b88a59228c4c631a9
treef8a406975e13cec661af02ea6e5356affe25c525
parent2bce71eba9f44b6fcf64e307c8174824c3a0fb57
altos: Check pdata+xdata memory usage during build

The sdcc linker doesn't check the sum of pdata+xdata memory usage, it
only ensures that xdata itself is small enough. This doesn't keep
xdata below the end of usable ram on the cc1111 though (0xfe000).

Fix up the check-stack program to also make sure all of xdata fits in
available memory.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/product/Makefile.telebt
src/product/Makefile.teledongle
src/product/Makefile.telelaunch
src/product/Makefile.telemetrum
src/product/Makefile.telemini
src/product/Makefile.telenano
src/teleballoon-v1.1/Makefile
src/teleterra-v0.2/Makefile
src/tidongle/Makefile
src/util/check-stack