diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2017-09-25 12:38:21 -0500 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2017-09-25 15:53:57 -0700 |
commit | a513894de8cbe7d6671f58f0c3f374e08d7af1b8 (patch) | |
tree | e106754311226a7dc80e1a5e4b8454d642e3c4ab /meta-dpdk/recipes-extended | |
parent | a20d06d7e4b07c8ba12364a5262eeab8455235af (diff) | |
download | meta-intel-a513894de8cbe7d6671f58f0c3f374e08d7af1b8.tar.gz |
dpdk: Move BSP specific configurations from recipes to machine.conf
The COMPATIBLE_MACHINE entry for dpdk recipes is set to 'null'. This
will prevent arbitrary machines from trying to use the dpdk functionality.
A compatible MACHINE must define itself as such for the dpdk recipes. Also
the BSP aware target machine was similarly moved to the BSP. Embedding BSP
specific knowledge into the recipe will cause the recipe to slowly get out
of date.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta-dpdk/recipes-extended')
-rw-r--r-- | meta-dpdk/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb | 5 | ||||
-rw-r--r-- | meta-dpdk/recipes-extended/dpdk/dpdk.inc | 18 |
2 files changed, 11 insertions, 12 deletions
diff --git a/meta-dpdk/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb b/meta-dpdk/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb index c06cceb7..e40c63b8 100644 --- a/meta-dpdk/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb +++ b/meta-dpdk/recipes-extended/dpdk-dev-libibverbs/dpdk-dev-libibverbs_1.2.1-3.4-2.0.0.0.bb | |||
@@ -14,7 +14,10 @@ SRC_URI = "https://github.com/Mellanox/dpdk-dev-libibverbs/archive/libibverbs-${ | |||
14 | SRC_URI[dpdk-dev-libibverbs.md5sum] = "65234ee278eb437a7069326f37cd4d86" | 14 | SRC_URI[dpdk-dev-libibverbs.md5sum] = "65234ee278eb437a7069326f37cd4d86" |
15 | SRC_URI[dpdk-dev-libibverbs.sha256sum] = "a6471515556cb8d10ad471bb7efb8cf760b248a28aceb57d4534d50d572f56cd" | 15 | SRC_URI[dpdk-dev-libibverbs.sha256sum] = "a6471515556cb8d10ad471bb7efb8cf760b248a28aceb57d4534d50d572f56cd" |
16 | 16 | ||
17 | COMPATIBLE_MACHINE = "intel-corei7-64" | 17 | # A machine needs to enable this using: |
18 | # COMPATIBLE_MACHINE_pn-dpdk-dev-libibverbs = "<machine name>" | ||
19 | |||
20 | COMPATIBLE_MACHINE = "null" | ||
18 | COMPATIBLE_HOST_libc-musl_class-target = "null" | 21 | COMPATIBLE_HOST_libc-musl_class-target = "null" |
19 | 22 | ||
20 | S = "${WORKDIR}/${PN}-libibverbs-${PV}" | 23 | S = "${WORKDIR}/${PN}-libibverbs-${PV}" |
diff --git a/meta-dpdk/recipes-extended/dpdk/dpdk.inc b/meta-dpdk/recipes-extended/dpdk/dpdk.inc index ba382675..c1d01491 100644 --- a/meta-dpdk/recipes-extended/dpdk/dpdk.inc +++ b/meta-dpdk/recipes-extended/dpdk/dpdk.inc | |||
@@ -12,7 +12,10 @@ SRC_URI = "http://fast.dpdk.org/rel/${BP}.tar.gz;name=dpdk \ | |||
12 | file://dpdk-17.02-dpdk-fix-installation-warning-and-issue.patch \ | 12 | file://dpdk-17.02-dpdk-fix-installation-warning-and-issue.patch \ |
13 | " | 13 | " |
14 | 14 | ||
15 | COMPATIBLE_MACHINE = "intel-corei7-64" | 15 | # A machine needs to enable this using: |
16 | # COMPATIBLE_MACHINE_pn-dpdk-dev-libibverbs = "<machine name>" | ||
17 | |||
18 | COMPATIBLE_MACHINE = "null" | ||
16 | COMPATIBLE_HOST_libc-musl_class-target = "null" | 19 | COMPATIBLE_HOST_libc-musl_class-target = "null" |
17 | 20 | ||
18 | 21 | ||
@@ -55,16 +58,9 @@ export ICP_LAC_API_DIR = "${STAGING_DIR_TARGET}${includedir}/lac" | |||
55 | # process mapping. The supported target machine is listed under | 58 | # process mapping. The supported target machine is listed under |
56 | # dpdk/mk/machine | 59 | # dpdk/mk/machine |
57 | def get_dpdk_target_mach(bb, d): | 60 | def get_dpdk_target_mach(bb, d): |
58 | target_arch = d.getVar('MACHINE_ARCH', True) | 61 | target_arch = d.getVar('DPDK_TARGET_MACHINE', True) |
59 | multiarch_options = { | 62 | if target_arch: |
60 | "mohonpeak64": "atm", | 63 | target_arch |
61 | "mohonpeak32": "atm", | ||
62 | "crystalforest": "ivb", | ||
63 | "intel_corei7_64": "atm", | ||
64 | } | ||
65 | |||
66 | if target_arch in multiarch_options : | ||
67 | return multiarch_options[target_arch] | ||
68 | return "default" | 64 | return "default" |
69 | 65 | ||
70 | do_configure () { | 66 | do_configure () { |