[eclass] sabayon-kernel: fallback to CHOST if CTARGET is unset

This commit is contained in:
Fabio Erculiani
2013-05-24 16:02:52 +02:00
parent 62ab7659c7
commit 4699e76330
+2 -1
View File
@@ -303,7 +303,8 @@ _is_config_file_set() {
# Returns the arm kernel config file extension for the current subarch
_get_arm_subarch() {
local arm_arch=${CTARGET%%-*}
local target="${CTARGET:-${CHOST}}"
local arm_arch=${target%%-*}
if [[ ${arm_arch} == armv7? ]]; then
echo "armv7"
elif [[ ${arm_arch} == armv6? ]]; then