Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /, doc/
Date: Mon, 13 Sep 2021 05:08:33
Message-Id: 1631509625.0fb54668df8925cd81ed9d40917c19a78891f9da.mattst88@gentoo
1 commit: 0fb54668df8925cd81ed9d40917c19a78891f9da
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Mon Sep 13 05:07:05 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Sep 13 05:07:05 2021 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=0fb54668
7
8 gen_cmdline.sh: Correctly sort --{kernel,utils}-{as,nm}
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 doc/genkernel.8.txt | 18 +++++++++---------
13 gen_cmdline.sh | 40 ++++++++++++++++++++--------------------
14 2 files changed, 29 insertions(+), 29 deletions(-)
15
16 diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt
17 index 262027b..273f9c1 100644
18 --- a/doc/genkernel.8.txt
19 +++ b/doc/genkernel.8.txt
20 @@ -243,24 +243,24 @@ LOW-LEVEL COMPILATION OPTIONS
21 when the system running genkernel has a different architecture like
22 the system which should boot the created kernel/initramfs.
23
24 -*--kernel-as*=<assembler>::
25 - Assembler to use for the kernel compilation.
26 -
27 *--kernel-ar*=<archiver>::
28 Archiver to use for the kernel compilation.
29
30 +*--kernel-as*=<assembler>::
31 + Assembler to use for the kernel compilation.
32 +
33 *--kernel-cc*=<compiler>::
34 Compiler to use for the kernel compilation (e.g. distcc).
35
36 *--kernel-ld*=<linker>::
37 Linker to use for the kernel compilation.
38
39 -*--kernel-nm*=<nm>::
40 - NM utility to use for the kernel compilation.
41 -
42 *--kernel-make*=<makeprog>::
43 GNU Make to use for the kernel compilation.
44
45 +*--kernel-nm*=<nm>::
46 + NM utility to use for the kernel compilation.
47 +
48 *--kernel-objcopy*=<objcopyprog>::
49 Objcopy utility to use for the kernel compilation.
50
51 @@ -290,12 +290,12 @@ LOW-LEVEL COMPILATION OPTIONS
52 tree (eg because cannot write to that directory as the user genkernel is
53 running as).
54
55 -*--utils-as*=<assembler>::
56 - Assembler to use for utilities.
57 -
58 *--utils-ar*=<archiver>::
59 Archiver to use for utilities.
60
61 +*--utils-as*=<assembler>::
62 + Assembler to use for utilities.
63 +
64 *--utils-cflags*=<cflags>::
65 C compiler flags used to compile utilities.
66
67
68 diff --git a/gen_cmdline.sh b/gen_cmdline.sh
69 index b35750d..e3c985e 100755
70 --- a/gen_cmdline.sh
71 +++ b/gen_cmdline.sh
72 @@ -86,24 +86,24 @@ longusage() {
73 echo " Low-Level Compile settings"
74 echo " --cross-compile=<target-triplet>"
75 echo " Target triple (i.e. aarch64-linux-gnu) to build for"
76 - echo " --kernel-as=<assembler> Assembler to use for kernel"
77 echo " --kernel-ar=<archiver> Archiver to use for kernel"
78 + echo " --kernel-as=<assembler> Assembler to use for kernel"
79 echo " --kernel-cc=<compiler> Compiler to use for kernel (e.g. distcc)"
80 echo " --kernel-ld=<linker> Linker to use for kernel"
81 - echo " --kernel-nm=<nm> NM utility to use for kernel"
82 echo " --kernel-make=<makeprg> GNU Make to use for kernel"
83 + echo " --kernel-nm=<nm> NM utility to use for kernel"
84 echo " --kernel-target=<t> Override default make target (bzImage)"
85 echo " --kernel-binary=<path> Override default kernel binary path (arch/foo/boot/bar)"
86 echo " --kernel-outputdir=<path>"
87 echo " Save output files outside the source tree"
88 - echo " --utils-as=<assembler> Assembler to use for utils"
89 echo " --utils-ar=<archiver> Archiver to use for utils"
90 + echo " --utils-as=<assembler> Assembler to use for utils"
91 echo " --utils-cc=<compiler> C Compiler to use for utilities"
92 echo " --utils-cxx=<compiler> C++ Compiler to use for utilities"
93 echo " --utils-cflags=<cflags> C compiler flags used to compile utilities"
94 echo " --utils-ld=<linker> Linker to use for utils"
95 - echo " --utils-nm=<nm> NM utility to use for utils"
96 echo " --utils-make=<makeprog> GNU Make to use for utils"
97 + echo " --utils-nm=<nm> NM utility to use for utils"
98 echo " --makeopts=<makeopts> Make options such as -j2, etc ..."
99 echo " --mountboot Mount BOOTDIR automatically if mountable"
100 echo " --no-mountboot Don't mount BOOTDIR automatically"
101 @@ -292,14 +292,14 @@ parse_cmdline() {
102 CMD_CROSS_COMPILE="${*#*=}"
103 print_info 3 "CMD_CROSS_COMPILE: ${CMD_CROSS_COMPILE}"
104 ;;
105 - --kernel-as=*)
106 - CMD_KERNEL_AS="${*#*=}"
107 - print_info 3 "CMD_KERNEL_AS: ${CMD_KERNEL_AS}"
108 - ;;
109 --kernel-ar=*)
110 CMD_KERNEL_AR="${*#*=}"
111 print_info 3 "CMD_KERNEL_AR: ${CMD_KERNEL_AR}"
112 ;;
113 + --kernel-as=*)
114 + CMD_KERNEL_AS="${*#*=}"
115 + print_info 3 "CMD_KERNEL_AS: ${CMD_KERNEL_AS}"
116 + ;;
117 --kernel-cc=*)
118 CMD_KERNEL_CC="${*#*=}"
119 print_info 3 "CMD_KERNEL_CC: ${CMD_KERNEL_CC}"
120 @@ -308,14 +308,14 @@ parse_cmdline() {
121 CMD_KERNEL_LD="${*#*=}"
122 print_info 3 "CMD_KERNEL_LD: ${CMD_KERNEL_LD}"
123 ;;
124 - --kernel-nm=*)
125 - CMD_KERNEL_NM="${*#*=}"
126 - print_info 3 "CMD_KERNEL_NM: ${CMD_KERNEL_NM}"
127 - ;;
128 --kernel-make=*)
129 CMD_KERNEL_MAKE="${*#*=}"
130 print_info 3 "CMD_KERNEL_MAKE: ${CMD_KERNEL_MAKE}"
131 ;;
132 + --kernel-nm=*)
133 + CMD_KERNEL_NM="${*#*=}"
134 + print_info 3 "CMD_KERNEL_NM: ${CMD_KERNEL_NM}"
135 + ;;
136 --kernel-objcopy=*)
137 CMD_KERNEL_OBJCOPY="${*#*=}"
138 print_info 3 "CMD_KERNEL_OBJCOPY: ${CMD_KERNEL_OBJCOPY}"
139 @@ -348,14 +348,14 @@ parse_cmdline() {
140 CMD_KERNEL_OUTPUTDIR="${*#*=}"
141 print_info 3 "CMD_KERNEL_OUTPUTDIR: ${CMD_KERNEL_OUTPUTDIR}"
142 ;;
143 - --utils-as=*)
144 - CMD_UTILS_AS="${*#*=}"
145 - print_info 3 "CMD_UTILS_AS: ${CMD_UTILS_AS}"
146 - ;;
147 --utils-ar=*)
148 CMD_UTILS_AR="${*#*=}"
149 print_info 3 "CMD_UTILS_AR: ${CMD_UTILS_AR}"
150 ;;
151 + --utils-as=*)
152 + CMD_UTILS_AS="${*#*=}"
153 + print_info 3 "CMD_UTILS_AS: ${CMD_UTILS_AS}"
154 + ;;
155 --utils-cc=*)
156 CMD_UTILS_CC="${*#*=}"
157 print_info 3 "CMD_UTILS_CC: ${CMD_UTILS_CC}"
158 @@ -372,14 +372,14 @@ parse_cmdline() {
159 CMD_UTILS_LD="${*#*=}"
160 print_info 3 "CMD_UTILS_LD: ${CMD_UTILS_LD}"
161 ;;
162 - --utils-nm=*)
163 - CMD_UTILS_NM="${*#*=}"
164 - print_info 3 "CMD_UTILS_NM: ${CMD_UTILS_NM}"
165 - ;;
166 --utils-make=*)
167 CMD_UTILS_MAKE="${*#*=}"
168 print_info 3 "CMD_UTILS_MAKE: ${CMD_UTILS_MAKE}"
169 ;;
170 + --utils-nm=*)
171 + CMD_UTILS_NM="${*#*=}"
172 + print_info 3 "CMD_UTILS_NM: ${CMD_UTILS_NM}"
173 + ;;
174 --utils-objcopy=*)
175 CMD_UTILS_OBJCOPY="${*#*=}"
176 print_info 3 "CMD_UTILS_OBJCOPY: ${CMD_UTILS_OBJCOPY}"