Commit bae823ec authored by Stephen Boyd's avatar Stephen Boyd

make-arm: Bail out early if wrong ARCH

Let's avoid building on the wrong architecture if we detect that
the ARCH environment variable isn't ARM.
Signed-off-by: 's avatarStephen Boyd <sboyd@codeaurora.org>
parent 15ece94f
#!/bin/sh
#
# Copyright (c) 2013, The Linux Foundation. All rights reserved.
# Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
......@@ -59,6 +59,11 @@ die()
exit 1
}
if test -n "$ARCH" && test "$ARCH" != "arm"
then
die "Building for wrong arch"
fi
if test -z "$defconfig"
then
# Simple case
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment