Skip to content

Commit

Permalink
fix: fetch tag before checking it out
Browse files Browse the repository at this point in the history
  • Loading branch information
june-fish committed Feb 14, 2024
1 parent 2256d8d commit 372faa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mt8183/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ endif
build:
cp *.patch ../linux
cp config ../linux/.config
(cd ../linux && git reset --hard && git checkout $(REF) && git apply *.patch && sed -i 's/^EXTRAVERSION.*/EXTRAVERSION = -mt8183/' Makefile)
(cd ../linux && git reset --hard && git fetch origin refs/tags/$(REF):refs/tags/$(REF) && git checkout $(REF) && git apply *.patch && sed -i 's/^EXTRAVERSION.*/EXTRAVERSION = -mt8183/' Makefile)
ARCH=arm64 CROSS_COMPILE=$(CROSS) make -C ../linux olddefconfig rpm-pkg -j$(shell nproc)
cp -r ../linux/rpmbuild .
rm -rf ../linux/rpmbuild

0 comments on commit 372faa8

Please sign in to comment.