You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
get_official_arch() {
|
|
|
|
if [ "${CMD_ARCHOVERRIDE}" != '' ]
|
|
|
|
then
|
|
|
|
ARCH=${CMD_ARCHOVERRIDE}
|
|
|
|
else
|
|
|
|
if [ "${ARCH_OVERRIDE}" != '' ]
|
|
|
|
then
|
|
|
|
ARCH=${ARCH_OVERRIDE}
|
|
|
|
else
|
|
|
|
ARCH=`uname -m`
|
|
|
|
case "${ARCH}" in
|
|
|
|
i?86)
|
|
|
|
ARCH="x86"
|
|
|
|
;;
|
|
|
|
mips|mips64)
|
|
|
|
ARCH="mips"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
ARCH_CONFIG="${GK_SHARE}/${ARCH}/config.sh"
|
|
|
|
[ -f "${ARCH_CONFIG}" ] || gen_die "${ARCH} not yet supported by genkernel. Please add the arch-specific config file, ${ARCH_CONFIG}"
|
|
|
|
}
|