diff options
author | Zoltan Kiss <zoltan.kiss@linaro.org> | 2014-11-26 15:42:05 +0000 |
---|---|---|
committer | Zoltan Kiss <zoltan.kiss@linaro.org> | 2014-12-18 15:52:41 +0000 |
commit | 7d77f1b4534fdc3a5ee9f4e4f1e91a4bb1200b24 (patch) | |
tree | 94a509ae620d38c78f9b3fa9de164683bb9fc9d3 | |
parent | 4538c4b40af7bf70cf0fbd1c8b26fafdfb5939cb (diff) |
INSTALL.ODP: Reformat the requirements for cross-compile and mention DEB_HOST_ARCH
Now it's easier to read the text and with DEB_HOST_ARCH properly set the
package files are correctly named. Unfortunately dpkg-gencontrol insist to use
the host arch in the control files, unless you overwrite it with the variable.
Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org>
-rw-r--r-- | INSTALL.ODP.md | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/INSTALL.ODP.md b/INSTALL.ODP.md index 86cec1fb6..acf09d720 100644 --- a/INSTALL.ODP.md +++ b/INSTALL.ODP.md @@ -61,13 +61,19 @@ You can pass the configure options via DATAPATH_CONFIGURE_OPTS: DATAPATH_CONFIGURE_OPTS="--with-odp=<ODP_DIR> --with-odp-platform=<platform>" \ fakeroot debian/rules binary -If you cross-compile, you need to specify "host" for configure, -DEB_HOST_GNU_TYPE for dh_strip, and probably a cross-compiled OpenSSL. The -latter needs to be told to configure, and dh_shlibdeps needs to find the -libraries. E.g.: +If you cross-compile, you need to: +- specify "host" for configure +- DEB_HOST_GNU_TYPE has to be set for dh_strip +- DEB_HOST_ARCH has to be set for dh_gencontrol to correctly create the + debian/contol files +- dh_shlibdeps needs to find the libraries in LD_LIBRARY_PATH +- probably a cross-compiled OpenSSL. That needs to be told to configure + +An example: LD_LIBRARY_PATH='$LD_LIBRARY_PATH:/usr/arm-linux-gnueabihf/lib:<OpenSSL-DIR>' \ DEB_HOST_GNU_TYPE=arm-linux-gnueabihf \ +DEB_HOST_ARCH=armhf \ DATAPATH_CONFIGURE_OPTS="--with-odp=<ODP_DIR> --with-odp-platform=<platform> \ --host=arm-linux-gnueabihf --with-openssl=<OpenSSL-DIR>" fakeroot debian/rules \ binary |