summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Thomas <james.thomas@codethink.co.uk>2014-10-22 11:06:57 (GMT)
committerJames Thomas <james.thomas@codethink.co.uk>2014-10-26 11:39:48 (GMT)
commit318fbb1a2dc7e4943fcdf573f0a01e65f2141883 (patch)
tree2931819dfe7266162aa408f4aac6fd4c558fc309
parent98490324cb0310787536a57dc36a4e8bb97ce338 (diff)
downloaddefinitions-318fbb1a2dc7e4943fcdf573f0a01e65f2141883.tar.gz
Remove any existing nouveau drivers before running depmod
This means we use the out-of-tree module located in extra/
-rw-r--r--strata/bsp-jetson-genivi/nouveau-drm.morph6
1 files changed, 4 insertions, 2 deletions
diff --git a/strata/bsp-jetson-genivi/nouveau-drm.morph b/strata/bsp-jetson-genivi/nouveau-drm.morph
index e89df38..e297a06 100644
--- a/strata/bsp-jetson-genivi/nouveau-drm.morph
+++ b/strata/bsp-jetson-genivi/nouveau-drm.morph
@@ -1,10 +1,12 @@
name: nouveau-drm
kind: chunk
build-commands:
- - cd drm && make M=$(pwd) -C /usr/src/linux/ modules
+ - cd drm && make ARCH=arm M=$(pwd) -C /usr/src/linux/ modules
install-commands:
- - cd drm && make M="$(pwd)" -C /usr/src/linux/ INSTALL_MOD_PATH="$DESTDIR" modules_install
+ - cd drm && make ARCH=arm M="$(pwd)" -C /usr/src/linux/ INSTALL_MOD_PATH="$DESTDIR" modules_install
system-integration:
nouveau-drm-misc:
00-earlyconf:
+ - (cd /lib/modules && for version in *; do rm "$version/kernel/drivers/gpu/drm/nouveau/nouveau.ko"; done)
+ - (cd /lib/modules && for version in *; do rm "$version/kernel/drivers/gpu/drm/nouveau/nouveau_platform.ko"; done)
- (cd /lib/modules && for version in *; do depmod -a "$version"; done)