diff options
author | He Zhe <zhe.he@windriver.com> | 2020-02-17 17:57:38 +0800 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2020-02-18 13:53:47 +0800 |
commit | c29b7a480ad3e5308a1ecffa8225eeec624f68bc (patch) | |
tree | d9cc07e057884f0f8b70199e13b4932c602b8d53 | |
parent | f2cd2cd5cc7a076f94357ad3b9904909e2e4d536 (diff) | |
download | meta-dpdk-c29b7a480ad3e5308a1ecffa8225eeec624f68bc.tar.gz |
dpdk: Add check against necessary kernel options
dpdk requires kernel option features/intel-dpdk/intel-dpdk.scc to build.
We'd better warn users in advance before they meet some confusing errors
at compile-time.
Signed-off-by: He Zhe <zhe.he@windriver.com>
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r-- | recipes-extended/dpdk/dpdk.inc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes-extended/dpdk/dpdk.inc b/recipes-extended/dpdk/dpdk.inc index e70d9a6..1ec3a98 100644 --- a/recipes-extended/dpdk/dpdk.inc +++ b/recipes-extended/dpdk/dpdk.inc | |||
@@ -1,6 +1,11 @@ | |||
1 | DESCRIPTION = "Intel(r) Data Plane Development Kit" | 1 | DESCRIPTION = "Intel(r) Data Plane Development Kit" |
2 | HOMEPAGE = "http://dpdk.org" | 2 | HOMEPAGE = "http://dpdk.org" |
3 | 3 | ||
4 | python () { | ||
5 | if not bb.utils.contains('KERNEL_FEATURES', 'features/intel-dpdk/intel-dpdk.scc', True, False, d): | ||
6 | bb.warn("dpdk requires kernel options in features/intel-dpdk/intel-dpdk.scc to be able to build and work properly. You can either enable them by adding features/intel-dpdk/intel-dpdk.scc to KERNEL_FEATURES or by standard kernel configuration process.") | ||
7 | } | ||
8 | |||
4 | STABLE = "" | 9 | STABLE = "" |
5 | BRANCH = "master" | 10 | BRANCH = "master" |
6 | S = "${WORKDIR}/git" | 11 | S = "${WORKDIR}/git" |