Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | SUMMARY = "Build tools needed by external modules" |
| 2 | LICENSE = "GPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" |
| 4 | |
| 5 | inherit kernel-arch |
| 6 | inherit pkgconfig |
| 7 | |
| 8 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 9 | |
| 10 | S = "${WORKDIR}" |
| 11 | |
| 12 | do_configure[depends] += "virtual/kernel:do_shared_workdir openssl-native:do_populate_sysroot" |
| 13 | do_compile[depends] += "virtual/kernel:do_compile_kernelmodules" |
| 14 | |
Andrew Geissler | 1e34c2d | 2020-05-29 16:02:59 -0500 | [diff] [blame] | 15 | RDEPENDS_${PN}-dev = "" |
| 16 | |
Brad Bishop | f3fd288 | 2019-06-21 08:06:37 -0400 | [diff] [blame] | 17 | DEPENDS += "bc-native bison-native" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 18 | |
| 19 | EXTRA_OEMAKE = " HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" HOSTCPP="${BUILD_CPP}"" |
| 20 | |
| 21 | # Build some host tools under work-shared. CC, LD, and AR are probably |
| 22 | # not used, but this is the historical way of invoking "make scripts". |
| 23 | # |
| 24 | do_configure() { |
| 25 | unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS |
| 26 | oe_runmake CC="${KERNEL_CC}" LD="${KERNEL_LD}" AR="${KERNEL_AR}" \ |
| 27 | -C ${STAGING_KERNEL_DIR} O=${STAGING_KERNEL_BUILDDIR} scripts prepare |
| 28 | |
| 29 | } |