$(Q) cp $(BOARD_DIR)/defconfig $(KCONFIG_CONFIG)
时间: 2024-05-20 12:10:46 浏览: 7
$(A) 这是一个Linux内核中的Makefile指令,用于将$(BOARD_DIR)/defconfig文件复制到$(KCONFIG_CONFIG)中。$(BOARD_DIR)表示板级支持包的目录,$(KCONFIG_CONFIG)表示内核的配置文件路径。该指令的作用是将板级支持包中的默认配置文件复制到内核的配置文件中,以便在编译内核时使用。
相关问题
clzdh@ubuntu:~/Desktop/rk3399_linux_release_v2.5.1_20210301$ ./mkfirmware.sh /usr/bin/fakeroot warning: /home/clzdh/Desktop/rk3399_linux_release_v2.5.1_20210301/rockdev/rootfs.ext4 not found! please set correct RK_ROOTFS_IMG in device/rockchip/.BoardConfig.mk create parameter...done. warning: /home/clzdh/Desktop/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/images/recovery.img not found! create misc.img...done. Source buildroot/build/envsetup.sh Top of tree: /home/clzdh/Desktop/rk3399_linux_release_v2.5.1_20210301 =========================================== #TARGET_BOARD=rk3399 #OUTPUT_DIR=output/rockchip_rk3399 #CONFIG=rockchip_rk3399_defconfig ===========================================
根据你提供的输出,这是在运行 `./mkfirmware.sh` 脚本时遇到的一些警告和提示。
首先,警告显示 `/home/clzdh/Desktop/rk3399_linux_release_v2.5.1_20210301/rockdev/rootfs.ext4` 文件未找到。它建议你在 `device/rockchip/.BoardConfig.mk` 中设置正确的 `RK_ROOTFS_IMG`。这意味着需要检查并设置正确的根文件系统镜像路径。
接下来,它创建了 parameter.img 文件,并显示创建成功。
然后,警告显示 `/home/clzdh/Desktop/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/images/recovery.img` 文件未找到。这意味着无法找到 recovery.img 文件。
最后,输出显示了一些注释,指示目标板为 `rk3399`,输出目录为 `output/rockchip_rk3399`,配置为 `rockchip_rk3399_defconfig`。
根据上述警告和提示,你可以尝试做以下几件事情:
1. 检查并设置正确的根文件系统镜像路径。打开 `device/rockchip/.BoardConfig.mk` 文件,并找到 `RK_ROOTFS_IMG` 的设置,确保它指向正确的根文件系统镜像路径。
2. 检查是否存在 `recovery.img` 文件。确保该文件位于正确的路径 `/home/clzdh/Desktop/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/images/` 下。
你可以根据上述建议进行调整,然后再次运行 `./mkfirmware.sh` 脚本。如果问题仍然存在,请提供更多的上下文或详细描述你的构建环境和步骤,以便我们能够更好地帮助你解决问题。
<builders> <org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder plugin="conditional-buildstep@1.4.2"> <condition class="org.jenkins_ci.plugins.run_condition.contributed.ShellCondition" plugin="run-condition@1.5"> <command>if git show --summary HEAD | grep -q -E "\(cherry picked from commit \b[0-9a-f]{5,40}\b\)"; then exit 1 fi</command> </condition> <buildStep class="hudson.tasks.Shell"> <command>./scripts/checkpatch.pl --min-conf-desc-length=1 --ignore GERRIT_CHANGE_ID -g HEAD </command> <configuredLocalRules/> </buildStep> <runner class="org.jenkins_ci.plugins.run_condition.BuildStepRunner$Run" plugin="run-condition@1.5"/> </org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder> <hudson.tasks.Shell> <command>NCPU=$(expr $(nproc --all ) / 2) make O=build-${BUILD_ID} -s defconfig make O=build-${BUILD_ID} -j$NCPU -s Image make O=build-${BUILD_ID} -j$NCPU -s modules make O=build-${BUILD_ID} INSTALL_MOD_PATH=../install-${BUILD_ID} -s modules_install mkdir -p install-${BUILD_ID}/boot/ KERNELVER=$(cat build-${BUILD_ID}/include/config/kernel.release 2> /dev/null) cat build-${BUILD_ID}/arch/arm64/boot/Image > install-${BUILD_ID}/boot/Image-$KERNELVER cp build-${BUILD_ID}/System.map install-${BUILD_ID}/boot/System.map-$KERNELVER cp build-${BUILD_ID}/.config install-${BUILD_ID}/boot/config-$KERNELVER tar -cJf install-${BUILD_ID}/linux-$KERNELVER.tar.xz -C install-${BUILD_ID}/ boot lib</command> <configuredLocalRules/> </hudson.tasks.Shell> <hudson.tasks.Shell> <command>cd $HOME/src/linux git fetch -p -t git pull </command> <configuredLocalRules/> </hudson.tasks.Shell> </builders> 这是一段Jenkins job的定义,请把它转成对应的JJB的yaml格式配置文件
对应的JJB的yaml格式配置文件如下所示:
```yaml
- builders:
- conditional-step:
conditional-buildstep@1.4.2:
condition:
shell-condition:
run-condition@1.5:
command: "if git show --summary HEAD | grep -q -E \"\\(cherry picked from commit \\b[0-9a-f]{5,40}\\b\\)\"; then exit 1 fi"
buildStep:
shell:
command: "./scripts/checkpatch.pl --min-conf-desc-length=1 --ignore GERRIT_CHANGE_ID -g HEAD"
configuredLocalRules: ""
runner:
run-build-step-runner:
run-condition@1.5: ""
- shell:
command: "NCPU=$(expr $(nproc --all ) / 2) make O=build-${BUILD_ID} -s defconfig make O=build-${BUILD_ID} -j$NCPU -s Image make O=build-${BUILD_ID} -j$NCPU -s modules make O=build-${BUILD_ID} INSTALL_MOD_PATH=../install-${BUILD_ID} -s modules_install mkdir -p install-${BUILD_ID}/boot/ KERNELVER=$(cat build-${BUILD_ID}/include/config/kernel.release 2> /dev/null) cat build-${BUILD_ID}/arch/arm64/boot/Image > install-${BUILD_ID}/boot/Image-$KERNELVER cp build-${BUILD_ID}/System.map install-${BUILD_ID}/boot/System.map-$KERNELVER cp build-${BUILD_ID}/.config install-${BUILD_ID}/boot/config-$KERNELVER tar -cJf install-${BUILD_ID}/linux-$KERNELVER.tar.xz -C install-${BUILD_ID}/ boot lib"
configuredLocalRules: ""
- shell:
command: "cd $HOME/src/linux git fetch -p -t git pull"
configuredLocalRules: ""
```