1 |
commit: ccb86d0e5727b6428abe92ff93929e0c737ad0bd |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Mar 28 19:25:40 2019 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Mar 28 19:25:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=ccb86d0e |
7 |
|
8 |
set_kernel_arch(): error out if VER, SUB or PAT is not defined |
9 |
|
10 |
If VER, SUB or PAT is not defined for some reason, bad things will happen. |
11 |
|
12 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
13 |
|
14 |
gen_arch.sh | 4 ++++ |
15 |
1 file changed, 4 insertions(+) |
16 |
|
17 |
diff --git a/gen_arch.sh b/gen_arch.sh |
18 |
index 1c9ec37..4ced125 100755 |
19 |
--- a/gen_arch.sh |
20 |
+++ b/gen_arch.sh |
21 |
@@ -48,6 +48,10 @@ get_official_arch() { |
22 |
} |
23 |
|
24 |
set_kernel_arch() { |
25 |
+ [ -z "${VER}" ] && gen_die "cannot set KERNEL_ARCH without VER!" |
26 |
+ [ -z "${SUB}" ] && gen_die "cannot set KERNEL_ARCH without SUB!" |
27 |
+ [ -z "${PAT}" ] && gen_die "cannot set KERNEL_ARCH without PAT!" |
28 |
+ |
29 |
KERNEL_ARCH=${ARCH} |
30 |
case ${ARCH} in |
31 |
ppc|ppc64*) |