| 1 | OpenSC Project Cross Compile Build |
|---|
| 2 | |
|---|
| 3 | About |
|---|
| 4 | |
|---|
| 5 | This environment provides an easy way to build |
|---|
| 6 | OpenSC Project components using a cross compiler. |
|---|
| 7 | |
|---|
| 8 | The OpenSC Project does not provide CSP for Windows, |
|---|
| 9 | any CSP that can use PKCS#11 interface can be used |
|---|
| 10 | with the components. |
|---|
| 11 | |
|---|
| 12 | Versions |
|---|
| 13 | |
|---|
| 14 | The tarballs are taken from "SOURCEROOT" directory, the |
|---|
| 15 | version is not forced. If tarball is missing it is |
|---|
| 16 | downloaded from its site using a specific version. |
|---|
| 17 | |
|---|
| 18 | Cross compile |
|---|
| 19 | |
|---|
| 20 | $ CHOST=i686-pc-mingw32 CBUILD=i686-pc-linux-gnu ./build |
|---|
| 21 | |
|---|
| 22 | MSYS |
|---|
| 23 | Download and install wget msys port. |
|---|
| 24 | |
|---|
| 25 | $ WGET=/c/msys/1.0/bin/wget ./build |
|---|
| 26 | |
|---|
| 27 | The WGET is a workaround for msys wget port issue with argv[0]. |
|---|
| 28 | |
|---|
| 29 | Environment |
|---|
| 30 | |
|---|
| 31 | WGET |
|---|
| 32 | wget to use, default wget. |
|---|
| 33 | WGET_OPTS |
|---|
| 34 | options for wget, default empty. |
|---|
| 35 | |
|---|
| 36 | MAKEOPTS |
|---|
| 37 | options for make, default "-j2". |
|---|
| 38 | CHOST |
|---|
| 39 | host to build to, default empty (native). |
|---|
| 40 | CTARGET |
|---|
| 41 | target to build to, default CHOST. |
|---|
| 42 | CBUILD |
|---|
| 43 | target of local host, default CHOST. |
|---|
| 44 | |
|---|
| 45 | IMAGEROOT |
|---|
| 46 | output goes here, default "image". |
|---|
| 47 | BUILDROOT |
|---|
| 48 | build goes here, default "tmp". |
|---|
| 49 | DISTDIR |
|---|
| 50 | tarballs expeced to be here, default "distfiles". |
|---|
| 51 | |
|---|
| 52 | ZLIB_VERSION |
|---|
| 53 | LIBTOOL_VERSION |
|---|
| 54 | OPENSSL_VERSION |
|---|
| 55 | OPENSC_VERSION |
|---|
| 56 | LIP11_VERSION |
|---|
| 57 | ENGINE_PKCS11_VERSION |
|---|
| 58 | versions. |
|---|
| 59 | |
|---|
| 60 | OPENSC_COMPONENTS |
|---|
| 61 | pcsc, openct |
|---|