Skip to content

Commit f8adf10

Browse files
galaknashif
authored andcommitted
Fix bug with getting the SHA version of crosstool-ng we specify
We need to apply any patches to crosstool-ng after we checkout the specific SHA version we are referencing. If not, we end up with the top of tree SHA since git will not checkout the version if there are modified files. Signed-off-by: Kumar Gala <[email protected]>
1 parent 869d01d commit f8adf10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ if [ ! -d "crosstool-ng" ]; then
4242
git clone https://github.com/crosstool-ng/crosstool-ng.git
4343
echo "Patching tree"
4444
pushd crosstool-ng
45+
git checkout ${COMMIT}
4546
patch -p1 < ${GITDIR}/patches/0001-iamcu-support-x86-iamcu-ABIs.patch
4647
popd
4748
fi
4849

4950
if [ ! -e "${SDK_NG_HOME}/bin/ct-ng" ]; then
5051
pushd crosstool-ng
51-
git checkout ${COMMIT}
5252
./bootstrap
5353
CFLAGS="-DKBUILD_NO_NLS" ./configure --prefix=${SDK_NG_HOME}
5454
make && make install

0 commit comments

Comments
 (0)