diff --git a/.gitignore b/.gitignore index 7ad08ba..6f4277e 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ docs/examples/hipcc/hello_world/hello_world.o docs/examples/opencl/check_opencl_caps/check_opencl_caps docs/examples/opencl/hello_world/hello_world packages +envsetup_pre.sh diff --git a/babs.sh b/babs.sh index e4d782f..28d8994 100755 --- a/babs.sh +++ b/babs.sh @@ -7,8 +7,12 @@ # See the lgpl.txt file in the root directory or . # +# user configuration menu functionality source binfo/user_config.sh +# allow enable doing some user specific extra actions before the build start +source ./envsetup_pre.sh + func_is_user_in_dev_kfd_render_group() { if [ -e /dev/kfd ]; then test -w /dev/kfd || { diff --git a/binfo/build_version.sh b/binfo/build_version.sh index 4bcf60d..0085b4e 100755 --- a/binfo/build_version.sh +++ b/binfo/build_version.sh @@ -16,7 +16,7 @@ export ROCM_SDK_RELEASE_VERSION=1 # Set BABS version information # Stored in /opt/rocm_sdk_xyz/.info/rocm_sdk_builder -export BABS_VERSION=2024_07_05_01 +export BABS_VERSION=2024_07_14_01 # Get git hash used to build the system # Stored in /opt/rocm_sdk_xyz/.info/rocm_sdk_builder diff --git a/binfo/envsetup.sh b/binfo/envsetup.sh index c31fca8..9910ef7 100755 --- a/binfo/envsetup.sh +++ b/binfo/envsetup.sh @@ -5,8 +5,13 @@ SDK_ROOT_DIR="$PWD" +# user configuration menu functionality source binfo/user_config.sh +# allow enable doing some user specific extra actions before the build start +# like setting the INSTALL_DIR_PREFIX_SDK_ROOT +source ../envsetup_pre.sh + # check the linux distribution for the target triplet export ROCM_TARGET_TRIPLED=x86_64-rocm-linux-gnu if [[ -e "/etc/os-release" ]]; then @@ -33,6 +38,7 @@ echo "ROCM_TARGET_TRIPLED: ${ROCM_TARGET_TRIPLED}" # set INSTALL_DIR_PREFIX_SDK_ROOT only if it not already set in the user environment variable or user_config.sh INSTALL_DIR_PREFIX_SDK_ROOT="${INSTALL_DIR_PREFIX_SDK_ROOT:-/opt/rocm_sdk_${ROCM_MAJOR_VERSION}${ROCM_MINOR_VERSION}${ROCM_PATCH_VERSION}}" export INSTALL_DIR_PREFIX_SDK_ROOT +echo "INSTALL_DIR_PREFIX_SDK_ROOT: $INSTALL_DIR_PREFIX_SDK_ROOT" export ROCM_PATH=${INSTALL_DIR_PREFIX_SDK_ROOT} export BUILD_RULE_ROOT_DIR=${SDK_ROOT_DIR}/binfo