当前位置:网站首页>黑猫带你学Makefile第10篇:如何将未被编译的代码/自己写的驱动编译进uboot
黑猫带你学Makefile第10篇:如何将未被编译的代码/自己写的驱动编译进uboot
2022-08-08 19:06:00 【黑猫学长呀】
本文结合个人工作/学习经验、网络资料辛苦整理/撰写而成,付费内容,禁止转载。
本文所在专栏《黑猫带你学Makefile》
如何将自己写的code或者板子中未被编译的code编译进uboot呢?此处通过两个例子来讲解。
1 如何将/cmd/nand.c编译到uboot中
在zedboard开发板上,使用zedboard官网下载uboot,发现/cmd/nand.c未被编译进uboot中。就想着如何编译nand.c到zedboard的uboot中。
方法一
1、在/cmd/Makefile里面有
obj-$(CONFIG_CMD_NAND) += nand.o
所以不用改Makefile了,打开/cmd/Kconfig,加入:
config CMD_NAND
bool "nand"
help
NAND support.
2、打开/configs/zynq_zed_deconfig文件,增加:
CONFIG_CMD_NAND=y
3、输入以下命令:
make CROSS_COMPILE=arm-xilinx-linux-gnueabi- zynq_zed_defconfig
make
报错如下:
边栏推荐
猜你喜欢
Why Manufacturing Companies Should Deploy Digital Factory Systems
PG's huge page
BP neural network
Vue program of web cache problem after packaging
干货:从零设计高并发架构
生成验证码工具类
golang for循环详解
Azure Neural TTS continues to be updated to help enterprises develop small language markets
LabVIEW报错“仪器IO助手未正确安装”
从 VLAN 到 IPVLAN: 聊聊虚拟网络设备及其在云原生中的应用
随机推荐
wps表格怎么复制粘贴后与原来格式一样?
Style Design Principles in Open Office XML Format
启牛商学院开户是安全的吗?开户靠谱吗?
Codeforces Round #721 (Div. 2)
传统和加密域名概述
Lecture 4: Database Definition Language of DDL Type of SQL Statements
Azure Neural TTS continues to be updated to help enterprises develop small language markets
[ZJCTF 2019]NiZhuanSiWei
数据库学习之表的操作
A Preliminary Study on Pannellum, a Lightweight Panorama Viewer
leetcode 240.搜索二维矩阵II 分治思想
如何在EasyDSS中使用ffmpeg实现点播视频的拼接与合成?
数组!!!
MogDB study notes - starting from 0
nyoj714 Card Trick (The 6th Henan Province Programming Contest)
Redhat 7 Maria DB installation and configuration
Securities account is better to choose which brokerage platform, which is more safe
【761. Special binary sequence】
软考中级网络工程师全面学习笔记第2版(5万字)+配套视频及课件
Performance optimization | CPU power management from the perspective of ping delay