# HG changeset patch # User Florian Pose # Date 1151333597 0 # Node ID 7eed6020d5cf5e9933ef111dec0e4a61b6ee9d05 # Parent a480a0703c58592d4675be07f504197c82d25398 Consistent example makefiles. diff -r a480a0703c58 -r 7eed6020d5cf examples/mini/Makefile --- a/examples/mini/Makefile Mon Jun 26 14:36:11 2006 +0000 +++ b/examples/mini/Makefile Mon Jun 26 14:53:17 2006 +0000 @@ -56,7 +56,7 @@ ifneq ($(wildcard kernel.conf),) include kernel.conf else -KERNEL_DIR := /lib/modules/`uname -r`/build +KERNEL_DIR := /lib/modules/$(shell uname -r)/build endif CURRENT_DIR := $(shell pwd) diff -r a480a0703c58 -r 7eed6020d5cf examples/mini/kernel.conf.tmpl --- a/examples/mini/kernel.conf.tmpl Mon Jun 26 14:36:11 2006 +0000 +++ b/examples/mini/kernel.conf.tmpl Mon Jun 26 14:53:17 2006 +0000 @@ -9,4 +9,4 @@ # #------------------------------------------------------------------------------ -KERNELDIR = /lib/modules/`uname -r`/build +KERNELDIR := /lib/modules/$(shell uname -r)/build diff -r a480a0703c58 -r 7eed6020d5cf examples/msr/kernel.conf.tmpl --- a/examples/msr/kernel.conf.tmpl Mon Jun 26 14:36:11 2006 +0000 +++ b/examples/msr/kernel.conf.tmpl Mon Jun 26 14:53:17 2006 +0000 @@ -10,6 +10,6 @@ #------------------------------------------------------------------------------ # Kernel sources for module compilation -KERNEL := `uname -r` +KERNEL := $(shell uname -r) #------------------------------------------------------------------------------ diff -r a480a0703c58 -r 7eed6020d5cf examples/rtai/Makefile --- a/examples/rtai/Makefile Mon Jun 26 14:36:11 2006 +0000 +++ b/examples/rtai/Makefile Mon Jun 26 14:53:17 2006 +0000 @@ -58,7 +58,7 @@ ifneq ($(wildcard kernel.conf),) include kernel.conf else -KERNEL_DIR := /lib/modules/`uname -r`/build +KERNEL_DIR := /lib/modules/$(shell uname -r)/build endif CURRENT_DIR := $(shell pwd) diff -r a480a0703c58 -r 7eed6020d5cf examples/rtai/kernel.conf.tmpl --- a/examples/rtai/kernel.conf.tmpl Mon Jun 26 14:36:11 2006 +0000 +++ b/examples/rtai/kernel.conf.tmpl Mon Jun 26 14:53:17 2006 +0000 @@ -9,4 +9,4 @@ # #------------------------------------------------------------------------------ -KERNELDIR = /lib/modules/`uname -r`/build +KERNELDIR := /lib/modules/$(shell uname -r)/build