Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
suyuan168 committed Nov 23, 2022
1 parent 36f7ebb commit 1f9a96f
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,9 @@ rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/files" "$OMR_TARGET/${OMR_KERNEL}/sourc
#rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/package/boot/arm-trusted-firmware-mediatek"
rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/tools/firmware-utils"
rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/package/boot/uboot-rockchip"
if [ "$OMR_TARGET" != "rutx" ]; then
# There is many customization to support rutx and this seems to break other ipq40xx, so dirty workaround for now
mv "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx" "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx.old"
cp -rf root/* "$OMR_TARGET/${OMR_KERNEL}/source"
rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx"
mv "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx.old" "$OMR_TARGET/${OMR_KERNEL}/source/target/linux/ipq40xx"
else
cp -rf root/* "$OMR_TARGET/${OMR_KERNEL}/source"
fi

cp -rf root/* "$OMR_TARGET/${OMR_KERNEL}/source"


cat >> "$OMR_TARGET/${OMR_KERNEL}/source/package/base-files/files/etc/banner" <<EOF
-----------------------------------------------------
Expand Down Expand Up @@ -642,7 +636,7 @@ fi
cd ../..
[ -d $OMR_FEED/luci-base/po/oc ] && cp -rf $OMR_FEED/luci-base/po/oc feeds/${OMR_KERNEL}/luci/modules/luci-base/po/
echo "Done"

chmod -R 777 "$OMR_TARGET/${OMR_KERNEL}/source"
cd "$OMR_TARGET/${OMR_KERNEL}/source"
echo "Update feeds index"
cp .config .config.keep
Expand All @@ -668,6 +662,7 @@ if [ -n "$CUSTOM_FEED" ]; then
else
scripts/feeds install -a -d y -f -p openmptcprouter
fi
scripts/feeds install -a
cp .config.keep .config
scripts/feeds install kmod-macremapper
echo "Done"
Expand Down

0 comments on commit 1f9a96f

Please sign in to comment.