1*4882a593Smuzhiyuninherit kernel-arch 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun# We do the dependency this way because the output is not preserved 4*4882a593Smuzhiyun# in sstate, so we must force do_compile to run (once). 5*4882a593Smuzhiyundo_configure[depends] += "make-mod-scripts:do_compile" 6*4882a593Smuzhiyun 7*4882a593Smuzhiyunexport OS = "${TARGET_OS}" 8*4882a593Smuzhiyunexport CROSS_COMPILE = "${TARGET_PREFIX}" 9*4882a593Smuzhiyun 10*4882a593Smuzhiyun# This points to the build artefacts from the main kernel build 11*4882a593Smuzhiyun# such as .config and System.map 12*4882a593Smuzhiyun# Confusingly it is not the module build output (which is ${B}) but 13*4882a593Smuzhiyun# we didn't pick the name. 14*4882a593Smuzhiyunexport KBUILD_OUTPUT = "${STAGING_KERNEL_BUILDDIR}" 15*4882a593Smuzhiyun 16*4882a593Smuzhiyunexport KERNEL_VERSION = "${@oe.utils.read_file('${STAGING_KERNEL_BUILDDIR}/kernel-abiversion')}" 17*4882a593SmuzhiyunKERNEL_OBJECT_SUFFIX = ".ko" 18*4882a593Smuzhiyun 19*4882a593Smuzhiyun# kernel modules are generally machine specific 20*4882a593SmuzhiyunPACKAGE_ARCH = "${MACHINE_ARCH}" 21*4882a593Smuzhiyun 22