|
From: <abe...@us...> - 2011-11-02 16:36:40
|
Revision: 5245
http://astlinux.svn.sourceforge.net/astlinux/?rev=5245&view=rev
Author: abelbeck
Date: 2011-11-02 16:36:34 +0000 (Wed, 02 Nov 2011)
Log Message:
-----------
scripts/astlinux-post-build, sanity check board types using the directory structure
Modified Paths:
--------------
branches/1.0/scripts/astlinux-post-build
Modified: branches/1.0/scripts/astlinux-post-build
===================================================================
--- branches/1.0/scripts/astlinux-post-build 2011-11-02 15:54:37 UTC (rev 5244)
+++ branches/1.0/scripts/astlinux-post-build 2011-11-02 16:36:34 UTC (rev 5245)
@@ -68,32 +68,12 @@
board="$(cat "$base/astlinux.board")"
-case "$board" in
+if [ -z "$board" ] || [ ! -d "$base/project/astlinux/board/$board" ]; then
+ exit_error "Unknown Board type."
+fi
- geni586) overlay_target ;;
+overlay_target
- geni586-serial) overlay_target ;;
-
- net5501) overlay_target ;;
-
- alix) overlay_target ;;
-
- via) overlay_target ;;
-
- via-serial) overlay_target ;;
-
- viac7) overlay_target ;;
-
- viac7-serial) overlay_target ;;
-
- net4801) overlay_target ;;
-
- wrap) overlay_target ;;
-
- *) exit_error "Unknown Board type." ;;
-
-esac
-
make_release_version
echo ${ASTVER} > "$target/etc/astlinux-release"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|