#!/bin/bash cd /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU echo "GetTime" TarTimeStr=`date "+%Y-%m-%d-%H:%M:%S"` echo "tar >bk" #--force-local 忽略:符号 kooloo add 202310 tar -czvf DevicePortGet+$TarTimeStr.tar.gz DevicePortGet --force-local mv DevicePortGet*.tar.gz /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/bk/DevicePortGet_bk cd /home/alientek/linux/nfs/rootfs/home #--force-local 忽略:符号 kooloo add 202310 tar -czvf EdgeGateway_FSU_App+$TarTimeStr.tar.gz EdgeGateway_FSU_App --force-local mv EdgeGateway_FSU_App*.tar.gz /home/alientek/linux/nfs/rootfs/home/Db_Bk echo "Enter DevicePortGet Menu" cd /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/DevicePortGet echo "Enter Build" cd build echo "build rm" rm -rf * echo "cmake .." cmake .. echo "make clean" make clean echo "Start Make" make -j12 #EdgeGateway_FSU_App 更新 之前测试使用 kooloo add 202310 echo "Del" rm /home/alientek/linux/nfs/rootfs/lib/modules/4.1.15-g3dc0a4b/DevicePortGetApp echo "cp" cp /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/DevicePortGet/bin/DevicePortGetApp /home/alientek/linux/nfs/rootfs/lib/modules/4.1.15-g3dc0a4b/ #EdgeGateway_FSU_App 更新 echo "EdgeGateway_FSU_App Del" rm /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App/DevicePortGetApp echo "EdgeGateway_FSU_App cp" cp /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/DevicePortGet/bin/DevicePortGetApp /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App #TimeAlignedApp 更新 echo "TimeAlignedApp Del" rm /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App/TimeAlignedApp echo "TimeAlignedApp cp" cp /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/DevicePortGet/TimeAligned_Src/bin/TimeAlignedApp /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App #MqttClientApp 更新 echo "MqttClientApp Del" rm /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App/MqttClientApp echo "MqttClientApp cp" cp /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/DevicePortGet/Mqtt_src/bin/MqttClientApp /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App #MainProcessApp 更新 echo "MainProcessApp Del" rm /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App/MainProcessApp echo "MainProcessApp cp" cp /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/DevicePortGet/MainProcess_Src/bin/MainProcessApp /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App #Uart_passthrough 更新 echo "Uart_passthrough Del" rm /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App/Uart_passthroughApp echo "Uart_passthrough cp" cp /home/alientek/Desktop/test_arm_no/EdgeGateway_FSU/DevicePortGet/Uart_passthrough/bin/Uart_passthroughApp /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App #进入到App目录 并显示目录中文件 cd /home/alientek/linux/nfs/rootfs/home/EdgeGateway_FSU_App/App ls -l echo "END"