在内核文件中arch/arm/tools/mach-types定义目前内核支持的板卡、芯片等:

##machine_is_xxx  CONFIG_xxxx  MACH_TYPE_xxx  number

at91sam9g10ek   MACH_AT91sam9G10EK  AT91SAM9G10EK  2159

 

arch/arm/tools/gen_mach_types用于生成include/asm-arm/mach-types.h,定义支持的架构类型。

 

include/asm-arm/mach-types.h定义板卡类型

 

include/linux/compile.h编译相关信息

include/linux/utsrelease.h linux版本信息

 

在3.2内核中自动生成文件位于include/generated下

asm_offsets.h  autoconf.h  bounds.h  compile.h  mach-types.h  utsrelease.h

相关文章:

  • 2021-12-23
  • 2021-12-02
  • 2021-12-17
  • 2021-10-14
  • 2021-11-05
  • 2022-12-23
  • 2022-12-23
  • 2021-04-11
猜你喜欢
  • 2021-11-15
  • 2021-04-22
  • 2021-12-24
  • 2021-04-25
  • 2021-05-09
  • 2022-02-24
相关资源
相似解决方案