添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
气宇轩昂的自行车  ·  Conversion·  5 月前    · 
焦虑的单车  ·  javascript - Inherite ...·  1 年前    · 
胆小的风衣  ·  sana动漫做到饭糊-80娱乐·  1 年前    · 
想出家的水煮鱼  ·  修复失败的ruby ...·  1 年前    · 
I want to build an upstream kernel with the Debian image's configuration. My system is normally i386 but I use the -amd64 variant so I want to build that one.
My workflow is like this: I build kernels in a i386 jessie chroot. I use the upstream tarballs, copy the config file of the relevant debian kernel variant and then "make olddefconfig && make deb-pkg ..."
The problem is:
1. I can build pae kernels just fine using the config file of Debian's -686-pae image. It builds the kernel and creates i386 deb packages.
2. When I try to build -amd64 kernel, using the config file of the -amd64 variant of the i386 package (the one I've linked above), make deb-pkg creates deb packages with the amd64 architecture (the resulting deb files end in _amd64.deb, contrary to the packages I've linked above).
3. Instead, if I build with ARCH=i386 make olddefconfig && ARCH=i386 make deb-pkg, using the same config file from the -amd64 variant of the i386 package, the resulting debs are _i386.deb files, but this time they're really i386, not even PAE .
I compared the .config file from the (2) and (3) after the kernels are compiled, and they're same.
So, what is the procedure to follow building the -amd64 kernels but in i386 deb files?
I tested it and the correct invocation is:

Code: Select all

make deb-pkg ARCH=x86_64 KBUILD_DEBARCH=i386
It builds a 64 bit kernel, but packages it for i386 architecture.
  • ↳   General Questions
  • ↳   Graphical Environments & Desktops
  • ↳   System and Network configuration
  • ↳   Hardware
  • ↳   Programming
  • Testing & Unstable
  • ↳   Testing And Unstable
  • Debian User Projects
  • ↳   Debian User Projects - Software
  • Community
  • ↳   Forum information, requests, and feedback.
  • ↳   General Debian
  • ↳   Off-Topic
  • ↳   Debian User Projects - Media
  •