blob: fb861aa343d5326aff00cc540283c2c6350b8362 [file] [log] [blame]
Zachary Leaf782c54a2024-09-24 14:33:24 +01001#!/usr/bin/env bash
2#
3# Copyright (c) 2024 Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7pre_tf_build() {
Zachary Leaf8f14b902024-10-11 14:26:50 +01008 set_hook_var RUSTUP_HOME /usr/local/rustup
9 set_hook_var CARGO_HOME /usr/local/cargo
Zachary Leafd10ca2d2024-10-11 15:17:06 +010010 echo $RUSTUP_HOME
11 RUSTUP_HOME=/usr/local/rustup
Zachary Leaf7937b862024-10-11 12:33:50 +010012 make -C "$tf_root/rust"
13 make -C "$tf_root/rust" clippy
Zachary Leaf782c54a2024-09-24 14:33:24 +010014}