From 54ebd1dea1dd4ad68d28e27f7a20ce843f1d2f59 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 27 Jan 2018 21:36:39 +0100 Subject: added more variables and cleaned up phase 1 --- README | 14 +++++--------- build_cross.sh | 17 ++++++++++++++--- default.conf | 5 +++++ prepare_stage1_repo.sh | 38 +++++++++++++++++++++++--------------- 4 files changed, 47 insertions(+), 27 deletions(-) diff --git a/README b/README index 63a1703..0b8c205 100644 --- a/README +++ b/README @@ -119,19 +119,15 @@ cp .config ct-ng.config su cross ./prepare_stage1_repo.sh +######### +# PHASE 1 +######### +Build stage1 with the cross-compiler and modified PKGBUILDs and patches +into $STAGE1_CHROOT # TODO FROM HERE: -# get the Archlinux32 diffs -########################### - -cd $HOME -git clone git@github.com:archlinux32/packages.git packages32 - -######### -# PHASE 1 -######### # package shims ################ diff --git a/build_cross.sh b/build_cross.sh index f40ce98..6689c50 100755 --- a/build_cross.sh +++ b/build_cross.sh @@ -18,6 +18,17 @@ if test ! -f /etc/sudoers.d/cross; then echo "cross ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers.d/cross fi +# we need the github keys +if test ! -d $CROSS_HOME/.ssh; then + mkdir $CROSS_HOME/.ssh + chown cross:cross $CROSS_HOME/.ssh +fi +if test ! -f $CROSS_HOME/.ssh/id_rsa.pub; then + cp $HOME/.ssh/id_rsa.pub $CROSS_HOME/.ssh/. + cp $HOME/.ssh/id_rsa $CROSS_HOME/.ssh/. + chown cross:cross $CROSS_HOME/.ssh/id_rsa* +fi + if test ! -x /usr/local/bin/ct-ng; then echo "Installing crosstool-ng:" su - cross <