|
11 | 11 |
|
12 | 12 | -include Makefile.inc
|
13 | 13 |
|
| 14 | +KVERSION ?= $(shell uname -r) |
| 15 | + |
14 | 16 | prefix ?= /usr
|
15 | 17 | libdir ?= ${prefix}/lib
|
16 | 18 | datadir ?= ${prefix}/share
|
@@ -256,30 +258,30 @@ check: all syncheck rpm
|
256 | 258 | @$(MAKE) -C test check
|
257 | 259 |
|
258 | 260 | testimage: all
|
259 |
| - ./dracut.sh -N -l -a debug -f test-$(shell uname -r).img $(shell uname -r) |
260 |
| - @echo wrote test-$(shell uname -r).img |
| 261 | + ./dracut.sh -N -l -a debug -f test-$(KVERSION).img $(KVERSION) |
| 262 | + @echo wrote test-$(KVERSION).img |
261 | 263 |
|
262 | 264 | debugtestimage: all
|
263 |
| - ./dracut.sh --debug -l -a debug -f test-$(shell uname -r).img $(shell uname -r) |
264 |
| - @echo wrote test-$(shell uname -r).img |
| 265 | + ./dracut.sh --debug -l -a debug -f test-$(KVERSION).img $(KVERSION) |
| 266 | + @echo wrote test-$(KVERSION).img |
265 | 267 |
|
266 | 268 | testimages: all
|
267 |
| - ./dracut.sh -l -a debug --kernel-only -f test-kernel-$(shell uname -r).img $(shell uname -r) |
268 |
| - @echo wrote test-$(shell uname -r).img |
269 |
| - ./dracut.sh -l -a debug --no-kernel -f test-dracut.img $(shell uname -r) |
| 269 | + ./dracut.sh -l -a debug --kernel-only -f test-kernel-$(KVERSION).img $(KVERSION) |
| 270 | + @echo wrote test-$(KVERSION).img |
| 271 | + ./dracut.sh -l -a debug --no-kernel -f test-dracut.img $(KVERSION) |
270 | 272 | @echo wrote test-dracut.img
|
271 | 273 |
|
272 | 274 | debughostimage: all
|
273 |
| - ./dracut.sh --debug -H -l -f test-$(shell uname -r).img $(shell uname -r) |
274 |
| - @echo wrote test-$(shell uname -r).img |
| 275 | + ./dracut.sh --debug -H -l -f test-$(KVERSION).img $(KVERSION) |
| 276 | + @echo wrote test-$(KVERSION).img |
275 | 277 |
|
276 | 278 | hostimage: all
|
277 |
| - ./dracut.sh -H -l -f test-$(shell uname -r).img $(shell uname -r) |
278 |
| - @echo wrote test-$(shell uname -r).img |
| 279 | + ./dracut.sh -H -l -f test-$(KVERSION).img $(KVERSION) |
| 280 | + @echo wrote test-$(KVERSION).img |
279 | 281 |
|
280 | 282 | efi: all
|
281 |
| - ./dracut.sh --uefi -H -l -f linux-$(shell uname -r).efi $(shell uname -r) |
282 |
| - @echo wrote linux-$(shell uname -r).efi |
| 283 | + ./dracut.sh --uefi -H -l -f linux-$(KVERSION).efi $(KVERSION) |
| 284 | + @echo wrote linux-$(KVERSION).efi |
283 | 285 |
|
284 | 286 | AUTHORS:
|
285 | 287 | git shortlog --numbered --summary -e |while read a rest || [ -n "$$rest" ]; do echo $$rest;done > AUTHORS
|
|
0 commit comments