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 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.

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 ;;
>>         arm*)
>>                 if grep -q CONFIG_AEABI=y $KCONFIG_CONFIG; then
>> --
>> 2.10.2
>>
>> --
>> 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
--
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