Re: [PATCH] builddeb: fix cross-building to arm64 producing host-arch debs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2016-11-10 09:47, Riku Voipio wrote:
> On 10 November 2016 at 10:24, Riku Voipio <riku.voipio@xxxxxxxxxx> wrote:
>> On 4 November 2016 at 18:14, Adam Borowski <kilobyte@xxxxxxxxxx> wrote:
>>> Both Debian and kernel archs are "arm64" but UTS_MACHINE and gcc say
>>> "aarch64".
>>
>> I cross-compile arm64 kernels all the time and they come out as arm64.deb.
>> What exact command are you using to build your kernel to see host arch.deb?
> 
> OK, I see. UTS_MACHINE use to incorrect, now it has been fixed:
> 
> commit cfa88c79462d15098db29edebe623428c3620a4b
> Author: Michal Marek <mmarek@xxxxxxxx>
> Date:   Tue Aug 30 10:31:35 2016 +0200
> 
>     arm64: Set UTS_MACHINE in the Makefile
> 
> But that commit caused regression to builddeb since it wasn't updated
> at the same time.

Sorry about that.


> The patch below is correct fix,
> 
> Acked-by: Riku Voipio <riku.voipio@xxxxxxxxxx>
> 
>>> ---
>>>  scripts/package/builddeb | 2 +-
>>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/scripts/package/builddeb b/scripts/package/builddeb
>>> index 8ea9fd2..3c575cd0 100755
>>> --- a/scripts/package/builddeb
>>> +++ b/scripts/package/builddeb
>>> @@ -51,7 +51,7 @@ set_debarch() {
>>>                 debarch=hppa ;;
>>>         mips*)
>>>                 debarch=mips$(grep -q CPU_LITTLE_ENDIAN=y $KCONFIG_CONFIG && echo el || true) ;;
>>> -       arm64)
>>> +       aarch64|arm64)
>>>                 debarch=arm64 ;;

UTS_MACHINE is now always aarch64 on this architecture, so maybe stop
matching "arm64" to avoid confusion?

Thanks,
Michal

--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux&nblp;USB Development]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite Secrets]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux