mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-23 20:11:42 +00:00
make it quit earlier if missing $(LINUX)/.config; also add note for
users of stock RedHat kernels git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2051 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
fca824b795
commit
e93f810917
1 file changed
+10
-1
@@ -304,9 +304,18 @@ help:
|
||||
@echo 'Note: make dep is automatic'
|
||||
|
||||
$(LINUX)/.config:
|
||||
@echo
|
||||
@echo "Error - missing file $(LINUX)/.config !! "
|
||||
@echo " Verify kernel source is in $(LINUX) and then"
|
||||
@echo " cd to $(LINUX) and run 'make config' !!"
|
||||
@echo
|
||||
@echo "Exception: if you're using a stock RedHat kernel..."
|
||||
@echo " (1) Install the appropriate kernel-source RPM."
|
||||
@echo " (2) Copy the appropriate config..."
|
||||
@echo " from $(LINUX)/configs/<...>"
|
||||
@echo " to $(LINUX)/.config"
|
||||
@echo " (3) Do *NOT* 'make dep' or 'make config'."
|
||||
@echo
|
||||
@exit 1
|
||||
|
||||
# Here, we define all implicit rules we want to use.
|
||||
@@ -321,7 +330,7 @@ $(LINUX)/.config:
|
||||
%.o: %.c $(LINUX)/.config
|
||||
$(CC) $(MODCPPFLAGS) $(MODCFLAGS) -c $< -o $@
|
||||
|
||||
%.d: %.c
|
||||
%.d: %.c $(LINUX)/.config
|
||||
$(CC) -M -MG $(MODCPPFLAGS) $(MODCFLAGS) $< | \
|
||||
$(SED) -e 's@^\(.*\)\.o:@$*.d $*.o: Makefile '`dirname $*.d`/Module.mk' @' > $@
|
||||
|
||||
|
||||
Reference in new issue
Block a user