1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-02-14 12:21:53 +00:00

Add openwrt feeds as custom feeds

This commit is contained in:
Ycarus 2018-04-17 08:32:01 +02:00
parent 4a37bdeee1
commit 4ae09ae9a4

View file

@ -32,6 +32,12 @@ if [ ! -f "$OMR_TARGET_CONFIG" ]; then
exit 1
fi
if [ "$OMR_TARGET" == "rpi3" ]; then
OMR_REAL_TARGET = "aarch64_cortex-a53"
else
OMR_REAL_TARGET = $OMR_TARGET
fi
#_get_repo source https://github.com/ysurac/openmptcprouter-source "master"
#_get_repo "$OMR_TARGET/source" https://github.com/lede-project/source.git "3db9d6e57def2912314c7ce0bc0c282f313ed654"
_get_repo "$OMR_TARGET/source" https://github.com/lede-project/source.git "master"
@ -71,6 +77,14 @@ src-link luci $(readlink -f feeds/luci)
src-link openmptcprouter $(readlink -f "$OMR_FEED")
EOF
cat >> "$OMR_TARGET/source/package/system/opkg/files/customfeeds.conf" <<EOF
src/gz openwrt_luci http://downloads.openwrt.org/snapshots/packages/${OMR_REAL_TARGET}/luci
src/gz openwrt_packages http://downloads.openwrt.org/snapshots/packages/${OMR_REAL_TARGET}/packages
src/gz openwrt_base http://downloads.openwrt.org/snapshots/packages/${OMR_REAL_TARGET}/base
src/gz openwrt_routing http://downloads.openwrt.org/snapshots/packages/${OMR_REAL_TARGET}/routing
src/gz openwrt_telephony http://downloads.openwrt.org/snapshots/packages/${OMR_REAL_TARGET}/telephony
EOF
cat "$OMR_TARGET_CONFIG" config -> "$OMR_TARGET/source/.config" <<EOF
CONFIG_IMAGEOPT=y
CONFIG_VERSIONOPT=y
@ -123,5 +137,5 @@ echo "Done"
echo "Building $OMR_DIST for the target $OMR_TARGET"
make defconfig
make "$@" IGNORE_ERRORS=m
make IGNORE_ERRORS=m "$@"
echo "Done"