1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-15 04:42:02 +00:00

Fix RPI compilation

This commit is contained in:
Ycarus 2018-08-08 22:57:11 +02:00
parent 874a3118b1
commit 1a0b4b9fc4

View file

@ -133,11 +133,11 @@ cd "$OMR_TARGET/source"
echo "Checking if UEFI patch is set or not" echo "Checking if UEFI patch is set or not"
if [ "$OMR_UEFI" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then if [ "$OMR_UEFI" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then
if [ ! -f "target/linux/x86/image/startup.nsh" ]; then if [ ! -f "target/linux/x86/image/startup.nsh" ]; then
patch --force --posix -N -p1 -s < ../../patches/uefi.patch patch -N -p1 -s < ../../patches/uefi.patch
fi fi
else else
if [ -f "target/linux/x86/image/startup.nsh" ]; then if [ -f "target/linux/x86/image/startup.nsh" ]; then
patch --force --posix -N -R -p1 -s < ../../patches/uefi.patch patch -N -R -p1 -s < ../../patches/uefi.patch
fi fi
fi fi
echo "Done" echo "Done"
@ -155,6 +155,9 @@ echo "Done"
echo "Set to kernel 4.14 for rpi arch" echo "Set to kernel 4.14 for rpi arch"
find target/linux/brcm2708 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.9%KERNEL_PATCHVER:=4.14%g' {} \; find target/linux/brcm2708 -type f -name Makefile -exec sed -i 's%KERNEL_PATCHVER:=4.9%KERNEL_PATCHVER:=4.14%g' {} \;
echo "Done" echo "Done"
echo "Remove old RPI firmware"
rm -rf target/linux/brcm2708/base-files/lib/firmware
echo "Done"
echo "Update feeds index" echo "Update feeds index"
cp .config .config.keep cp .config .config.keep