aboutsummaryrefslogtreecommitdiff
path: root/projects/cbfstool
diff options
context:
space:
mode:
Diffstat (limited to 'projects/cbfstool')
-rwxr-xr-xprojects/cbfstool/cbfstool108
l---------projects/cbfstool/configs/blobs1
l---------projects/cbfstool/configs/blobs-ignore1
l---------projects/cbfstool/configs/blobs-ignore-notes.txt1
-rw-r--r--projects/cbfstool/configs/install2
l---------projects/cbfstool/configs/revision1
l---------projects/cbfstool/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch1
7 files changed, 115 insertions, 0 deletions
diff --git a/projects/cbfstool/cbfstool b/projects/cbfstool/cbfstool
new file mode 100755
index 00000000..aa866027
--- /dev/null
+++ b/projects/cbfstool/cbfstool
@@ -0,0 +1,108 @@
+#!/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/cbfstool/"
+ local build_path=$( project_build_path "$project" "$@" )
+ local build_util_path=$( dirname "$build_path" )
+
+ local vboot_sources_path=$( project_sources_path "vboot" "vboot" "devices" )
+
+ if git_project_check "$repository"
+ then
+ git_project_checkout "$project" "$repository" "$@"
+ fi
+
+ project_action "checkout" "vboot" "devices"
+
+ mkdir -p "$build_path"
+
+ make -C "$sources_path" objutil="$build_util_path" VBOOT_SOURCE="$vboot_sources_path" -j$TASKS
+}
+
+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/cbfstool/configs/blobs b/projects/cbfstool/configs/blobs
new file mode 120000
index 00000000..8574352d
--- /dev/null
+++ b/projects/cbfstool/configs/blobs
@@ -0,0 +1 @@
+../../coreboot/configs/blobs \ No newline at end of file
diff --git a/projects/cbfstool/configs/blobs-ignore b/projects/cbfstool/configs/blobs-ignore
new file mode 120000
index 00000000..04d6519e
--- /dev/null
+++ b/projects/cbfstool/configs/blobs-ignore
@@ -0,0 +1 @@
+../../coreboot/configs/blobs-ignore \ No newline at end of file
diff --git a/projects/cbfstool/configs/blobs-ignore-notes.txt b/projects/cbfstool/configs/blobs-ignore-notes.txt
new file mode 120000
index 00000000..3f05ba9b
--- /dev/null
+++ b/projects/cbfstool/configs/blobs-ignore-notes.txt
@@ -0,0 +1 @@
+../../coreboot/configs/blobs-ignore-notes.txt \ No newline at end of file
diff --git a/projects/cbfstool/configs/install b/projects/cbfstool/configs/install
new file mode 100644
index 00000000..6157184f
--- /dev/null
+++ b/projects/cbfstool/configs/install
@@ -0,0 +1,2 @@
+cbfstool:cbfstool
+fmaptool:fmaptool
diff --git a/projects/cbfstool/configs/revision b/projects/cbfstool/configs/revision
new file mode 120000
index 00000000..006c3a7a
--- /dev/null
+++ b/projects/cbfstool/configs/revision
@@ -0,0 +1 @@
+../../coreboot/configs/revision \ No newline at end of file
diff --git a/projects/cbfstool/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch b/projects/cbfstool/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch
new file mode 120000
index 00000000..627443a5
--- /dev/null
+++ b/projects/cbfstool/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