mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
more motioneye cleanups
This commit is contained in:
parent
c1c1e0bfb9
commit
108002be9a
@ -7,6 +7,3 @@ cp $IMG_DIR/sun7i-a20-bananapi.dtb $BOOT_DIR
|
|||||||
|
|
||||||
$UBOOT_HOST_DIR/tools/mkimage -C none -A arm -T script -d $BOARD_DIR/boot.cmd $BOOT_DIR/boot.scr
|
$UBOOT_HOST_DIR/tools/mkimage -C none -A arm -T script -d $BOARD_DIR/boot.cmd $BOOT_DIR/boot.scr
|
||||||
|
|
||||||
# disable software updating
|
|
||||||
sed -i 's/enable_update true/enable_update false/' $TARGET/etc/motioneye.conf
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
os_name="motionEyeOS"
|
os_name="thingOS"
|
||||||
os_short_name="motioneyeos"
|
os_short_name="thingos"
|
||||||
os_prefix="meye"
|
os_prefix="meye"
|
||||||
os_version="20170212"
|
os_version="20170218"
|
||||||
|
@ -9,9 +9,6 @@ cp $BOARD_DIR/bl1.bin.hardkernel $IMG_DIR
|
|||||||
cp $BOARD_DIR/u-boot.bin $IMG_DIR
|
cp $BOARD_DIR/u-boot.bin $IMG_DIR
|
||||||
cp $BOARD_DIR/boot.ini $BOOT_DIR
|
cp $BOARD_DIR/boot.ini $BOOT_DIR
|
||||||
|
|
||||||
# disable software updating
|
|
||||||
sed -i 's/enable_update true/enable_update false/' $TARGET/etc/motioneye.conf
|
|
||||||
|
|
||||||
# fix some lib dirs
|
# fix some lib dirs
|
||||||
if ! [ -L $TARGET/lib/arm-linux-gnueabihf ]; then
|
if ! [ -L $TARGET/lib/arm-linux-gnueabihf ]; then
|
||||||
mv $TARGET/lib/arm-linux-gnueabihf/* $TARGET/lib
|
mv $TARGET/lib/arm-linux-gnueabihf/* $TARGET/lib
|
||||||
|
@ -8,6 +8,3 @@ cp $IMG_DIR/meson64_odroidc2.dtb $BOOT_DIR
|
|||||||
cp $BOARD_DIR/bl1.bin.hardkernel $IMG_DIR
|
cp $BOARD_DIR/bl1.bin.hardkernel $IMG_DIR
|
||||||
cp $BOARD_DIR/u-boot.bin $IMG_DIR
|
cp $BOARD_DIR/u-boot.bin $IMG_DIR
|
||||||
cp $BOARD_DIR/boot.ini $BOOT_DIR
|
cp $BOARD_DIR/boot.ini $BOOT_DIR
|
||||||
|
|
||||||
# disable software updating
|
|
||||||
sed -i 's/enable_update true/enable_update false/' $TARGET/etc/motioneye.conf
|
|
||||||
|
@ -10,7 +10,3 @@ cp $BOARD_DIR/bl2.bin.hardkernel $IMG_DIR
|
|||||||
cp $BOARD_DIR/tzsw.bin.hardkernel $IMG_DIR
|
cp $BOARD_DIR/tzsw.bin.hardkernel $IMG_DIR
|
||||||
cp $BOARD_DIR/u-boot.bin $IMG_DIR
|
cp $BOARD_DIR/u-boot.bin $IMG_DIR
|
||||||
cp $BOARD_DIR/boot.ini $BOOT_DIR
|
cp $BOARD_DIR/boot.ini $BOOT_DIR
|
||||||
|
|
||||||
# disable software updating
|
|
||||||
sed -i 's/enable_update true/enable_update false/' $TARGET/etc/motioneye.conf
|
|
||||||
|
|
||||||
|
9
build.sh
9
build.sh
@ -11,6 +11,7 @@ board=$1
|
|||||||
target=${*:2}
|
target=${*:2}
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
basedir=$(pwd)
|
basedir=$(pwd)
|
||||||
|
osname=$(source $basedir/board/common/overlay/etc/version && echo $os_short_name)
|
||||||
gzip=$(which pigz || which gzip)
|
gzip=$(which pigz || which gzip)
|
||||||
|
|
||||||
if [ "$board" == "all" ]; then
|
if [ "$board" == "all" ]; then
|
||||||
@ -42,11 +43,11 @@ if [ "$target" == "mkimage" ]; then
|
|||||||
$boarddir/mkimage.sh
|
$boarddir/mkimage.sh
|
||||||
elif [ "$target" == "mkrelease" ]; then
|
elif [ "$target" == "mkrelease" ]; then
|
||||||
$boarddir/mkimage.sh
|
$boarddir/mkimage.sh
|
||||||
cp $outputdir/images/motioneyeos-$board.img $basedir
|
cp $outputdir/images/$osname-$board.img $basedir
|
||||||
date=$(date +%Y%m%d)
|
date=$(date +%Y%m%d)
|
||||||
mv $basedir/motioneyeos-$board.img $basedir/motioneyeos-$board-$date.img
|
mv $basedir/$osname-$board.img $basedir/$osname-$board-$date.img
|
||||||
rm -f $basedir/motioneyeos-$board-$date.img.gz
|
rm -f $basedir/$osname-$board-$date.img.gz
|
||||||
$gzip $basedir/motioneyeos-$board-$date.img
|
$gzip $basedir/$osname-$board-$date.img
|
||||||
elif [ -n "$target" ]; then
|
elif [ -n "$target" ]; then
|
||||||
make O=$outputdir $target
|
make O=$outputdir $target
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user