blob: 9b8bf2bc1176282d1f8399fc69a98d2530de9093 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
.PHONY: kernelrelease modules modules_install
kernelrelease:
@printf '%s\n' test-kernel
modules:
@module=$$(basename "$$(dirname "$(M)")"); \
printf 'test module %s\n' "$$module" > "$(M)/$$module.ko"
modules_install:
@test "$(M)" != ""
@test -d "$(M)"
@if test "$${FAIL_MODULES_INSTALL:-0}" = 1; then exit 42; fi
@module=$$(basename "$$(dirname "$(M)")"); \
test -f "$(M)/$$module.ko"; \
destination="$(INSTALL_MOD_PATH)/lib/modules/test-kernel/extra"; \
mkdir -p "$$destination"; \
cp "$(M)/$$module.ko" "$$destination/$$module.ko"
|