scripts: Always set EC build dir
Building EC was broken as the build output from the previous board was not being cleaned. `BUILD` is now always set, defaulting to "build", instead of only when `BOARD` is specified. For good measure, add it to the clean command in case a custom path is used. Fixes: 569321f9ac79 ("scripts: Set EC build dir") Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
parent
c4df2f4005
commit
c1dafbbfad
2
ec
2
ec
@ -1 +1 @@
|
|||||||
Subproject commit 946415f3a731d731cb1378d60b28f8ffab8d16cb
|
Subproject commit 01be30f107c7930b0673d9f6a35058603f00bd63
|
@ -15,6 +15,8 @@ while read line; do
|
|||||||
fi
|
fi
|
||||||
done < "$1"
|
done < "$1"
|
||||||
|
|
||||||
make -C ec clean
|
BUILD_DIR="build"
|
||||||
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" BUILD=build -j "$(nproc)"
|
|
||||||
cp "ec/build/ec.rom" "$2"
|
make -C ec BUILD="$BUILD_DIR" clean
|
||||||
|
make -C ec VERSION="${VERSION}" "${EC_ARGS[@]}" BUILD="$BUILD_DIR" -j "$(nproc)"
|
||||||
|
cp "ec/$BUILD_DIR/ec.rom" "$2"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user