When splitting the flavours of a module into the extras and base
package, we already run depmod. Unfortunately this only produces
warnings when modules in the base package have unresolved depen-
dencies.
This change will abort the build in that case, so we can fix things.
BugLink: http://bugs.launchpad.net/bugs/1166197
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
tee $(target_flavour).inclusion-list.log; \
/sbin/depmod -b $(pkgdir) -ea -F $(pkgdir)/boot/System.map-$(abi_release)-$* \
$(abi_release)-$* 2>&1 |tee $(target_flavour).depmod.log; \
+ if [ `grep -c 'unknown symbol' $(target_flavour).depmod.log` -gt 0 ]; then \
+ echo "EE: Unresolved module dependencies in base package!"; \
+ exit 1; \
+ fi \
fi
endif