Skip to content

Commit

Permalink
qtmoko-chroot.sh - rename to armel and armhf so that you can have 2 c…
Browse files Browse the repository at this point in the history
…hroots
  • Loading branch information
radekp committed Nov 30, 2013
1 parent d14d628 commit 031e9a9
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ git submodule update

* Create and enter debian chroot:

sudo scripts/qtmoko-chroot.sh
sudo scripts/qtmoko-chroot-armhf.sh

* Build it:

Expand Down Expand Up @@ -153,7 +153,7 @@ PC build

* Create and enter debian chroot:

sudo scripts/qtmoko-chroot.sh
sudo scripts/qtmoko-chroot-armhf.sh
mkdir -p /root/qte/build-pc
cd /root/qte/build-pc

Expand Down
8 changes: 4 additions & 4 deletions scripts/qtmoko-chroot.sh → scripts/qtmoko-chroot-armel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# set -o verbose

# We will use ext4 image for chroot
if [ ! -e ../qtmoko-chroot.img ]
if [ ! -e ../qtmoko-chroot-armel.img ]
then
echo "Creating chroot-build ext4 image"
dd if=/dev/zero of=../qtmoko-chroot.img bs=1024 count=3145728
mkfs.ext4 ../qtmoko-chroot.img
dd if=/dev/zero of=../qtmoko-chroot-armel.img bs=1024 count=3145728
mkfs.ext4 ../qtmoko-chroot-armel.img
fi

# Directory for chroot mount
Expand All @@ -21,7 +21,7 @@ fi
if [ ! -d ../qtmoko-chroot/bin ]
then
echo "Mounting image"
mount -o loop ../qtmoko-chroot.img ../qtmoko-chroot
mount -o loop ../qtmoko-chroot-armel.img ../qtmoko-chroot
fi

# Install squeeze rootfs if not installed yet
Expand Down
8 changes: 4 additions & 4 deletions scripts/qtmoko-chroot-armhf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# set -o verbose

# We will use ext4 image for chroot
if [ ! -e ../qtmoko-chroot.img ]
if [ ! -e ../qtmoko-chroot-armhf.img ]
then
echo "Creating chroot-build ext4 image"
dd if=/dev/zero of=../qtmoko-chroot.img bs=1024 count=3145728
mkfs.ext4 ../qtmoko-chroot.img
dd if=/dev/zero of=../qtmoko-chroot-armhf.img bs=1024 count=3145728
mkfs.ext4 ../qtmoko-chroot-armhf.img
fi

# Directory for chroot mount
Expand All @@ -21,7 +21,7 @@ fi
if [ ! -d ../qtmoko-chroot/bin ]
then
echo "Mounting image"
mount -o loop ../qtmoko-chroot.img ../qtmoko-chroot
mount -o loop ../qtmoko-chroot-armhf.img ../qtmoko-chroot
fi

# Install squeeze rootfs if not installed yet
Expand Down

0 comments on commit 031e9a9

Please sign in to comment.