mirror of
https://github.com/rancher/os-kernel.git
synced 2025-09-25 12:42:05 +00:00
Add arm64 kernel
This commit is contained in:
18
patches/arm64/elide-post-dash-cmdline-from-proc.patch
Normal file
18
patches/arm64/elide-post-dash-cmdline-from-proc.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
diff --git a/init/main.c b/init/main.c
|
||||
index 2858be7..83fa41b 100644
|
||||
--- a/init/main.c
|
||||
+++ b/init/main.c
|
||||
@@ -519,9 +519,12 @@ asmlinkage __visible void __init start_kernel(void)
|
||||
static_command_line, __start___param,
|
||||
__stop___param - __start___param,
|
||||
-1, -1, NULL, &unknown_bootoption);
|
||||
- if (!IS_ERR_OR_NULL(after_dashes))
|
||||
+ if (!IS_ERR_OR_NULL(after_dashes)) {
|
||||
+ /* elide the non-kernel params by puting a \0 just after the -- */
|
||||
+ saved_command_line[after_dashes-static_command_line-1] = "\0";
|
||||
parse_args("Setting init args", after_dashes, NULL, 0, -1, -1,
|
||||
NULL, set_init_arg);
|
||||
+ }
|
||||
|
||||
jump_label_init();
|
||||
|
19
patches/arm64/kbuild-buildtar-add-arm64-support.patch
Normal file
19
patches/arm64/kbuild-buildtar-add-arm64-support.patch
Normal file
@@ -0,0 +1,19 @@
|
||||
diff --git a/scripts/package/buildtar b/scripts/package/buildtar
|
||||
index 55887ac84ee4..d624a07a4e77 100755
|
||||
--- a/scripts/package/buildtar
|
||||
+++ b/scripts/package/buildtar
|
||||
@@ -105,6 +105,14 @@ case "${ARCH}" in
|
||||
cp -v -- "${objtree}/vmlinux" "${tmpdir}/boot/vmlinux-${KERNELRELEASE}"
|
||||
fi
|
||||
;;
|
||||
+ arm64)
|
||||
+ for i in Image.bz2 Image.gz Image.lz4 Image.lzma Image.lzo ; do
|
||||
+ if [ -f "${objtree}/arch/arm64/boot/${i}" ] ; then
|
||||
+ cp -v -- "${objtree}/arch/arm64/boot/${i}" "${tmpdir}/boot/vmlinuz-${KERNELRELEASE}"
|
||||
+ break
|
||||
+ fi
|
||||
+ done
|
||||
+ ;;
|
||||
*)
|
||||
[ -f "${KBUILD_IMAGE}" ] && cp -v -- "${KBUILD_IMAGE}" "${tmpdir}/boot/vmlinux-kbuild-${KERNELRELEASE}"
|
||||
echo "" >&2
|
Reference in New Issue
Block a user