diff options
-rw-r--r-- | meta/classes/kernel.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass index 52aea97372..229679c72e 100644 --- a/meta/classes/kernel.bbclass +++ b/meta/classes/kernel.bbclass | |||
@@ -75,10 +75,15 @@ EXTRA_OEMAKE = "" | |||
75 | 75 | ||
76 | KERNEL_ALT_IMAGETYPE ??= "" | 76 | KERNEL_ALT_IMAGETYPE ??= "" |
77 | 77 | ||
78 | KERNEL_IMAGETYPE_FOR_MAKE = "${@(lambda s: s[:-3] if s[-3:] == ".gz" else s)(bb.data.getVar('KERNEL_IMAGETYPE', d, 1))}" | ||
79 | |||
78 | kernel_do_compile() { | 80 | kernel_do_compile() { |
79 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE | 81 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE |
80 | oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 82 | oe_runmake include/linux/version.h CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
81 | oe_runmake ${KERNEL_IMAGETYPE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" | 83 | oe_runmake ${KERNEL_IMAGETYPE_FOR_MAKE} ${KERNEL_ALT_IMAGETYPE} CC="${KERNEL_CC}" LD="${KERNEL_LD}" |
84 | if test "${KERNEL_IMAGETYPE_FOR_MAKE}.gz" = "${KERNEL_IMAGETYPE}"; then | ||
85 | gzip -9c < "${KERNEL_IMAGETYPE_FOR_MAKE}" > "${KERNEL_OUTPUT}" | ||
86 | fi | ||
82 | } | 87 | } |
83 | 88 | ||
84 | do_compile_kernelmodules() { | 89 | do_compile_kernelmodules() { |