| # Copyright OpenEmbedded Contributors |
| # SPDX-License-Identifier: MIT |
| # parse kernel ABI version out of <linux/version.h> |
| def get_kernelversion_headers(p): |
| fn = p + '/include/linux/utsrelease.h' |
| if not os.path.isfile(fn): |
| fn = p + '/include/generated/utsrelease.h' |
| if not os.path.isfile(fn): |
| fn = p + '/include/linux/version.h' |
| r = re.compile("#define UTS_RELEASE \"(.*)\"") |
| def get_kernelversion_file(p): |
| fn = p + '/kernel-abiversion' |
| return f.readlines()[0].strip() |
| def linux_module_packages(s, d): |
| return " ".join(map(lambda s: "kernel-module-%s%s" % (s.lower().replace('_', '-').replace('@', '+'), suffix), s.split())) |
| export KBUILD_BUILD_VERSION = "1" |
| export KBUILD_BUILD_USER ?= "oe-user" |
| export KBUILD_BUILD_HOST ?= "oe-host" |