Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cross compiling for arm arch #58

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# ipfire-2.x

Cross Compiling for ARM (From Ubuntu 16.04)
# http://forum.ipfire.org/viewtopic.php?t=10811

sudo apt-get install qemu-user-static

sudo ./make.sh clean

sudo ./make.sh --target=armv5tel gettoolchain

sudo ./make.sh --target=armv5tel downloadsrc

sudo ./make.sh --target=armv5tel build BUILD_IMAGES=1

Wait for a few DAYS!

In case you get postfix errors, SKIP adding the postfix package
3 changes: 3 additions & 0 deletions lfs/flash-images
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ endif
mount --bind /dev $(MNThdd)/dev
mount --bind /sys $(MNThdd)/sys

ifeq "$(MACHINE_TYPE)" "arm"
cp /usr/bin/qemu-arm-static $(MNThdd)/usr/bin
endif
chroot $(MNThdd) /usr/bin/perl -e "require '/var/ipfire/lang.pl'; &Lang::BuildCacheLang"

# Create /etc/fstab
Expand Down
2 changes: 1 addition & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@ toolchain)
;;
gettoolchain)
# arbitrary name to be updated in case of new toolchain package upload
PACKAGE=$SNAME-$VERSION-toolchain-$TOOLCHAINVER-$MACHINE
PACKAGE=$SNAME-$VERSION-toolchain-$TOOLCHAINVER-$TARGET_ARCH
if [ ! -f $BASEDIR/cache/toolchains/$PACKAGE.tar.gz ]; then
URL_TOOLCHAIN=`grep URL_TOOLCHAIN lfs/Config | awk '{ print $3 }'`
test -d $BASEDIR/cache/toolchains || mkdir -p $BASEDIR/cache/toolchains
Expand Down