History | View | Annotate | Download (1.8 kB)
libcacard: Don't link with all libraries QEMU links to
As described in https://bugzilla.redhat.com/show_bug.cgi?id=987441 ,libcacard currently links to all the libraries QEMU is linking to,including glusterfs libraries, libiscsi, ... libcacard does not need all of...
libcacard: link against qemu-error.o for error_report()
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
build: fold trace-obj-y into libqemuutil.a
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
libcacard: list oslib-obj-y file explicitly
We will grow the list of files in the next patches, but libcacardshould remain slim.
build: move libqemuutil.a components to util/
libcacard: rewrite Makefile in non-recursive style
libcacard: link vscclient to dynamic library
There is no reason for vscclient to duplicate the code. rules.maktakes care of invoking libtool to do the link.
libcacard: use per-target variable definitions
This lets the libcacard Makefile use more rules.mak magic.
libcacard: add list of exported symbols
Do not export internal QEMU symbols.
libcacard: fix missing symbol in libcacard.so
Before patch:$ make libcacard.la$ nm ./libcacard/.libs/libcacard.so.0.0.0 | grep " U " | \ egrep -v "(g_)|(GLIBC)|(SECMOD)|(PK11)|(CERT)|(NSS)|(PORT)|(PR)" U error_set
Signed-off-by: Alon Levy <alevy@redhat.com>...
libcacard: require libtool to build it
Do not fail at build time, instead just disable the library if libtoolis not present.
libcacard: prepare to use -y trick in the Makefile
Rename variables to follow the conventions of the rest of the buildsystems.
build: support linking with libtool objects/libraries
This patch moves the complication of using libtool to the genericrules.mak file.
build: make libtool verbose when making with V=1
libcacard: link in stubs
libcacard: make unnesting rules available to Makefile.objs
libcacard/vcard_emul_nss: use pstrcpy in place of strncpy
Replace strncpy+NUL-terminate use with use of pstrcpy.This requires linking with cutils.o (or else vssclient doesn't link),so add that in the Makefile.
Acked-by: Alon Levy <alevy@redhat.com>Signed-off-by: Jim Meyering <meyering@redhat.com>...
libcacard: build fixes
Link trace objects to fix these errors: LINK vscclientoslib-posix.o: In function `trace_qemu_vfree':/src/qemu/obj-amd64/./trace.h:39: undefined reference to `trace1'oslib-posix.o: In function `trace_qemu_memalign':/src/qemu/obj-amd64/./trace.h:31: undefined reference to `trace3'...
build: libcacard Makefile cleanups
Build vscclient from toplevel Makefile, limit usage of vpath.
make: Remove duplicate use of GLIB_CFLAGS
Makefile, Makefile.hw, Makefile.target and libcacard/Makefileadded GLIB_CFLAGS to QEMU_CFLAGS.
Makefile.objs does this, too, and is included by all otherMakefiles, so GLIB_CFLAGS were added twice (reported by malc)....
Silence make if nothing is to do for libcacard
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
libcacard: use INSTALL_DATA for data
Signed-off-by: Brad Smith <brad@comstyle.com>Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fix build on OpenBSD with BSD userland emu and smartcard NSS enabled
The first issue is the hard coded POSIX Real Time extensions library in thelibcacard/Makefile. From looking at the code it doesn't seem this is necessaryanyway. Robert Relyea seems to think it most likely isn't necessary....
Improvements to libtool support.
Improvements to the libtool support in QEMU. Replace hard codedlibtool in the infrastructure with $(LIBTOOL) and allowoverriding the libtool binary used via the configurescript.
Reviewed-by: Andreas F=E4rber <andreas.faerber@web.de>...
build: list libraries after objects, for proper linkage
Without this change, when using -Wl,--as-needed with GNU linker, thelibraries would be discarded.
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Remove remenants of qemu_malloc
This covers the various check commands
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Make glib mandatory and fixup utils appropriately
Signed-off-by: Alon Levy <alevy@redhat.com>
libcacard: add pc file, install it + includes
Additionally: + add --includedir configure parameters + make install-libcacard install vscclient as well
libcacard: add libcacard.la target
No flag to configure is required. Instead, added a libcacard.la target thatis not built by default, only when requested explicitly via:
mkdir buildcd build../configuremake libcacard.lamake install-libcacard
Uses libtool to do actual linking of object files and shared library, and...
libcacard: add correct subdirectory dependencies
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Cc: qemu-trivial@nongnu.orgSigned-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
libcacard: add vscclient
client to talk to ccid-card-passthru and use smartcard on client toperform actual operations.
v23->v24 changes: (Jes Sorensen review 2) * use qemu_socket instead of socket * use fprintf(stderr,..) for errors * remove unneccessary includes since using qemu_common.h
libcacard: initial commit
libcacard emulates a Common Access Card (CAC) which is a standardfor smartcards. It is used by the emulated ccid card introduced ina following patch. Docs are available in docs/libcacard.txt