add files

This commit is contained in:
Casper Chang
2020-12-14 09:59:04 +08:00
parent c3ae0517c0
commit b099b33bfa
9 changed files with 280 additions and 0 deletions

32
main_cros_reposync_build.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/usr/bin/expect -f
# 1. remove unmount and remove tmp directory mkdir new directory and repo init
# 2. cp local_manifest folder to new directory's .repo/
# 3. enter new directory and repo sync [expect] wait success
# 4. cros_sdk --no-ns-pid to enter chroot [expect] enter password
# set password [lindex $argv 0 ] # password
# set build_image [lindex $argv 1 ] # 接收第2個引數,作為userid
set timeout -1
spawn ./cros_repoinit.sh
expect "repo has been initialized"
spawn ./cros_cp_localmanifest.sh
expect "local_manifests"
spawn ./cros_reposync.sh
expect "repo sync has finished successfully"
spawn ./cros_enter_sdk.sh
expect "password"
send "casper\r"
expect "(cr)"
# echo "enterd chroot setup_board"
send "setup_board --board=volteer --profile=eldrid --force\r"
expect "(cr)"
send "ls\r"
interact