aboutsummaryrefslogtreecommitdiff
path: root/projects/nvramtool
diff options
context:
space:
mode:
Diffstat (limited to 'projects/nvramtool')
l---------projects/nvramtool/configs/blobs1
l---------projects/nvramtool/configs/blobs-ignore1
l---------projects/nvramtool/configs/blobs-ignore-notes.txt1
-rw-r--r--projects/nvramtool/configs/install1
l---------projects/nvramtool/configs/revision1
-rwxr-xr-xprojects/nvramtool/nvramtool107
l---------projects/nvramtool/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch1
7 files changed, 113 insertions, 0 deletions
diff --git a/projects/nvramtool/configs/blobs b/projects/nvramtool/configs/blobs
new file mode 120000
index 00000000..8574352d
--- /dev/null
+++ b/projects/nvramtool/configs/blobs
@@ -0,0 +1 @@
+../../coreboot/configs/blobs \ No newline at end of file
diff --git a/projects/nvramtool/configs/blobs-ignore b/projects/nvramtool/configs/blobs-ignore
new file mode 120000
index 00000000..04d6519e
--- /dev/null
+++ b/projects/nvramtool/configs/blobs-ignore
@@ -0,0 +1 @@
+../../coreboot/configs/blobs-ignore \ No newline at end of file
diff --git a/projects/nvramtool/configs/blobs-ignore-notes.txt b/projects/nvramtool/configs/blobs-ignore-notes.txt
new file mode 120000
index 00000000..3f05ba9b
--- /dev/null
+++ b/projects/nvramtool/configs/blobs-ignore-notes.txt
@@ -0,0 +1 @@
+../../coreboot/configs/blobs-ignore-notes.txt \ No newline at end of file
diff --git a/projects/nvramtool/configs/install b/projects/nvramtool/configs/install
new file mode 100644
index 00000000..e75b7ad4
--- /dev/null
+++ b/projects/nvramtool/configs/install
@@ -0,0 +1 @@
+nvramtool:nvramtool
diff --git a/projects/nvramtool/configs/revision b/projects/nvramtool/configs/revision
new file mode 120000
index 00000000..006c3a7a
--- /dev/null
+++ b/projects/nvramtool/configs/revision
@@ -0,0 +1 @@
+../../coreboot/configs/revision \ No newline at end of file
diff --git a/projects/nvramtool/nvramtool b/projects/nvramtool/nvramtool
new file mode 100755
index 00000000..18c2fbe5
--- /dev/null
+++ b/projects/nvramtool/nvramtool
@@ -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/nvramtool/"
+ 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/nvramtool" "$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/nvramtool/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch b/projects/nvramtool/patches/0001-Avoid-using-git-submodules-for-3rdparty.patch
new file mode 120000
index 00000000..627443a5
--- /dev/null
+++ b/projects/nvramtool/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