diff --git a/release_changes/202401091359.change b/release_changes/202401091359.change new file mode 100644 index 00000000..49a81074 --- /dev/null +++ b/release_changes/202401091359.change @@ -0,0 +1 @@ +build: Add custom build directory option diff --git a/tools/scripts/build.sh b/tools/scripts/build.sh index e1c99590..82a9587b 100755 --- a/tools/scripts/build.sh +++ b/tools/scripts/build.sh @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright 2023 Arm Limited and/or its affiliates +# Copyright 2023-2024 Arm Limited and/or its affiliates # # SPDX-License-Identifier: MIT @@ -66,10 +66,11 @@ function show_usage { cat < # SPDX-License-Identifier: MIT @@ -31,8 +31,8 @@ Examples: EOF } -SHORT=t:,f:,h -LONG=target:,fvp_type:,help +SHORT=t:,f:,h,p: +LONG=target:,fvp_type:,help,path: OPTS=$(getopt -n run --options $SHORT --longoptions $LONG -- "$@") eval set -- "$OPTS" @@ -44,6 +44,10 @@ do show_usage exit 0 ;; + -p | --path ) + BUILD_PATH=$2 + shift 2 + ;; -t | --target ) TARGET=$2 shift 2