Skip to content

Commit 01d329d

Browse files
committed
scripts: patch only after fresh clone
Signed-off-by: Anas Nashif <[email protected]>
1 parent 72d9307 commit 01d329d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ export SDK_NG_HOME=${PWD}
4040

4141
if [ ! -d "crosstool-ng" ]; then
4242
git clone https://github.com/crosstool-ng/crosstool-ng.git
43+
echo "Patching tree"
44+
patch -p1 < ${GITDIR}/patches/0001-iamcu-support-x86-iamcu-ABIs.patch
4345
fi
4446

4547
if [ ! -e "${SDK_NG_HOME}/bin/ct-ng" ]; then
4648
pushd crosstool-ng
4749
git checkout ${COMMIT}
48-
echo "Patching tree"
49-
patch -p1 < ${GITDIR}/patches/0001-iamcu-support-x86-iamcu-ABIs.patch
5050
./bootstrap
5151
./configure --prefix=${SDK_NG_HOME}
5252
make && make install

0 commit comments

Comments
 (0)