From b49d08411c75a8fec8ad591105b324a6766aa8d5 Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Fri, 20 Nov 2015 11:32:39 -0600 Subject: netmap-modules: Modules may not have the same arch as userspace Kernel modules may not have the same architecture as user space. So we tell INSANE_SKIP to skip checking the arch for the modules. This is consistent with other kernel modules and the kernel recipe. Signed-off-by: Jackie Huang Signed-off-by: Mark Hatle Signed-off-by: Joe MacDonald --- meta-networking/recipes-kernel/netmap/netmap-modules_git.bb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-networking') diff --git a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb index 23f3094afa..6e6f02ce53 100644 --- a/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb +++ b/meta-networking/recipes-kernel/netmap/netmap-modules_git.bb @@ -39,6 +39,11 @@ python __anonymous () { extra_oeconf_drivers = bb.utils.contains_any('NETMAP_DRIVERS', all_drivers_list, config_drivers, '--no-drivers', d) d.appendVar("EXTRA_OECONF", extra_oeconf_drivers) + + # skip the arch test for kernel modules + if drivers_list: + for driver in drivers_list: + d.setVar("INSANE_SKIP_kernel-module-%s-netmap" % bb.utils.prune_suffix(driver, ['.c'], d), "arch") } LDFLAGS := "${@'${LDFLAGS}'.replace('-Wl,-O1', '')}" -- cgit 1.2.3-korg