mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Add image generation support
This commit is contained in:
parent
35737bb1bb
commit
c545c98f10
2 changed files with 14 additions and 8 deletions
6
build.sh
6
build.sh
|
@ -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_IMG=${OMR_IMG:-no}
|
||||
OMR_UEFI=${OMR_UEFI:-yes}
|
||||
OMR_TARGET=${OMR_TARGET:-x86_64}
|
||||
OMR_TARGET_CONFIG="config-$OMR_TARGET"
|
||||
|
@ -77,6 +78,11 @@ CONFIG_VERSION_CODE="$(git -C "$OMR_FEED" describe --tag --always)"
|
|||
CONFIG_PACKAGE_${OMR_DIST}-full=y
|
||||
EOF
|
||||
|
||||
if [ "$OMR_IMG" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then
|
||||
echo 'CONFIG_VDI_IMAGES=y' >> source/.config
|
||||
echo 'CONFIG_VMDK_IMAGES=y' >> source/.config
|
||||
fi
|
||||
|
||||
echo "Building $OMR_DIST for the target $OMR_TARGET"
|
||||
|
||||
cd source
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue