]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
make.sh: Pass on individual build arguments
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 7 Jul 2024 17:26:55 +0000 (17:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 8 Jul 2024 15:39:44 +0000 (15:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index e15d35efa9e8cfaa6c549f73c3a088c1d6105b5c..b952627782a0d5ef4ac75f17315b689fcb3b4fe0 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -877,31 +877,33 @@ run_command() {
 
 lfsmake2() {
        local pkg="${1}"
+       shift
 
        # Run the common check
-       lfsmakecommoncheck "${pkg}"
+       lfsmakecommoncheck "${pkg}" "$@"
        [ $? == 1 ] && return 0
 
        # Download source outside of the toolchain
-       if ! run_command --quiet "${pkg}" download b2sum; then
+       if ! run_command --quiet "${pkg}" download b2sum "$@"; then
                exiterror "Downloading ${pkg}"
        fi
 
        # Run install on the package
-       if ! run_command --chroot "${pkg}" install; then
+       if ! run_command --chroot "${pkg}" install "$@"; then
                exiterror "Building ${pkg}"
        fi
 }
 
 ipfiredist() {
        local pkg="${1}"
+       shift
 
        # Run the common check
-       lfsmakecommoncheck "${pkg}"
+       lfsmakecommoncheck "${pkg}" "$@"
        [ $? == 1 ] && return 0
 
        # Run dist on the package
-       if ! run_command --chroot "${pkg}" dist; then
+       if ! run_command --chroot "${pkg}" dist "$@"; then
                exiterror "Packging ${pkg}"
        fi
 }