libmd: Disable SHA modules for m32c

Close #2219.
This commit is contained in:
Sebastian Huber
2015-03-05 10:53:20 +01:00
parent 16b2de3545
commit 77510c72dc
4 changed files with 16 additions and 0 deletions

View File

@@ -4,6 +4,8 @@
include: testdata/require-tick-isr.tcfg
crypt01
fileio
flashdisk01
fsdosfsname01
jffs2_fserror
@@ -13,5 +15,6 @@ jffs2_fspermission
jffs2_fsrdwr
jffs2_fssymlink
jffs2_fstime
sha
sptls01
utf8proc01

View File

@@ -385,6 +385,16 @@ esac
AM_CONDITIONAL(LIBDL,[test x"$HAVE_LIBDL" = x"yes"])
AC_MSG_RESULT([$HAVE_LIBDL])
AC_MSG_CHECKING([whether CPU supports SHA])
case $RTEMS_CPU in
m32c)
HAVE_SHA=no ;;
*)
HAVE_SHA=yes ;;
esac
AM_CONDITIONAL(SHA,[test x"$HAVE_SHA" = x"yes"])
AC_MSG_RESULT([$HAVE_SHA])
RTEMS_AMPOLISH3
# Explicitly list all Makefiles here

View File

@@ -11,8 +11,10 @@ noinst_LIBRARIES = libmd.a
libmd_a_SOURCES =
libmd_a_SOURCES += md4.c
libmd_a_SOURCES += md5.c
if SHA
libmd_a_SOURCES += sha256c.c
libmd_a_SOURCES += sha512c.c
endif
libmd_a_CPPFLAGS = $(AM_CPPFLAGS)
endif

View File

@@ -34,4 +34,5 @@ PREINSTALL_FILES += $(PROJECT_INCLUDE)/sha256.h
$(PROJECT_INCLUDE)/sha512.h: sha512.h $(PROJECT_INCLUDE)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_INCLUDE)/sha512.h
PREINSTALL_FILES += $(PROJECT_INCLUDE)/sha512.h
endif