Created
July 15, 2016 17:44
-
-
Save 0xFelix/31e5799c0171e73576656ae068b1ddbc to your computer and use it in GitHub Desktop.
Put both files in the same directory and make makepkg-arm executable, then use makepkg-arm instead of makepkg, cli parameters are passed through if given
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# makepkg-arm script | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
makepkg --config "$DIR/makepkg-arm.conf" "$@" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# makepkg-arm.conf | |
# make sure this is in the same dir as makepkg-arm or adjust makepkg-arm | |
# | |
source /etc/makepkg.conf | |
export PATH=$PATH:/opt/x-tools/arm-unknown-linux-gnueabi/bin | |
export CROSS_COMPILE=arm-unknown-linux-gnueabi- | |
CARCH="arm" | |
CHOST="arm-unknown-linux-gnueabi" | |
export ARCH='arm' | |
#-- Make Flags: change this for DistCC/SMP systems | |
MAKEFLAGS="-j4" | |
# vim: set ft=sh ts=2 sw=2 et: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment