mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
Update build.sh
This commit is contained in:
parent
ce79ea96eb
commit
7ae1fa6640
1 changed files with 5 additions and 5 deletions
10
build.sh
10
build.sh
|
@ -144,12 +144,15 @@ rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/files" "$OMR_TARGET/${OMR_KERNEL}/sourc
|
||||||
rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/tools/firmware-utils"
|
rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/tools/firmware-utils"
|
||||||
rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/package/boot/uboot-rockchip"
|
rm -rf "$OMR_TARGET/${OMR_KERNEL}/source/package/boot/uboot-rockchip"
|
||||||
cp -rf root/* "$OMR_TARGET/${OMR_KERNEL}/source"
|
cp -rf root/* "$OMR_TARGET/${OMR_KERNEL}/source"
|
||||||
|
|
||||||
cat >> "$OMR_TARGET/${OMR_KERNEL}/source/package/base-files/files/etc/banner" <<EOF
|
cat >> "$OMR_TARGET/${OMR_KERNEL}/source/package/base-files/files/etc/banner" <<EOF
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
PACKAGE: $OMR_DIST
|
PACKAGE: $OMR_DIST
|
||||||
VERSION: $OMR_RELEASE
|
VERSION: $OMR_RELEASE
|
||||||
TARGET: $OMR_TARGET
|
TARGET: $OMR_TARGET
|
||||||
ARCH: $OMR_REAL_TARGET
|
ARCH: $OMR_REAL_TARGET
|
||||||
|
|
||||||
|
BUILD REPO: $(git config --get remote.origin.url)
|
||||||
BUILD DATE: $(date -u)
|
BUILD DATE: $(date -u)
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
EOF
|
EOF
|
||||||
|
@ -234,9 +237,6 @@ fi
|
||||||
if [ "$OMR_PACKAGES" = "mini" ]; then
|
if [ "$OMR_PACKAGES" = "mini" ]; then
|
||||||
echo "CONFIG_PACKAGE_${OMR_DIST}-mini=y" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
echo "CONFIG_PACKAGE_${OMR_DIST}-mini=y" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
||||||
fi
|
fi
|
||||||
if [ "$OMR_PACKAGES" = "zuixiao" ]; then
|
|
||||||
echo "CONFIG_PACKAGE_${OMR_DIST}-zuixiao=y" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$SHORTCUT_FE" = "yes" ] && [ "${OMR_KERNEL}" = "5.4" ]; then
|
if [ "$SHORTCUT_FE" = "yes" ] && [ "${OMR_KERNEL}" = "5.4" ]; then
|
||||||
echo "# CONFIG_PACKAGE_kmod-fast-classifier is not set" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
echo "# CONFIG_PACKAGE_kmod-fast-classifier is not set" >> "$OMR_TARGET/${OMR_KERNEL}/source/.config"
|
||||||
|
@ -349,7 +349,7 @@ if [ "$OMR_TARGET" = "bpi-r1" ]; then
|
||||||
done
|
done
|
||||||
echo "done"
|
echo "done"
|
||||||
fi
|
fi
|
||||||
chmod -R 777 "$OMR_TARGET/${OMR_KERNEL}/source"
|
|
||||||
cd "$OMR_TARGET/${OMR_KERNEL}/source"
|
cd "$OMR_TARGET/${OMR_KERNEL}/source"
|
||||||
|
|
||||||
#if [ "$OMR_UEFI" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then
|
#if [ "$OMR_UEFI" = "yes" ] && [ "$OMR_TARGET" = "x86_64" ]; then
|
||||||
|
@ -674,4 +674,4 @@ fi
|
||||||
echo "Building $OMR_DIST for the target $OMR_TARGET with kernel ${OMR_KERNEL}"
|
echo "Building $OMR_DIST for the target $OMR_TARGET with kernel ${OMR_KERNEL}"
|
||||||
make defconfig
|
make defconfig
|
||||||
make IGNORE_ERRORS=m "$@"
|
make IGNORE_ERRORS=m "$@"
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue