summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Thomas <james.thomas@codethink.co.uk>2014-10-24 08:19:48 (GMT)
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-29 14:23:02 (GMT)
commit2334bf712c92bc98af695ca1c3675488554d482d (patch)
treef30222daefaa49e56c551f42cc02e151c01dd6d1
parentc8bc84b559b7db7e715a01e837af97909317f0a1 (diff)
downloaddefinitions-2334bf712c92bc98af695ca1c3675488554d482d.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)