projects
/
genkernel.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New release:
[genkernel.git]
/
gen_arch.sh
1
#!/bin/bash
2
3
get_official_arch() {
4
if [ "${CMD_ARCHOVERRIDE}" != '' ]
5
then
6
ARCH=${CMD_ARCHOVERRIDE}
7
else
8
ARCH=`uname -m`
9
case "${ARCH}" in
10
i?86)
11
ARCH="x86"
12
;;
13
*)
14
;;
15
esac
16
fi
17
18
ARCH_CONFIG="${GK_SHARE}/${ARCH}/config.sh"
19
[ -f "${ARCH_CONFIG}" ] || gen_die "${ARCH} not yet supported by genkernel. Please add the arch-specific config file, ${ARCH_CONFIG}"
20
}