1
0
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:
niusmallnan
2018-11-30 17:37:32 +08:00
committed by niusmallnan
parent 63ae91712c
commit 1523fd5b73
7 changed files with 4732 additions and 3 deletions

View 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();

View 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