shared memory problem on armel

peter green plugwash at p10link.net
Fri Feb 8 00:10:28 UTC 2013


gregor herrmann wrote:
> 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 :)
>   
Sorry I cut and pasted from a terminal window

ARM_VERSION_NUMBER :=$(shell $(DEB_HOST_GNU_TYPE)-cpp -dM /dev/null | 
grep -Po '(?<=__ARM_ARCH_)[0-9]+(?=[a-zA-Z]*__)')

> Cheers,
> gregor
>
>   




More information about the pkg-perl-maintainers mailing list