Skip to content

Commit

Permalink
chroot: tweak url based on arch
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <[email protected]>
  • Loading branch information
RobertCNelson committed Apr 8, 2021
1 parent 1c03995 commit 8ce2bbe
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions scripts/chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -453,15 +453,25 @@ fi

if [ "x${repo_rcnee}" = "xenable" ] ; then
repo_rcnee_arch=${repo_rcnee_arch:-"armhf"}

#adding two new archives arm64, riscv64...
if [ "x${repo_rcnee_arch}" = "xarmhf" ] ; then
#armhf -> debian
rcnee_url_directory="${deb_distribution}"
else
#arm64 -> debian-arm64, riscv64 -> debian-riscv64
rcnee_url_directory="${deb_distribution}-${repo_rcnee_arch}"
fi

echo "" >> ${wfile}
echo "#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee" >> ${wfile}
echo "#" >> ${wfile}
echo "#git clone https://github.com/RobertCNelson/linux-stable-rcn-ee" >> ${wfile}
echo "#cd ./linux-stable-rcn-ee" >> ${wfile}
echo "#git checkout \`uname -r\` -b tmp" >> ${wfile}
echo "#" >> ${wfile}
echo "deb [arch=${repo_rcnee_arch}] http://repos.rcn-ee.com/${deb_distribution}/ ${deb_codename} main" >> ${wfile}
echo "#deb-src [arch=${repo_rcnee_arch}] http://repos.rcn-ee.com/${deb_distribution}/ ${deb_codename} main" >> ${wfile}
echo "deb [arch=${repo_rcnee_arch}] http://repos.rcn-ee.com/${rcnee_url_directory}/ ${deb_codename} main" >> ${wfile}
echo "#deb-src [arch=${repo_rcnee_arch}] http://repos.rcn-ee.com/${rcnee_url_directory}/ ${deb_codename} main" >> ${wfile}

sudo cp -v "${OIB_DIR}/target/keyring/repos.rcn-ee.net-archive-keyring.asc" "${tempdir}/tmp/repos.rcn-ee.net-archive-keyring.asc"
fi
Expand Down Expand Up @@ -641,6 +651,11 @@ cat > "${DIR}/chroot_script.sh" <<-__EOF__
fi
echo "---------------------------------"
echo "debug: cat /etc/apt/sources.list-"
cat /etc/apt/sources.list
echo "---------------------------------"
echo "debug: apt-get update------------"
apt-get update
echo "---------------------------------"
Expand Down

0 comments on commit 8ce2bbe

Please sign in to comment.