debian/rules editconfigs 在搭载 Ubuntu 20.04 aarch64 的 Raspberry Pi 4 上失败

debian/rules editconfigs 在搭载 Ubuntu 20.04 aarch64 的 Raspberry Pi 4 上失败

我正在尝试在我的 Raspberry Pi 4 上为 Ubuntu 20.04 aarch64 构建一个新内核。

按照 Ubuntu Wiki 中 BuildYourOwnKernel 中的说明,我在sudo LANG=C fakeroot debian/rules editconfigs步骤中得到以下内容:

dh_testdir;
/bin/bash -e debian/scripts/misc/kernelconfig editconfigs
Do you want to edit config: armhf/config.flavour.raspi? [Y/n] n
make[1]: Entering directory '/home/john/picluster/kernel/linux-raspi-5.4.0'
make[2]: Entering directory '/home/john/picluster/kernel/linux-raspi-5.4.0/build'
  GEN     Makefile
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  LEX     scripts/kconfig/lexer.lex.c
  YACC    scripts/kconfig/parser.tab.[ch]
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTCC  scripts/kconfig/conf.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
scripts/Kconfig.include:35: compiler 'arm-linux-gnueabihf-gcc' not found
make[3]: *** [../scripts/kconfig/Makefile:73: syncconfig] Error 1
make[2]: *** [/home/john/picluster/kernel/linux-raspi-5.4.0/Makefile:594: syncconfig] Error 2
make[2]: Leaving directory '/home/john/picluster/kernel/linux-raspi-5.4.0/build'
make[1]: *** [Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/home/john/picluster/kernel/linux-raspi-5.4.0'
make: *** [debian/rules.d/1-maintainer.mk:48: editconfigs] Error 2

我回答了“否” Do you want to edit config: armhf/config.flavour.raspi? [Y/n] n,因为我预计会被问到是否要编辑 arm64 的配置。如果我回答“是”,我也会收到同样的消息。

任何帮助都将非常感激。

答案1

armhf从的分支archs中移除。elselinux-raspi-5.4.0/debian.raspi/etc/kernelconfig

现在...

if [ "$variant" = "ports" ]; then
        archs=""
        family='ports'
else
        archs="arm64"
        family='ubuntu'
fi

相关内容