Skip to content

Commit

Permalink
scripts: Set EC build dir
Browse files Browse the repository at this point in the history
Specify the EC build directory so that it does not require the model or
version to be determined in the script.

Signed-off-by: Tim Crawford <[email protected]>
  • Loading branch information
crawfxrd authored and jackpot51 committed Oct 12, 2023
1 parent b22e8de commit 569321f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/_build/ec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ while read line; do
fi
done < "$1"

source "$1"
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" clean
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" -j "$(nproc)"
cp "ec/build/${BOARD}/${VERSION}/ec.rom" "$2"
make -C ec clean
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" BUILD=build -j "$(nproc)"
cp "ec/build/ec.rom" "$2"

0 comments on commit 569321f

Please sign in to comment.