1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Fixes, use UEFI when enabled,...

This commit is contained in:
Ycarus 2018-01-29 10:02:35 +01:00
parent a7d3036d69
commit 79408b4704
5 changed files with 874 additions and 67 deletions

View file

@ -18,6 +18,7 @@ OMR_HOST=${OMR_HOST:-$(curl -sS ifconfig.co)}
OMR_PORT=${OMR_PORT:-8000}
OMR_REPO=${OMR_REPO:-http://$OMR_HOST:$OMR_PORT/$OMR_PATH}
OMR_KEEPBIN=${OMR_KEEPBIN:-no}
OMR_UEFI=${OMR_UEFI:-yes}
OMR_TARGET=${OMR_TARGET:-x86_64}
OMR_TARGET_CONFIG="config-$OMR_TARGET"
@ -73,14 +74,19 @@ CONFIG_VERSION_DIST="$OMR_DIST"
CONFIG_VERSION_REPO="$OMR_REPO"
CONFIG_VERSION_NUMBER="$(git describe --tag --always)"
CONFIG_VERSION_CODE="$(git -C "$OMR_FEED" describe --tag --always)"
CONFIG_PACKAGE_$OMR_DIST=y
CONFIG_PACKAGE_${OMR_DIST}-full=m
CONFIG_PACKAGE_${OMR_DIST}-full=y
EOF
echo "Building $OMR_DIST for the target $OMR_TARGET"
cd source
if [ "$OMR_UEFI" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then
patch -N -p1 < ../patches/uefi.patch
else
patch -N -R -p1 < ../patches/uefi.patch
fi
cp .config .config.keep
scripts/feeds clean
scripts/feeds update -a