aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-10-17 20:01:10 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2019-10-18 21:40:43 -0500
commit250e8b28511a789a96eec2055219f04495fd45f5 (patch)
treefae49efd927da65f513606966b0fae8c2d73064e
parent90b24172fe8668fe3297ccf71b9c2e12d02b0076 (diff)
downloadlibrebootfr-250e8b28511a789a96eec2055219f04495fd45f5.tar.gz
librebootfr-250e8b28511a789a96eec2055219f04495fd45f5.zip
Create new meta target working with dependencies
The specified action will be taken on each of the dependencies returned by project_dependencies() where $project is the first argument to the meta-target, e.g. ./libreboot download libreboot-dependencies coreboot x200 The above command would download only the minimum projects necessary for building all x200 image configurations. To then build those dependencies: ./libreboot build libreboot-dependencies coreboot x200 And to get the final images: ./libreboot build coreboot x200
-rwxr-xr-xprojects/libreboot-dependencies/libreboot-dependencies52
1 files changed, 52 insertions, 0 deletions
diff --git a/projects/libreboot-dependencies/libreboot-dependencies b/projects/libreboot-dependencies/libreboot-dependencies
new file mode 100755
index 00000000..ae50406c
--- /dev/null
+++ b/projects/libreboot-dependencies/libreboot-dependencies
@@ -0,0 +1,52 @@
+#!/usr/bin/env bash
+
+# Copyright (C) 2019 Andrew Robbins <contact@andrewrobbins.info>
+#
+# 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/>.
+
+usage() {
+ project_usage_actions "$project"
+}
+
+collect() {
+ project_dependencies "$@"
+}
+
+download() {
+ project_dependencies_action_arguments "$action" "$@"
+}
+
+extract() {
+ project_dependencies_action_arguments "$action" "$@"
+}
+
+update() {
+ project_dependencies_action_arguments "$action" "$@"
+}
+
+build() {
+ project_dependencies_action_arguments "$action" "$@"
+}
+
+install() {
+ project_dependencies_action_arguments "$action" "$@"
+}
+
+release() {
+ project_dependencies_action_arguments "$action" "$@"
+}
+
+clean() {
+ project_dependencies_action_arguments "$action" "$@"
+}