POSIX: Modified posix_run.sh to create rootfs dirs

The default rootfs is now in:

Build/posix_default.build/rootfs/

The subdirs fs/microsd and eeprom are now created if they do not exist.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-06-11 21:44:21 -07:00
parent 4d1ae6269b
commit c9be962f4c
1 changed files with 3 additions and 17 deletions

View File

@ -1,19 +1,5 @@
#!/bin/bash
if [ ! -d /fs/msdcard ] && [ ! -w /fs/msdcard ]
then
echo "Need to create/mount writable /fs/microsd"
echo "sudo mkdir -p /fs/msdcard"
echo "sudo chmod 777 /fs/msdcard"
exit 1
fi
if [ ! -d /eeprom ] && [ ! -w /eeprom ]
then
echo "Need to create/mount writable /eeprom"
echo "sudo mkdir -p /eeprom"
echo "sudo chmod 777 /eeprom"
exit 1
fi
Build/posix_default.build/mainapp posix-configs/posixtest/init/rc.S
mkdir -p Build/posix_default.build/rootfs/fs/microsd
mkdir -p Build/posix_default.build/rootfs/eeprom
cd Build/posix_default.build && ./mainapp ../../posix-configs/posixtest/init/rc.S