ubuntu22.04

sudo apt install fakeroot git kernel-wedge quilt ccache flex bison libssl-dev dh-exec rsync libelf-dev bc crossbuild-essential-armhf
sudo apt install dpkg-dev fakeroot gcc-arm-linux-gnueabihf dh-make libncurses-dev gcc-10-arm-linux-gnueabihf

git clone https://github.com/macromorgan/chip-debroot.git
cd chip-debroot
git clone -n https://salsa.debian.org/kernel-team/linux.git debian-kernel
cd debian-kernel
git checkout debian/5.15.15-2_bpo11+1
git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable ../linux-stable
debian/bin/genorig.py ../linux-stable
ARCH=armhf
FEATURESET=none
FLAVOUR=armmp
export $(dpkg-architecture -a$ARCH)
export DEB_BUILD_PROFILES="cross nopython nodoc pkg.linux.notools"
export MAKEFLAGS="-j$(($(nproc)*2))"
export DEBIAN_KERNEL_DISABLE_DEBUG=yes
fakeroot make -f debian/rules clean
fakeroot make -f debian/rules orig
fakeroot make -f debian/rules source
fakeroot make -f debian/rules.gen setup_${ARCH}_${FEATURESET}_${FLAVOUR}
cd debian/build/build_armhf_none_armmp
cp /home/xuefei/chip-debroot/kernel_files/debian.config /home/xuefei/chip-debroot/debian-kernel/debian/build/build_armhf_none_armmp/.config
cd ~
cd chip-debroot/debian-kernel
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -C debian/build/build_armhf_none_armmp
fakeroot make -f debian/rules.gen binary-arch_${ARCH}_${FEATURESET}_${FLAVOUR}

暂未应用补丁,且待验证……

make[2]: Entering directory '/home/xuefei/pocketchip/debian-kernel'
dh_installchangelogs
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol -- 
dh_md5sums
dh_builddeb -- -Zxz 
dpkg-deb: building package 'linux-image-5.15.0-0.bpo.3-armmp' in '../linux-image-5.15.0-0.bpo.3-armmp_5.15.15-2~bpo11+1_armhf.deb'.
make[2]: Leaving directory '/home/xuefei/pocketchip/debian-kernel'
make[1]: 离开目录“/home/xuefei/pocketchip/debian-kernel”

sendpix0.jpg

标签: none

添加新评论