diff --git a/beagleboard.org_image.sh b/beagleboard.org_image.sh index c961e8a984d8bb652e6dc6b50d2bd18ba62fa6b2..6b85e04e783e0049d385172ec59ea69c51b5694e 100755 --- a/beagleboard.org_image.sh +++ b/beagleboard.org_image.sh @@ -102,7 +102,7 @@ minimal_armel () { chroot_node_release="${chroot_node_release}" chroot_node_build_options="${chroot_node_build_options}" - chroot_install_dtc="${chroot_install_dtc}" + chroot_enable_bborg_repo="${chroot_enable_bborg_repo}" chroot_COPY_SETUP_SDCARD="${chroot_COPY_SETUP_SDCARD}" @@ -291,7 +291,7 @@ chroot_install_cloud9="enable" #chroot_node_build_options="--without-snapshot --shared-openssl --shared-zlib --prefix=/usr/local/" chroot_node_release="v0.10.22" chroot_node_build_options="--without-snapshot --shared-cares --shared-openssl --shared-zlib --prefix=/usr/local/" -chroot_install_dtc="enable" +chroot_enable_bborg_repo="enable" #no_pkgs="enable" dpkg_arch="armhf" diff --git a/scripts/chroot.sh b/scripts/chroot.sh index bc62bdbb84dfe3aae2fea40665552d7b7381e8dd..92b04a00ab803e32ea7aba72ae49ae22d9a14226 100755 --- a/scripts/chroot.sh +++ b/scripts/chroot.sh @@ -206,6 +206,11 @@ wheezy) echo "" | sudo tee -a ${file} >/dev/null echo "#deb http://ftp.debian.org/debian ${release}-backports ${deb_components}" | sudo tee -a ${file} >/dev/null echo "##deb-src http://ftp.debian.org/debian ${release}-backports ${deb_components}" | sudo tee -a ${file} >/dev/null + if [ "x${chroot_enable_bborg_repo}" = "xenable" ] ; then + echo "" | sudo tee -a ${file} >/dev/null + echo "deb http://bbb.aikidev.net/debian ${release}-bbb main" | sudo tee -a ${file} >/dev/null + echo "#deb-src http://bbb.aikidev.net/debian ${release}-bbb main" | sudo tee -a ${file} >/dev/null + fi ;; precise|quantal|raring|saucy) echo "deb http://${deb_mirror} ${release} ${deb_components}"| sudo tee ${file} >/dev/null @@ -447,6 +452,12 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ } install_pkg_updates () { + if [ "x${chroot_enable_bborg_repo}" = "xenable" ] ; then + wget --no-verbose --directory-prefix=/tmp/ http://bbb.aikidev.net/keyring-bbb.aikidev.net.asc + apt-key add /tmp/keyring-bbb.aikidev.net.asc + rm -rf /tmp/keyring-bbb.aikidev.net.asc || true + fi + apt-get update apt-get upgrade -y --force-yes } @@ -723,31 +734,6 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ fi } - #beaglebones need 1.4.0+overlay... - install_dtc () { - pkg="git-core" - dpkg_check - - if [ "x\${pkg_is_not_installed}" = "x" ] ; then - git_sha="65cc4d2748a2c2e6f27f1cf39e07a5dbabd80ebf" - - mkdir -p /opt/dtc || true - qemu_command="git clone git://git.kernel.org/pub/scm/linux/kernel/git/jdl/dtc.git /opt/dtc --depth 1 || true" - qemu_warning - git clone git://git.kernel.org/pub/scm/linux/kernel/git/jdl/dtc.git /opt/dtc --depth 1 || true - cd /opt/dtc - #qemu can fail... - if [ -f /opt/dtc/Makefile ] ; then - git checkout \${git_sha} -b \${git_sha}-build - git pull --no-edit git://github.com/RobertCNelson/dtc.git dtc-fixup-65cc4d2 - make clean - make PREFIX=/usr/local/ CC=gcc CROSS_COMPILE= all - make PREFIX=/usr/local/ install - fi - chown -R ${user_name}:${user_name} /opt/dtc - fi - } - cleanup () { mkdir -p /boot/uboot/ @@ -790,10 +776,6 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ install_cloud9 fi - if [ "x${chroot_install_dtc}" = "xenable" ] ; then - install_dtc - fi - if [ "x${chroot_ENABLE_DEB_SRC}" = "xenable" ] ; then dl_pkg_src fi