Are kernel headers depend on processor type, vendor etc?

前端 未结 1 1070
予麋鹿
予麋鹿 2020-12-21 18:50

I have downloaded the sources for a Linux kernel from kernel.org and created the header files by calling

make ARCH=arm headers_check

I have

相关标签:
1条回答
  • 2020-12-21 19:20

    If you have a specific ARM board in mind for your project, you can select that board’s defconfig.A defconfig is the kernel’s way of storing the default set of build settings and then sets the configuration for the kernel build.

    e.g.

    1)make mrproper

    2)make ARCH=arm integrator_defconfig

    --> here above command sets configuration for the kernel build to the settings in the integrator_defconfig file. The integrator is a device created by ARM for doing development work and is the closest thing in the ARM architecture to a generic device.

    same thing can be done for others by settting their respective specific board like versatilepb,vexpress, exynox,...etc.

    You can find default configuration in ../arch/arm/configs/ in kernel source-code. next

    3)make ARCH=arm INSTALL_HDR_PATH=dest headers_install

    which installs specific board configured header files so that these files have information about how to call kernel services that the C libraries use to access kernel functionality

    0 讨论(0)
提交回复
热议问题