diff options
Diffstat (limited to 'projects/cbmem')
-rwxr-xr-x | projects/cbmem/cbmem | 107 | ||||
l--------- | projects/cbmem/configs/blobs | 1 | ||||
l--------- | projects/cbmem/configs/blobs-ignore | 1 | ||||
l--------- | projects/cbmem/configs/blobs-ignore-notes.txt | 1 | ||||
-rw-r--r-- | projects/cbmem/configs/install | 1 | ||||
l--------- | projects/cbmem/configs/revision | 1 | ||||
l--------- | projects/cbmem/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch | 1 |
7 files changed, 113 insertions, 0 deletions
diff --git a/projects/cbmem/cbmem b/projects/cbmem/cbmem new file mode 100755 index 00000000..50fcb7d5 --- /dev/null +++ b/projects/cbmem/cbmem @@ -0,0 +1,107 @@ +#!/bin/bash + +# Copyright (C) 2016 Paul Kocialkowski <contact@paulk.fr> +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +download() { + local repository="coreboot" + + git_project_prepare "$project" "$repository" "$@" +} + +download_check() { + local repository="coreboot" + + git_project_prepare_check "$project" "$repository" "$@" +} + +extract() { + local repository="coreboot" + + project_extract "$project" "$@" +} + +extract_check() { + local repository="coreboot" + + project_extract_check "$project" "$@" +} + +update() { + local repository="coreboot" + + project_update_git "$project" "$repository" "$@" +} + +update_check() { + local repository="coreboot" + + project_update_check_git "$project" "$repository" "$@" +} + +build() { + local repository="coreboot" + + project_sources_directory_missing_empty_error "$project" "$repository" "$@" + + local coreboot_sources_path=$( project_sources_path "$project" "$repository" "$@" ) + local sources_path="$coreboot_sources_path/util/cbmem/" + local build_path=$( project_build_path "$project" "$@" ) + + if git_project_check "$repository" + then + git_project_checkout "$project" "$repository" "$@" + fi + + mkdir -p "$build_path" + + make -C "$sources_path" -j$TASKS + + cp "$sources_path/cbmem" "$build_path" + + make -C "$sources_path" "clean" +} + +build_check() { + project_build_check "$project" "$@" +} + +install() { + project_install "$project" "$@" +} + +install_check() { + project_install_check "$project" "$@" +} + +release() { + local repository="coreboot" + + project_release_install_archive "$project" "$TOOLS" "$@" + + project_release_sources_git "$project" "$repository" "$@" +} + +release_check() { + local repository="coreboot" + + project_release_install_archive_check "$project" "$TOOLS" "$@" + + project_release_check_sources_git "$project" "$repository" "$@" +} + +clean() { + project_clean "$project" "$@" +} diff --git a/projects/cbmem/configs/blobs b/projects/cbmem/configs/blobs new file mode 120000 index 00000000..8574352d --- /dev/null +++ b/projects/cbmem/configs/blobs @@ -0,0 +1 @@ +../../coreboot/configs/blobs
\ No newline at end of file diff --git a/projects/cbmem/configs/blobs-ignore b/projects/cbmem/configs/blobs-ignore new file mode 120000 index 00000000..04d6519e --- /dev/null +++ b/projects/cbmem/configs/blobs-ignore @@ -0,0 +1 @@ +../../coreboot/configs/blobs-ignore
\ No newline at end of file diff --git a/projects/cbmem/configs/blobs-ignore-notes.txt b/projects/cbmem/configs/blobs-ignore-notes.txt new file mode 120000 index 00000000..3f05ba9b --- /dev/null +++ b/projects/cbmem/configs/blobs-ignore-notes.txt @@ -0,0 +1 @@ +../../coreboot/configs/blobs-ignore-notes.txt
\ No newline at end of file diff --git a/projects/cbmem/configs/install b/projects/cbmem/configs/install new file mode 100644 index 00000000..0936568b --- /dev/null +++ b/projects/cbmem/configs/install @@ -0,0 +1 @@ +cbmem:cbmem diff --git a/projects/cbmem/configs/revision b/projects/cbmem/configs/revision new file mode 120000 index 00000000..006c3a7a --- /dev/null +++ b/projects/cbmem/configs/revision @@ -0,0 +1 @@ +../../coreboot/configs/revision
\ No newline at end of file diff --git a/projects/cbmem/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch b/projects/cbmem/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch new file mode 120000 index 00000000..627443a5 --- /dev/null +++ b/projects/cbmem/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch @@ -0,0 +1 @@ +../../coreboot/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch
\ No newline at end of file |