diff mbox

INSTALL.ODP: Reformat the requirements for cross-compile and mention DEB_HOST_ARCH

Message ID 1417018030-5261-1-git-send-email-zoltan.kiss@linaro.org
State New
Headers show

Commit Message

Zoltan Kiss Nov. 26, 2014, 4:07 p.m. UTC
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>
---
 INSTALL.ODP | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Comments

Maxim Uvarov Nov. 27, 2014, 11:09 a.m. UTC | #1
Debian things has to go to separate debian chapter. For OE all this 
things are not needed.

Maxim.

On 11/26/2014 07:07 PM, Zoltan Kiss wrote:
> 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>
> ---
>   INSTALL.ODP | 14 ++++++++++----
>   1 file changed, 10 insertions(+), 4 deletions(-)
>
> diff --git a/INSTALL.ODP b/INSTALL.ODP
> index 86cec1f..acf09d7 100644
> --- a/INSTALL.ODP
> +++ b/INSTALL.ODP
> @@ -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
Zoltan Kiss Nov. 27, 2014, 3:33 p.m. UTC | #2
This is already in a separate chapter, see the previous patch for 
INSTALL.ODP

Zoli

On 27/11/14 11:09, Maxim Uvarov wrote:
> Debian things has to go to separate debian chapter. For OE all this
> things are not needed.
>
> Maxim.
>
> On 11/26/2014 07:07 PM, Zoltan Kiss wrote:
>> 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>
>> ---
>>   INSTALL.ODP | 14 ++++++++++----
>>   1 file changed, 10 insertions(+), 4 deletions(-)
>>
>> diff --git a/INSTALL.ODP b/INSTALL.ODP
>> index 86cec1f..acf09d7 100644
>> --- a/INSTALL.ODP
>> +++ b/INSTALL.ODP
>> @@ -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
>
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> http://lists.linaro.org/mailman/listinfo/lng-odp
diff mbox

Patch

diff --git a/INSTALL.ODP b/INSTALL.ODP
index 86cec1f..acf09d7 100644
--- a/INSTALL.ODP
+++ b/INSTALL.ODP
@@ -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