Skip to content

Commit

Permalink
build.sh: update to 6.4 version
Browse files Browse the repository at this point in the history
  • Loading branch information
frank-w committed Jun 29, 2023
1 parent 9c028cd commit 11cf361
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -766,10 +766,10 @@ case "\$1" in
esac
EOF
chmod +x $targetdir/DEBIAN/postrm
if [[ "$board" == "bpi-r64" ]];then
debarch=arm64
else
if [[ "$board" == "bpi-r2" ]];then
debarch=armhf
else
debarch=arm64
fi

cat > $targetdir/DEBIAN/control << EOF
Expand Down Expand Up @@ -865,10 +865,10 @@ function build {
cp $DTBFILE $board.dtb
fi

if [[ "$board" == "bpi-r2pro" ]];then
#skipping mkimage causes no choice, but uImage is not bootable on r2pro
mkimage -A ${uimagearch} -O linux -T kernel -C none -a $LADDR -e $ENTRY -n "Linux Kernel $kernver$gitbranch" -d $IMAGE ./uImage_nodt
elif [[ "$board" == "bpi-r64" || "$board" == "bpi-r3" ]];then
#if [[ "$board" == "bpi-r2pro" ]];then
# #skipping mkimage causes no choice, but uImage is not bootable on r2pro
# mkimage -A ${uimagearch} -O linux -T kernel -C none -a $LADDR -e $ENTRY -n "Linux Kernel $kernver$gitbranch" -d $IMAGE ./uImage_nodt
if [[ -e ${board}.its ]];then #"$board" == "bpi-r64" || "$board" == "bpi-r3" ]];then
mkimage -A ${uimagearch} -O linux -T kernel -C none -a $LADDR -e $ENTRY -n "Linux Kernel $kernver$gitbranch" -d $IMAGE ./uImage_nodt
sed "s/%version%/$kernver$gitbranch/" ${board}.its > ${board}.its.tmp
mkimage -f ${board}.its.tmp ${board}.itb
Expand Down Expand Up @@ -941,9 +941,9 @@ function prepare_SD {
cp ./uImage_nodt $kerndir/uImage_nodt
cp ./$board.dtb $fdtdir/$board.dtb
fi
if [[ -e ./$board.itb ]];then
cp ./$board.itb $kerndir/$board.itb
fi
fi
if [[ -e ./$board.itb ]];then
cp ./$board.itb $kerndir/$board.itb
fi
make modules_install

Expand Down

0 comments on commit 11cf361

Please sign in to comment.