diff options
author | P. J. McDermott <pj@pehjota.net> | 2015-10-27 16:14:05 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2015-10-27 16:26:28 (EDT) |
commit | 2420bce66051cd0f93a814f3cd04f296a903b95f (patch) | |
tree | 297ea1250e55bf49006edf65d0489877b32e1f6d | |
parent | 2236d60f413facd6841018a1836fc4a7f59e8b19 (diff) | |
download | firman.sh-2420bce66051cd0f93a814f3cd04f296a903b95f.zip firman.sh-2420bce66051cd0f93a814f3cd04f296a903b95f.tar.gz firman.sh-2420bce66051cd0f93a814f3cd04f296a903b95f.tar.bz2 |
Automatically register boards
-rw-r--r-- | src/board.sh | 11 | ||||
-rw-r--r-- | src/board/x200_4mb.sh | 6 | ||||
-rw-r--r-- | src/board/x200_8mb.sh | 6 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/board.sh b/src/board.sh index a806be9..e55f676 100644 --- a/src/board.sh +++ b/src/board.sh @@ -17,6 +17,17 @@ board_functions='get_name match validate_chip get_dists' +boards='' + +register_board() +{ + local board="${1}" + shift 1 + + boards="${boards} ${board}" + return 0 +} + find_board() { local board= diff --git a/src/board/x200_4mb.sh b/src/board/x200_4mb.sh index d853501..697a643 100644 --- a/src/board/x200_4mb.sh +++ b/src/board/x200_4mb.sh @@ -56,3 +56,9 @@ board_x200_4mb_get_dists() printf 'libreboot libiquity' return 0 } + +board_x200_4mb_register() +{ + register_board 'x200_4mb' +} +__init board_x200_4mb_register diff --git a/src/board/x200_8mb.sh b/src/board/x200_8mb.sh index bbf7b9d..9c17c8e 100644 --- a/src/board/x200_8mb.sh +++ b/src/board/x200_8mb.sh @@ -56,3 +56,9 @@ board_x200_8mb_get_dists() printf 'libreboot libiquity' return 0 } + +board_x200_8mb_register() +{ + register_board 'x200_8mb' +} +__init board_x200_8mb_register |