All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] [patch]  KERNELVERSION=2.6.12-something make
@ 2005-07-22  3:06 Jim Cromie
  2005-07-22 11:46 ` Jean Delvare
                   ` (6 more replies)
  0 siblings, 7 replies; 9+ messages in thread
From: Jim Cromie @ 2005-07-22  3:06 UTC (permalink / raw)
  To: lm-sensors


attached patches allow making with setting in environment.

it apparently is effective only right after make clean,
but dependencies are remembered in all the foo.d files


Separately, Ive been trying to hack around my lack of
include/linux/modversions.h,  which is not present in the 2.6.12, 13-rc
trees that Ive built

Ive tried turning off CONFIG_MODVERSIONS,
despite some ifdefs in some of the code that suggest it shoul help,
I get almost nowhere doing so.


is modversions.h a synthesized file (written based upon config) ?
is it a holdover from earlier kernel releases ?

-------------- next part --------------
--- lm_sensors2/Makefile.~1.96.~	2005-07-21 18:54:47.000000000 -0600
+++ lm_sensors2/Makefile	2005-07-21 18:55:45.000000000 -0600
@@ -28,7 +28,7 @@
 
 # The currently running kernel version. This is used right below to
 # determine where the kernel sources can be found.
-KERNELVERSION := $(shell uname -r)
+KERNELVERSION ?= $(shell uname -r)
 
 # The location of linux itself. This is used to find the kernel headers
 # and other things.
-------------- next part --------------
--- i2c/Makefile.~1.38.~	2005-03-19 04:10:34.000000000 -0700
+++ i2c/Makefile	2005-07-21 18:37:06.000000000 -0600
@@ -25,7 +25,7 @@
 
 # The currently running kernel version. This is used right below to
 # determine where the kernel sources can be found.
-KERNELVERSION := $(shell uname -r)
+KERNELVERSION ?= $(shell uname -r)
 
 # The location of linux itself. This is used to find the kernel headers
 # and other things.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* [lm-sensors] [patch]  KERNELVERSION=2.6.12-something make
@ 2005-07-22 20:50 Jean Delvare
  0 siblings, 0 replies; 9+ messages in thread
From: Jean Delvare @ 2005-07-22 20:50 UTC (permalink / raw)
  To: lm-sensors

Hi Jim,

> FWIW:  I just tried to stuff this into Makefile, to automate the
> clue-stick you poked me with:
> 
> ifneq (,$(findstring 2.6 , $(KERNELVERSION)))
>     ifneq (,$(findstring 'user', $(MAKECMDGOALS)))
>         $(error 'only user* targets needed/supported for 2.6 builds')
>     endif
> endif
> 
> obviously, it didnt work, or Id have sent a patch.
> Can you fit it in the proper place, or advize where it belongs ?

The following, derived from yours, works for me:

ifeq (,$(findstring /2.4., $(MODPREF)))
    ifeq (, $(MAKECMDGOALS))
        $(error For 2.6 kernels and later, use "make user")
    endif
    ifeq (install, $(MAKECMDGOALS))
        $(error For 2.6 kernels and later, use "make user_install")
    endif
endif

I've added it right after the line which computes $(MODPREF). Please
give it a try and tell me what you think. I might commit it to CVS if
nobody objects. I might also add something similar to the i2c package.

BTW, Jim, I'd like to add that I very much enjoy your attitude of
sending patches to help us fix things rather that just complaining that
things don't work. Even if the patches end up not being needed or
correct, don't stop! :) This is always a good base to start with.

-- 
Jean Delvare

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-07-24 18:02 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-22  3:06 [lm-sensors] [patch] KERNELVERSION=2.6.12-something make Jim Cromie
2005-07-22 11:46 ` Jean Delvare
2005-07-22 16:45 ` Jean Delvare
2005-07-22 17:02 ` Jim Cromie
2005-07-23  1:31 ` Jim Cromie
2005-07-23  3:14 ` Jim Cromie
2005-07-24 17:51 ` Jean Delvare
2005-07-24 18:02 ` Jean Delvare
  -- strict thread matches above, loose matches on Subject: below --
2005-07-22 20:50 Jean Delvare

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.