|
From: Ivan D. <idr...@us...> - 2006-06-13 20:45:38
|
Update of /cvsroot/terk/embed In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv15314 Added Files: Makefile buildoptfs.sh Log Message: recoverd, seperated embed from cirrus trees --- NEW FILE: buildoptfs.sh --- #!/bin/sh # The following script copies all the required files to the /opt directory # and creates the optfs.out image. exec 3>&1 echo Building r/w filesystem... >&3 # Get the rules for building the various packages. BASEDIR=`cd ../cirrus-arm-linux-1.0.4; pwd` echo $BASEDIR . ${BASEDIR}/buildrules # Create necessary directories try rm -rf ${BASEDIR}/edb9302/opt try mkdir -p ${BASEDIR}/edb9302/opt try mkdir -p ${BASEDIR}/edb9302/opt/scripts try mkdir -p ${BASEDIR}/edb9302/opt/fpga try mkdir -p ${BASEDIR}/edb9302/opt/www try mkdir -p ${BASEDIR}/edb9302/opt/www/cgi-bin try mkdir -p ${BASEDIR}/edb9302/opt/www/files try mkdir -p ${BASEDIR}/edb9302/opt/ice try mkdir -p ${BASEDIR}/edb9302/opt/bin try mkdir -p ${BASEDIR}/edb9302/opt/drivers # Copy C-R-I-T-I-C-A-L Files try cp ${BASEDIR}/../embed/util/fpgac/fpgac ${BASEDIR}/edb9302/opt/fpga try cp ${BASEDIR}/../embed/logic/qwerk/qwerk.bit ${BASEDIR}/edb9302/opt/fpga try cp ${BASEDIR}/../embed/src/drivers/qeinterrupt/qeinterrupt.ko ${BASEDIR}/edb9302/opt/drivers try cp ${BASEDIR}/../embed/src/drivers/qemotor/qemotor.ko ${BASEDIR}/edb9302/opt/drivers # Copy scripts try cp ${BASEDIR}/../embed/src/terkapi/terkServer ${BASEDIR}/edb9302/opt/ice try cp ${BASEDIR}/../embed/src/terkapi/config ${BASEDIR}/edb9302/opt/ice try cp ${BASEDIR}/../embed/src/scripts/autoconnect.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/getIP.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/robot.init ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/scan.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/setHostname.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/showwlan.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/storeUnique.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/tryGateways.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/waitForPing.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/wifiConnect.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/wiredConnect.pl ${BASEDIR}/edb9302/opt/scripts try cp ${BASEDIR}/../embed/src/scripts/config.wlan0.default ${BASEDIR}/edb9302/opt/config.wlan0 try cp ${BASEDIR}/../embed/src/scripts/config.eth0.default ${BASEDIR}/edb9302/opt/config.eth0 # Copy binaries try cp ${BASEDIR}/../embed/bin/devmem ${BASEDIR}/edb9302/opt/bin try cp ${BASEDIR}/../embed/bin/microperl ${BASEDIR}/edb9302/opt/bin try cp ${BASEDIR}/../embed/test/led/setLED ${BASEDIR}/edb9302/opt/bin try cp ${BASEDIR}/../embed/test/leds/setLEDs ${BASEDIR}/edb9302/opt/bin try cp ${BASEDIR}/../embed/src/diagnostics/checkCFG ${BASEDIR}/edb9302/opt/bin # Copy website try cp ${BASEDIR}/../embed/www/index.html ${BASEDIR}/edb9302/opt/www try cp ${BASEDIR}/../embed/www/loglinks.html ${BASEDIR}/edb9302/opt/www try cp ${BASEDIR}/../embed/www/menu.html ${BASEDIR}/edb9302/opt/www try cp ${BASEDIR}/../embed/www/tcpip.html ${BASEDIR}/edb9302/opt/www try cp ${BASEDIR}/../embed/www/cgi-bin/web.xml ${BASEDIR}/edb9302/opt/www/cgi-bin try cp ${BASEDIR}/../embed/www/cgi-bin/status.cgi ${BASEDIR}/edb9302/opt/www/cgi-bin try cp ${BASEDIR}/../embed/www/cgi-bin/wifi.cgi ${BASEDIR}/edb9302/opt/www/cgi-bin try cp ${BASEDIR}/../embed/www/cgi-bin/wifiSave.cgi ${BASEDIR}/edb9302/opt/www/cgi-bin try cp ${BASEDIR}/../embed/www/cgi-bin/wired.cgi ${BASEDIR}/edb9302/opt/www/cgi-bin try cp ${BASEDIR}/../embed/www/cgi-bin/wiredSave.cgi ${BASEDIR}/edb9302/opt/www/cgi-bin try cp ${BASEDIR}/../embed/www/files/IPConfig.txt ${BASEDIR}/edb9302/opt/www/files try cp ${BASEDIR}/../embed/www/files/NetworkConfig.txt ${BASEDIR}/edb9302/opt/www/files #BASEDIR=`cd cirrus-arm-linux-1.0.4/;` build_rwfs ${BASEDIR}/edb9302/opt edb9302 echo "Writable filesystem successfully created!" exit 0 --- NEW FILE: Makefile --- .PHONY: all all: @make -C ./src ./buildoptfs.sh backup: mv /tftpboot/optfs.out /tftpboot/BetaBase/optfs.out.`date +%F_%T` overwrite: cp ../cirrus-arm-linux-1.0.4/edb9302/optfs.out /tftpboot/ install: backup overwrite clean: make -C ./src clean |