2005-08-31 10:45:47 +00:00
|
|
|
inherit module_strip
|
|
|
|
|
|
|
|
inherit kernel-arch
|
|
|
|
|
|
|
|
export OS = "${TARGET_OS}"
|
|
|
|
export CROSS_COMPILE = "${TARGET_PREFIX}"
|
|
|
|
|
|
|
|
export KERNEL_VERSION = "${@base_read_file('${STAGING_KERNEL_DIR}/kernel-abiversion')}"
|
2011-07-01 13:07:57 +00:00
|
|
|
KERNEL_OBJECT_SUFFIX = ".ko"
|
2005-08-31 10:45:47 +00:00
|
|
|
|
|
|
|
# kernel modules are generally machine specific
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
2012-09-25 11:55:04 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Ensure the hostprogs are available for module compilation. Modules that
|
|
|
|
# inherit this recipe and override do_compile() should be sure to call
|
|
|
|
# do_make_scripts() or ensure the scripts are built independently.
|
|
|
|
#
|
|
|
|
do_make_scripts() {
|
|
|
|
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS
|
2013-01-27 06:20:45 +00:00
|
|
|
make CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \
|
2012-09-25 11:55:04 +00:00
|
|
|
-C ${STAGING_KERNEL_DIR} scripts
|
|
|
|
}
|