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

Re: building a debian kernel package(s) for a foreign architecture



On Thu, Jul 6, 2017 at 2:53 AM, Karsten Merker <merker@debian.org> wrote:
>
> IIRC both pbuilder and sbuild automatically set the "nocheck"
> profile when crossbuilding. For crossbuilding the kernel IIRC
> one needs to set a number of additional build-profiles:
>
> - cross
> - pkg.linux.notools
> - nopython
>
> So the following sbuild command should in theory (sorry, cannot
> actually test that right now) crossbuild the kernel package for
> arm64:
>
>   sbuild -d unstable --host=arm64 --profiles=cross,pkg.linux.notools,nopython <kernelpackage>.dsc

Thanks so much for the info! Especially the "nopython" option, which
was confusing at first glance.

I don't see the profile setting in kernel handbook, but only in the source:
 - https://anonscm.debian.org/cgit/kernel/linux.git/tree/debian/README.source

So I updated my wiki entry:
 - https://wiki.debian.org/HowToCrossBuildAnOfficialDebianKernelPackage
Now I confirm it builds only image and header 2 debs when targeting
"UNRELEASED".

Cheers,
-- 
Roger Shimizu, GMT +9 Tokyo
PGP/GPG: 4096R/6C6ACD6417B3ACB1


Reply to: