All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable the build of isadump only on x86 architectures
@ 2005-05-19  6:24 Aurelien Jarno
  2005-05-19  6:24 ` Jean Delvare
  0 siblings, 1 reply; 2+ messages in thread
From: Aurelien Jarno @ 2005-05-19  6:24 UTC (permalink / raw)
  To: lm-sensors

Hi all,

It seems that isadump is x86 specific, since it makes calls to inb() and
outb(). The others utilities and the library build well on non-x86
architectures. That's why I propose to enable the build of isadump only
on x86 architectures.

The attached patch against current CVS implements that.

Aurelien


-- 
  .''`.  Aurelien Jarno	              GPG: 1024D/F1BCDB73
 : :' :  Debian GNU/Linux developer | Electrical Engineering Student 
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net
-------------- next part --------------
Index: prog/dump/Module.mk
=================================RCS file: /home/cvs/lm_sensors2/prog/dump/Module.mk,v
retrieving revision 1.14
diff -u -1 -b -p -r1.14 Module.mk
--- lm_sensors2.orig/prog/dump/Module.mk	21 Mar 2004 10:28:48 -0000	1.14
+++ lm_sensors2./prog/dump/Module.mk	21 Mar 2004 10:46:17 -0000
@@ -24,4 +24,3 @@ PROGDUMPDIR := $(MODULE_DIR)
 PROGDUMPMAN8DIR := $(MANDIR)/man8
-PROGDUMPMAN8FILES := $(MODULE_DIR)/isadump.8 $(MODULE_DIR)/i2cdump.8 \
-		     $(MODULE_DIR)/i2cset.8
+PROGDUMPMAN8FILES := $(MODULE_DIR)/i2cdump.8 $(MODULE_DIR)/i2cset.8
 
@@ -29,8 +28,14 @@ PROGDUMPMAN8FILES := $(MODULE_DIR)/isadu
 # defined value verbatim into the command-list of rules...
-PROGDUMPTARGETS := $(MODULE_DIR)/isadump $(MODULE_DIR)/i2cdump \
-		   $(MODULE_DIR)/i2cset
-PROGDUMPSOURCES := $(MODULE_DIR)/isadump.c  $(MODULE_DIR)/i2cdump.c \
-		   $(MODULE_DIR)/i2cset.c $(MODULE_DIR)/i2cbusses.c
-PROGDUMPBININSTALL := $(MODULE_DIR)/isadump $(MODULE_DIR)/i2cdump \
-		   $(MODULE_DIR)/i2cset
+PROGDUMPTARGETS := $(MODULE_DIR)/i2cdump $(MODULE_DIR)/i2cset
+PROGDUMPSOURCES := $(MODULE_DIR)/i2cdump.c $(MODULE_DIR)/i2cset.c \
+		   $(MODULE_DIR)/i2cbusses.c
+PROGDUMPBININSTALL := $(MODULE_DIR)/i2cdump $(MODULE_DIR)/i2cset
+
+# Only build isadump on x86 machines.
+ifneq (,$(findstring $(MACHINE), i386 i486 i586 i686 x86_64))
+PROGDUMPMAN8FILES += $(MODULE_DIR)/isadump.8
+PROGDUMPTARGETS += $(MODULE_DIR)/isadump
+PROGDUMPSOURCES += $(MODULE_DIR)/isadump.c
+PROGDUMPBININSTALL += $(MODULE_DIR)/isadump
+endif
 

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

end of thread, other threads:[~2005-05-19  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19  6:24 [PATCH] Enable the build of isadump only on x86 architectures Aurelien Jarno
2005-05-19  6:24 ` 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.