Update specific asm-* arch to generic i386.

Depending on your x86 architecture $target_cpu can evaluate to
any of the following (i386|i486|i586|i686).  Since our local asm
uses only i386 instructions sed is used to map all of these to
i386 and sets $target_arch.  Other arch's are not impacted.
This commit is contained in:
Brian Behlendorf 2009-03-13 09:41:55 -07:00
parent fdcbe740a4
commit caba3cb67e
4 changed files with 4 additions and 3 deletions

View File

@ -56,7 +56,7 @@ AC_CONFIG_FILES([
doc/Makefile
lib/Makefile
lib/libspl/Makefile
lib/libspl/asm-i686/Makefile
lib/libspl/asm-i386/Makefile
lib/libspl/asm-x86_64/Makefile
lib/libspl/include/Makefile
lib/libavl/Makefile

View File

@ -1,6 +1,7 @@
include $(top_srcdir)/config/Rules.am
SUBDIRS = asm-i686 asm-x86_64 include
target_arch = $(shell echo ${target_cpu} | sed -e s/i.86/i386/)
SUBDIRS = asm-i386 asm-x86_64 include
DEFAULT_INCLUDES += \
-I${top_srcdir}/lib/libspl/include
@ -20,6 +21,6 @@ libspl_la_SOURCES = \
${top_srcdir}/lib/libspl/strnlen.c \
${top_srcdir}/lib/libspl/zone.c \
${top_srcdir}/lib/libspl/xdr.c \
${top_srcdir}/lib/libspl/asm-${target_cpu}/atomic.S \
${top_srcdir}/lib/libspl/asm-${target_arch}/atomic.S \
${top_srcdir}/lib/libspl/include/sys/list.h \
${top_srcdir}/lib/libspl/include/sys/list_impl.h