#!/bin/bash -x # This is to replicate the setup I have for native ARM boxes # but to be used inside a chrooted ARMedslack under qemu. # I have turrican's root file system mounted inside /mnt/turrican # BEFORE chrooting into the environment. mkdir -p /mnt/armedslack/mnt/turrican #PTH=/mnt/turrican/scratchbox/users/build/home/build/ PTH=/mnt/pris/scratchbox/users/build/home/build/ AS=/mnt/armedslack cd $AS mkdir -p home/build/192.168.1.2-ARM ln -fs $PTH/tgzstash home/build/tgzstash ln -fs $PTH/tgzstash root/ ln -fs $PTH/armedslack-current/armedslack-current root/ ln -fs $PTH/slackware-current root/ ln -fs $PTH /home/build/armedslack-current armedslack ln -fs $PTH/slackware-current home/build/ ln -fs /usr/share/slackdev root/s ln -fs $PTH/unbuilt root/ ln -fs $PTH/upunbuild root/ # I update slackkit a lot: cat << EOF > root/sk removepkg slackkit rm -rf /usr/share/slackdev installpkg ~/armedslack-current/armedslack-devel/slackkit*.tgz EOF chmod 755 root/sk # I do this a lot too: cat << EOF > root/i cp -a ~/s/arm/ ~/s/d.SlackBuild ~/s/differ . EOF chmod 755 root/i # Install the devkit: #~/sk