anchor.diff:  RUN make defconfig && \
       make oldconfig && \
       make -j "$(getconf _NPROCESSORS_ONLN)" KCFLAGS="-fno-pie" && \
  -    cp arch/x86_64/boot/bzImage /out/kernel && \
  +    case $(uname -m) in \
  +    x86_64) \
  +        cp arch/x86_64/boot/bzImage /out/kernel; \
  +        ;; \
  +    aarch64) \
  +        cp arch/arm64/boot/Image.gz /out/kernel; \
  +        ;; \
  +    esac && \
       cp System.map /out && \
       ([ -n "${DEBUG}" ] && cp vmlinux /out || true)
   
  
positive.code:     gpg2 --verify linux-${KERNEL_VERSION}.tar.sign linux-${KERNEL_VERSION}.tar && \
      cat linux-${KERNEL_VERSION}.tar | tar --absolute-names -x && mv /linux-${KERNEL_VERSION} /linux
  
  COPY kernel_config-${KERNEL_SERIES} /linux/arch/x86/configs/x86_64_defconfig
  COPY kernel_config.debug /linux/debug_config
  
  RUN if [ -n "${DEBUG}" ]; then \
      sed -i 's/CONFIG_PANIC_ON_OOPS=y/# CONFIG_PANIC_ON_OOPS is not set/' /linux/arch/x86/configs/x86_64_defconfig; \
      cat /linux/debug_config >> /linux/arch/x86/configs/x86_64_defconfig; \
      fi
  
  # Apply local patches
  COPY patches-${KERNEL_SERIES} /patches
  
negative.code:     tar \
      xz \
      xz-dev \
      zlib-dev && \
  # libunwind-dev pkg is missed from arm64 now, below statement will be removed if the pkg is available.
      if [ $(uname -m) == x86_64 ]; then \
          apk add libunwind-dev; \
      fi
  
  ARG KERNEL_VERSION
  ARG KERNEL_SERIES
  