Message ID | 1490835443-23652-1-git-send-email-hayashi.kunihiko@socionext.com |
---|---|
State | New |
Headers | show |
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 244087a..5e26965 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass @@ -268,7 +268,11 @@ kernel_do_compile() { for type in ${KERNEL_IMAGETYPES} ; do if test "${typeformake}.gz" = "${type}"; then mkdir -p "${KERNEL_OUTPUT_DIR}" - gzip -9c < "${typeformake}" > "${KERNEL_OUTPUT_DIR}/${type}" + if test x${typeformake} = x"vmlinux"; then + gzip -9c < "${typeformake}" > "${KERNEL_OUTPUT_DIR}/${type}" + else + gzip -9c < "arch/${ARCH}/boot/${typeformake}" > "${KERNEL_OUTPUT_DIR}/${type}" + fi break; fi done