From 250e8b28511a789a96eec2055219f04495fd45f5 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Thu, 17 Oct 2019 20:01:10 -0500 Subject: 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 --- .../libreboot-dependencies/libreboot-dependencies | 52 ++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100755 projects/libreboot-dependencies/libreboot-dependencies (limited to 'projects/libreboot-dependencies') 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 +# +# 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 . + +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" "$@" +} -- cgit v1.2.3-70-g09d2