linuxbber 发表于 2025-1-10 08:58:55

kernel打包请教,需要header包

本帖最后由 linuxbber 于 2025-1-10 09:03 编辑

想把kernenl编译完成后,打包出来header的deb包,使用make deb-pkg,出错如下:
dpkg-source: info: using source format '1.0'
dpkg-source: warning: source directory 'kernel' is not <sourcepackage>-<upstreamversion> 'linux-5.10.66-5.10.66'
dpkg-source: warning: .orig directory name kernel.orig is not <package>-<upstreamversion> (wanted linux-5.10.66-5.10.66.orig)
dpkg-source: info: building linux-5.10.66 using existing linux-5.10.66_5.10.66.orig.tar.gz
dpkg-source: info: building linux-5.10.66 in linux-5.10.66_5.10.66-1.diff.gz
dpkg-source: warning: ignoring deletion of file .scmversion
dpkg-source: warning: newly created empty file '.find-ignore' will not be represented in diff
dpkg-source: error: cannot represent change to .tar.bz2: binary file contents changed
dpkg-source: warning: newly created empty file 'android/gki_aarch64_modules' will not be represented in diff
dpkg-source: error: cannot represent change to logo.bmp: binary file contents changed
dpkg-source: error: cannot represent change to logo_kernel.bmp: binary file contents changed
dpkg-source: warning: the diff modifies the following upstream files:



我先用./build.sh kernel编译完内核,然后进入kernel目录,执行make ARCH=arm64 deb-pkg


有没大佬编译过的,具体怎么操作?

feiyun 发表于 2025-1-23 17:55:38

TOOLCHAIN_DIR="$(realpath prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin)"
export CROSS_COMPILE=${TOOLCHAIN_DIR}/aarch64-none-linux-gnu-
KERNEL_DIR="$(realpath kernel)"
cd ${KERNEL_DIR}
make ARCH=arm64 bindeb-pkg -j4

供参考,我这边可以编译并且3588板子可以安装
页: [1]
查看完整版本: kernel打包请教,需要header包