探秘“张柏芝B大毛又多又长”:解读现象背后的文化与个体解读

核心内容摘要

趁夫不在,独享荧屏,翼裕香伴你度过悠闲时光
揭秘“100款流氓软件”:科技阴影下的隐秘战争

ADC影视年龄确认:守护数字世界的纯净,畅享无忧观影新篇章

文章目录

Linux内核裁剪

1.

使用make menuconfig情况下的工作流

1.

1.

加载开发板默认配置

1.

1.

添加自己的模块选项到make menuconfig菜单

1.

1.

在make menuconfig勾选刚添加的选项

1.

1.

把修改后的.config保存成新的xxx_defconfig

1.

1.

编译

1.

不使用make menuconfig情况下的工作流

2、

总结

Linux内核裁剪目标不使用make menuconfig增加/减少Linux内核编译输出的模块搞清楚Kconfig、.config、xxx_defconfig和Makefile之间的关系

1.

使用make menuconfig情况下的工作流

1.

1.

加载开发板默认配置将 arch/arm/configs/100ask_imx6ull_defconfig复制到 Linux项目的根目录下并重命名为为.config$make100ask_imx6ull_defconfig

1.

1.

添加自己的模块选项到make menuconfig菜单如果要在100ask_imx6ull_defconfig的配置基础上添加自己的配置可以在相应的目录下编写驱动程序例如在drivers/input/misc/下编写100ask_adxl345-spi.c在drivers/input/misc/下找到Kconfig文件并修改... config INPUT_ADXL34X tristateAnalog Devices ADXL34x Three-Axis Digital Accelerometerdefault nhelpSay Y hereifyou have a Accelerometer interface using the ADXL345/6 controller, and your board-specific initialization code includes thatinits table of devices. This driver can use either I2C or SPI communication to the ADXL345/6 controller. Select the appropriate methodforyour system. If unsure, say N(but its safe to sayY). To compile this driver as a module, choose M here: the module will be called adxl34x.... config INPUT_ADXL34x_MOD tristate100ask SPI bus connectiondepends on INPUT_ADXL34XSPI default mhelpSay Y hereifyou have ADXL345/6 hooked to a SPI bus. To compile this driver as a module, choose M here: the module will be called 100ask_adxl34x-spi....

1.

1.

在make menuconfig勾选刚添加的选项在make menuconfig的GUI界面勾选编译选项后会修改.config的编译配置$makemenuconfig被make menuconfig修改后的.config文件如下...CONFIG_INPUT_ADXL34Xy...CONFIG_INPUT_ADXL34x_MODm...这些变量名都会在编译时被读取到Kconfig同级目录的Makefile中例如drivers/input/misc/的Makefile如下所示... obj-$(CONFIG_INPUT_ADXL34X)adxl34x.o... obj-$(CONFIG_INPUT_ADXL34x_MOD)100ask_adxl345-spi.o...

1.

1.

把修改后的.config保存成新的xxx_defconfig这里的xxx_defconfig 100ask_imx6ull_defconfig$makesavedefconfig $mvdefconfig arch/arm/configs/my_name_defconfig

1.

1.

编译# 如果obj-m, 则即可makemodules# 如果obj-y, 则即可makezImage

1.

不使用make menuconfig情况下的工作流在

1.

3章节中直接手工修改.config文件即可

2、

总结xxx_defconfig文件用于记录配置好的编译配置.config内核当前的编译配置存在于内核的顶层目录在make xxx_defconfig后出现从 arch/…/configs/xxx_defconfig 生成 .configmake menuconfig修改.config手动编辑 .config 可替代 menuconfigKconfig定义make menuconfig的菜单项Kconfig同级目录的Makefile读取.config中的CONFIG_XXX变量来决定编译行为通过 obj- $ (CONFIG_XXX) 响应配置

唐伯虎心糖logo免费播放在线观看-唐伯虎心糖logo免费播放在线观看应用

百度百家号客服电话人工服务

123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123 123