1 |
On Fri, 1 May 2020 18:40:34 -0700 |
2 |
Matt Turner <mattst88@g.o> wrote: |
3 |
|
4 |
> Signed-off-by: Matt Turner <mattst88@g.o> |
5 |
> --- |
6 |
|
7 |
Please list the functions inlined. That way anyone does not have to |
8 |
read the actual patch to know. I know this is short and simple, but |
9 |
if there were 5 or 6 inlined in as many different files... |
10 |
|
11 |
otherwise looks fine |
12 |
|
13 |
|
14 |
> targets/support/bootloader-setup.sh | 21 +++++++++++++++++++-- |
15 |
> targets/support/functions.sh | 22 ---------------------- |
16 |
> 2 files changed, 19 insertions(+), 24 deletions(-) |
17 |
> |
18 |
> diff --git a/targets/support/bootloader-setup.sh |
19 |
> b/targets/support/bootloader-setup.sh index d507fe5e..d3a6b2dc 100755 |
20 |
> --- a/targets/support/bootloader-setup.sh |
21 |
> +++ b/targets/support/bootloader-setup.sh |
22 |
> @@ -19,8 +19,25 @@ else |
23 |
> fi |
24 |
> |
25 |
> extract_kernels $1/boot |
26 |
> -check_bootargs |
27 |
> -check_filesystem_type |
28 |
> + |
29 |
> +# Add any additional options |
30 |
> +if [ -n "${clst_livecd_bootargs}" ] |
31 |
> +then |
32 |
> + for x in ${clst_livecd_bootargs} |
33 |
> + do |
34 |
> + cmdline_opts="${cmdline_opts} ${x}" |
35 |
> + done |
36 |
> +fi |
37 |
> + |
38 |
> +case ${clst_fstype} in |
39 |
> + squashfs) |
40 |
> + cmdline_opts="${cmdline_opts} looptype=squashfs |
41 |
> loop=/image.squashfs" |
42 |
> + ;; |
43 |
> + jffs2) |
44 |
> + cmdline_opts="${cmdline_opts} looptype=jffs2 |
45 |
> loop=/image.jffs2" |
46 |
> + ;; |
47 |
> +esac |
48 |
> + |
49 |
> |
50 |
> default_append_line="root=/dev/ram0 init=/linuxrc ${cmdline_opts} |
51 |
> ${custom_kopts} cdroot" [ -n "${clst_splash_theme}" ] && |
52 |
> default_append_line="${default_append_line} |
53 |
> splash=silent,theme:${clst_livecd_splash_theme} CONSOLE=/dev/tty1 |
54 |
> quiet" diff --git a/targets/support/functions.sh |
55 |
> b/targets/support/functions.sh index 601f5dc9..ac6710ad 100755 --- |
56 |
> a/targets/support/functions.sh +++ b/targets/support/functions.sh @@ |
57 |
> -216,25 +216,3 @@ extract_kernel() { mv ${1}/initramfs-* ${1}/${2}.igz |
58 |
> fi |
59 |
> } |
60 |
> - |
61 |
> -check_bootargs(){ |
62 |
> - # Add any additional options |
63 |
> - if [ -n "${clst_livecd_bootargs}" ] |
64 |
> - then |
65 |
> - for x in ${clst_livecd_bootargs} |
66 |
> - do |
67 |
> - cmdline_opts="${cmdline_opts} ${x}" |
68 |
> - done |
69 |
> - fi |
70 |
> -} |
71 |
> - |
72 |
> -check_filesystem_type(){ |
73 |
> - case ${clst_fstype} in |
74 |
> - squashfs) |
75 |
> - cmdline_opts="${cmdline_opts} |
76 |
> looptype=squashfs loop=/image.squashfs" |
77 |
> - ;; |
78 |
> - jffs2) |
79 |
> - cmdline_opts="${cmdline_opts} looptype=jffs2 |
80 |
> loop=/image.jffs2" |
81 |
> - ;; |
82 |
> - esac |
83 |
> -} |