From: <abe...@us...> - 2011-11-01 17:35:01
|
Revision: 5243 http://astlinux.svn.sourceforge.net/astlinux/?rev=5243&view=rev Author: abelbeck Date: 2011-11-01 17:34:54 +0000 (Tue, 01 Nov 2011) Log Message: ----------- scripts/build, sanity check board types using the directory structure Modified Paths: -------------- branches/1.0/scripts/build Modified: branches/1.0/scripts/build =================================================================== --- branches/1.0/scripts/build 2011-11-01 17:11:55 UTC (rev 5242) +++ branches/1.0/scripts/build 2011-11-01 17:34:54 UTC (rev 5243) @@ -105,32 +105,10 @@ board="$(cat "astlinux.board")" -case "$board" in +if [ -z "$board" ] || [ ! -d "project/astlinux/board/$board" ]; then + exit_error "Unknown Board type." +fi - geni586) ;; - - geni586-serial) ;; - - net5501) ;; - - alix) ;; - - via) ;; - - via-serial) ;; - - viac7) ;; - - viac7-serial) ;; - - net4801) ;; - - wrap) ;; - - *) exit_error "Unknown Board type." ;; - -esac - if [ ! -d "$HOME/astlinux/x-tools" ]; then cat "crosstool-ng-src/README" exit_error "Toolchain not found, see instructions above." This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |