aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez2010-05-17 17:41:24 -0500
committerLuis R. Rodriguez2010-05-17 17:56:42 -0500
commitd0831045c9e685386c063015bc448988f7e4db1d (patch)
tree8478aa7003625679e4d49e91f953da3c5bbe09fb /Makefile
parentfc2c7099b85c11dfbecf8b50f9b7f04c2fa68e87 (diff)
downloadcompat-wireless-d0831045c9e685386c063015bc448988f7e4db1d.tar.gz
compat-wireless-d0831045c9e685386c063015bc448988f7e4db1d.tar.xz
compat-wireless-d0831045c9e685386c063015bc448988f7e4db1d.zip
Use the defines to tag the compat module
The compat module now has read-only module parameters which we can help tune to help identify the exact upstream base tree used for this backport, as well as the specific tree used to make it. For example when building a stable compat-wireless release based on the linux-2.6-allstable.git git tree, using the tree as of the 'v2.6.34' tag we'd get: $ sudo grep '' /sys/module/compat/parameters/compat_ /sys/module/compat/parameters/compat_base_tree:linux-2.6-allstable.git /sys/module/compat/parameters/compat_base_tree_version:v2.6.34 /sys/module/compat/parameters/compat_version:v2.6.34-rc4-4-g9ace871 The last file indicates compat-wireless.git was used, but specifically that the v2.6.34-rc4 branch was used and that 4 patches have been applied on top of that tree. The top sha1sum commit on that tree is 9ace871. These files will work even if you have built compat-wireless completely as built-in to your kernel. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 29dc549..0db6e2f 100644
--- a/Makefile
+++ b/Makefile
@@ -39,6 +39,11 @@ obj-$(CONFIG_COMPAT_BLUETOOTH_MODULES) += drivers/bluetooth/
39else 39else
40 40
41export PWD := $(shell pwd) 41export PWD := $(shell pwd)
42CFLAGS += \
43 -DCOMPAT_BASE_TREE="\"$(shell cat compat_base_tree)\"" \
44 -DCOMPAT_BASE_TREE_VERSION="\"$(shell cat compat_base_tree_version)\"" \
45 -DCOMPAT_PROJECT="\"Compat-wireless\"" \
46 -DCOMPAT_VERSION="\"$(shell cat compat_version)\""
42 47
43# These exported as they are used by the scripts 48# These exported as they are used by the scripts
44# to check config and compat autoconf 49# to check config and compat autoconf