openwrt-dev / openwrt

Other
1 stars 0 forks source link

Make the kmod-* compatible with the official packages #5

Closed pexcn closed 3 years ago

pexcn commented 3 years ago
# PART 1
# download official config to get kernel .config.set content
wget https://downloads.openwrt.org/releases/23.05.0/targets/ipq40xx/generic/config.buildinfo -O .config
make defconfig
make target/linux/compile V=s
grep '=[ym]' build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/linux-5.15.134/.config.set | LC_ALL=C sort | staging_dir/host/bin/mkhash md5
cat build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/linux-5.15.134/.config.set

# PART 2
# update config
sed -i -e '/^# CONFIG_PACKAGE_kmod-/d' .config
echo CONFIG_ALL_KMODS=y >> .config
make defconfig
make target/linux/compile V=s
grep '=[ym]' build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/linux-5.15.134/.config.set | LC_ALL=C sort | staging_dir/host/bin/mkhash md5
cat build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx_generic/linux-5.15.134/.config.set