abuild: always set CBUILD and CTARGET if unset
This commit is contained in:
parent
0190dfaf8f
commit
7472b59bb4
@ -158,8 +158,6 @@ default_sanitycheck() {
|
|||||||
|
|
||||||
# check if CARCH, CBUILD, CHOST and CTARGET is set
|
# check if CARCH, CBUILD, CHOST and CTARGET is set
|
||||||
[ -z "$CHOST" ] && die "Please set CHOST in /etc/abuild.conf"
|
[ -z "$CHOST" ] && die "Please set CHOST in /etc/abuild.conf"
|
||||||
[ -z "$CBUILD" ] && CBUILD="$CHOST"
|
|
||||||
[ -z "$CTARGET" ] && CTARGET="$CHOST"
|
|
||||||
|
|
||||||
if [ -z "$CARCH" ]; then
|
if [ -z "$CARCH" ]; then
|
||||||
die "Please fix CHOST, or set CARCH in abuild.conf"
|
die "Please fix CHOST, or set CARCH in abuild.conf"
|
||||||
@ -1911,6 +1909,9 @@ if [ -z "$CLIBC" ]; then
|
|||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ -z "$CBUILD" ] && CBUILD="$CHOST"
|
||||||
|
[ -z "$CTARGET" ] && CTARGET="$CHOST"
|
||||||
|
|
||||||
cd "$startdir" || die
|
cd "$startdir" || die
|
||||||
. "$APKBUILD"
|
. "$APKBUILD"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user