Linux kernel module: missing install/uninstall/clean/distclean targets
Bug #1213412 reported by
Didier Barvaux
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
rohc | Status tracked in Rohc-main | |||||
Rohc-1.5.x |
Invalid
|
Undecided
|
Didier Barvaux | |||
Rohc-1.6.x |
Won't Fix
|
Low
|
Didier Barvaux | |||
Rohc-1.7.x |
Won't Fix
|
Undecided
|
Didier Barvaux | |||
Rohc-main |
Fix Released
|
Low
|
Didier Barvaux |
Bug Description
Mikhail Gruzdev reported on the mailing list:
> Kernel modules install/uninstall is broken, the off-tree build fails
> to build and there is no clean/distclean targets for modules at all
> :) . My initial patch addressed this features just fine.
To post a comment you must log in.
Enhance the clean/distclean targets to remove some additional *.o and *.*.o.cmd files.
The install/uninstall targets seem to work fine:
# make -C linux install rohc.git/ linux' `uname -r`/extra `uname -r`/extra/rohc.ko `uname -r`/extra/ rohc_test. ko rohc.git/ linux'
make: Entering directory 'xxxxxxx/
/usr/bin/install -c -d //lib/modules/
/usr/bin/install -c -m 644 ./kmod/rohc.ko //lib/modules/
/usr/bin/install -c -m 644 ./kmod/rohc_test.ko //lib/modules/
/sbin/depmod -a
make: Leaving directory 'xxxxxxx/
# modinfo /lib/modules/ yyyyyyy/ extra/rohc. ko yyyyyyy/ extra/rohc. ko rohc-lib. org/) 03C0EA44
filename: /lib/modules/
description: ROHC library, version 2.0.0 (http://
author: Didier Barvaux, Mikhail Gruzdev, Thales Communications, Viveris Technologies
license: GPL
version: 2.0.0
srcversion: 644B5FCBCB271FB
depends:
vermagic: yyyyyyy SMP preempt mod_unload modversions
# modinfo /lib/modules/ yyyyyyy/ extra/rohc_ test.ko yyyyyyy/ extra/rohc_ test.ko rohc-lib. org/) 864CC647
filename: /lib/modules/
description: Module for testing ROHC library 2.0.0 (http://
author: Didier Barvaux, Thales Communications, Viveris Technologies
license: GPL
version: 0.0.1
srcversion: B5CA5E6645BF6EE
depends: rohc
vermagic: yyyyyyy SMP preempt mod_unload modversions
# make -C linux uninstall rohc.git/ linux' `uname -r`/extra/rohc.ko `uname -r`/extra/ rohc_test. ko rohc.git/ linux'
make: Entering directory 'xxxxxxx/
rm -f //lib/modules/
rm -f //lib/modules/
/sbin/depmod -a
make: Leaving directory 'xxxxxxx/
# ls -l /lib/modules/ yyyyyyy/ extra/
total 0