On Thu, 07 Feb 2013 21:48:24 +0000, peter green wrote:

> >Can this test be expressed in some easy terms to be used in
> >debian/rules?
> DEB_HOST_GNU_TYPE ?=$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
> ARM_VERSION_NUMBER :=$(shell $(DEB_HOST_GNU_TYPE)-cpp -dM /dev/null | grep 
> -Po '(?<=__ARM_ARCH_)[0-9]+(?=[a-zA-Z]*_
> ARMV7PLUS :=$(shell expr $(ARM_VERSION_NUMBER) \>= 7)
> 
> all:
>       echo $(ARM_VERSION_NUMBER)
>       echo $(ARMV7PLUS)
> ifeq "$(ARMV7PLUS)" "1"
>       echo armv7 or above
> else
>       echo armv6 or below
> endif

Thank you!
Unfortunately the second line line (/^ARM_VERSION_NUMBER/) looks a
bit cut off. If you have an extended version please share it :)

Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: B.B. King and Eric Clapton

Attachment: signature.asc
Description: Digital signature

Reply via email to