Skip to content

Commit

Permalink
scripts: fix rpm's builddir when linux ver >= 6.10
Browse files Browse the repository at this point in the history
Signed-off-by: sharim <[email protected]>
  • Loading branch information
sharim authored and xingxg2022 committed Nov 25, 2024
1 parent bc3c4cc commit 874948f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/envsetup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ cat >> ~/.rpmmacros << "EOT"
EOT

KERNELRELEASE=$(make ARCH=riscv LOCALVERSION="" kernelrelease)
if [[ ${KERNELRELEASE:0:3} == "6.1" ]]; then
if [[ ${KERNELRELEASE:0:4} == "6.1." ]]; then
RPMBUILD_DIR=$HOME/rpmbuild
else
RPMBUILD_DIR=$RV_TOP_DIR/build/$CHIP/rpmbuild
Expand Down Expand Up @@ -907,7 +907,7 @@ cat >> ~/.rpmmacros << "EOT"
EOT

KERNELRELEASE=$(make ARCH=riscv LOCALVERSION="" kernelrelease)
if [[ ${KERNELRELEASE:0:3} == "6.1" ]]; then
if [[ ${KERNELRELEASE:0:4} == "6.1." ]]; then
RPMBUILD_DIR=$HOME/rpmbuild
else
RPMBUILD_DIR=$RV_TOP_DIR/build/$CHIP/rpmbuild
Expand Down

0 comments on commit 874948f

Please sign in to comment.