微波EDA网,见证研发工程师的成长!
首页 > 硬件设计 > 嵌入式设计 > GNU ARM汇编--(十七)u-boot的makefile和mkconfig解读

GNU ARM汇编--(十七)u-boot的makefile和mkconfig解读

时间:11-26 来源:互联网 点击:

        1. 二个地方没找到,就找第三个地方:其中CPUDIR是在顶层的config.mk中定义的,在arch/arm/cpu/arm920t中找这个目录也没有
        2. #第三个地方没找到,就找第四个地方:arch/arm/cpu/u-boot.lds,这里就找到了!!!!
        3. ##########################################################################################
        4. #########################################################################
        5. #U-Bootobjects....orderisimportant(i.e.startmustbefirst)
        6. OBJS=$(CPUDIR)/start.o
        7. ifeq($(CPU),x86)
        8. OBJS+=$(CPUDIR)/start16.o
        9. OBJS+=$(CPUDIR)/resetvec.o
        10. endif
        11. ifeq($(CPU),ppc4xx)
        12. OBJS+=$(CPUDIR)/resetvec.o
        13. endif
        14. ifeq($(CPU),mpc85xx)
        15. OBJS+=$(CPUDIR)/resetvec.o
        16. endif
        17. OBJS:=$(addprefix$(obj),$(OBJS))
        18. #####################################
        19. #为OBJS增加前缀,其中obj在顶层目录的config.mk中定义,这里根据实际情况OBJS就是arch/arm/cpu/arm920t/start.o
        20. #####################################
        21. LIBS=lib/libgeneric.o
        22. LIBS+=lib/lzma/liblzma.o
        23. LIBS+=lib/lzo/liblzo.o
        24. LIBS+=lib/zlib/libz.o
        25. ifeq($(CONFIG_TIZEN),y)
        26. LIBS+=lib/tizen/libtizen.o
        27. endif
        28. LIBS+=$(shellif[-fboard/$(VENDOR)/common/Makefile];thenecho
        29. "board/$(VENDOR)/common/lib$(VENDOR).o";fi)
        30. LIBS+=$(CPUDIR)/lib$(CPU).o
        31. ifdefSOC
        32. LIBS+=$(CPUDIR)/$(SOC)/lib$(SOC).o
        33. endif
        34. ifeq($(CPU),ixp)
        35. LIBS+=arch/arm/cpu/ixp/npe/libnpe.o
        36. endif
        37. ifeq($(CONFIG_OF_EMBED),y)
        38. LIBS+=dts/libdts.o
        39. endif
        40. LIBS+=arch/$(ARCH)/lib/lib$(ARCH).o
        41. LIBS+=fs/cramfs/libcramfs.ofs/fat/libfat.ofs/fdos/libfdos.ofs/jffs2/libjffs2.o
        42. fs/reiserfs/libreiserfs.ofs/ext2/libext2fs.ofs/yaffs2/libyaffs2.o
        43. fs/ubifs/libubifs.o
        44. LIBS+=net/libnet.o
        45. LIBS+=disk/libdisk.o
        46. LIBS+=drivers/bios_emulator/libatibiosemu.o
        47. LIBS+=drivers/block/libblock.o
        48. LIBS+=drivers/dma/libdma.o
        49. LIBS+=drivers/fpga/libfpga.o
        50. LIBS+=drivers/gpio/libgpio.o
        51. LIBS+=drivers/hwmon/libhwmon.o
        52. LIBS+=drivers/i2c/libi2c.o
        53. LIBS+=drivers/input/libinput.o
        54. LIBS+=drivers/misc/libmisc.o
        55. LIBS+=drivers/mmc/libmmc.o
        56. LIBS+=drivers/mtd/libmtd.o
        57. LIBS+=drivers/mtd/nand/libnand.o
        58. LIBS+=drivers/mtd/onenand/libonenand.o
        59. LIBS+=drivers/mtd/ubi/libubi.o
        60. LIBS+=drivers/mtd/spi/libspi_flash.o
        61. LIBS+=drivers/net/libnet.o
        62. LIBS+=drivers/net/phy/libphy.o
        63. LIBS+=drivers/pci/libpci.o
        64. LIBS+=drivers/pcmcia/libpcmcia.o
        65. LIBS+=drivers/power/libpower.o
        66. LIBS+=drivers/spi/libspi.o
        67. ifeq($(CPU),mpc83xx)
        68. LIBS+=drivers/qe/libqe.o
        69. LIBS+=arch/powerpc/cpu/mpc8xxx/ddr/libddr.o
        70. LIBS+=arch/powerpc/cpu/mpc8xxx/lib8xxx.o
        71. endif
        72. ifeq($(CPU),mpc85xx)
        73. LIBS+=drivers/qe/libqe.o
        74. LIBS+=drivers/net/fm/libfm.o
        75. LIBS+=arch/powerpc/cpu/mpc8xxx/ddr/libddr.o
        76. LIBS+=arch/powerpc/cpu/mpc8xxx/lib8xxx.o
        77. endif
        78. ifeq($(CPU),mpc86xx)
        79. LIBS+=arch/powerpc/cpu/mpc8xxx/ddr/libddr.o
        80. LIBS+=arch/powerpc/cpu/mpc8xxx/lib8xxx.o
        81. endif
        82. LIBS+=drivers/rtc/librtc.o
        83. LIBS+=drivers/serial/libserial.o
        84. ifeq($(CONFIG_GENERIC_LPC_TPM),y)
        85. LIBS+=drivers/tpm/libtpm.o
        86. endif
        87. LIBS+=drivers/twserial/libtws.o
        88. LIBS+=drivers/usb/eth/libusb_eth.o
        89. LIBS+=drivers/usb/gadget/libusb_gadget.o
        90. LIBS+=drivers/usb/host/libusb_host.o
        91. LIBS+=drivers/usb/musb/libusb_musb.o
        92. LIBS+=drivers/usb/phy/libusb_phy.o
        93. LIBS+=drivers/usb/ulpi/libusb_ulpi.o
        94. LIBS+=drivers/video/libvideo.o
        95. LIBS+=drivers/watchdog/libwatchdog.o
        96. LIBS+=common/libcommon.o
        97. LIBS+=lib/libfdt/libfdt.o
        98. LIBS+=api/libapi.o
        99. LIBS+=post/libpost.o
        100. ifneq($(CONFIG_AM33XX)$(CONFIG_OMAP34XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
        101. LIBS+=$(CPUDIR)/omap-common/libomap-common.o
        102. endif
        103. ifeq($(SOC),mx5)
        104. LIBS+=$(CPUDIR)/imx-common/libimx-common.o
        105. endif
        106. ifeq($(SOC),mx6)
        107. LIBS+=$(CPUDIR)/imx-common/libimx-common.o
        108. endif
        109. ifeq($(SOC),s5pc1xx)
        110. LIBS+=$(CPUDIR)/s5p-common/libs5p-common.o
        111. endif
        112. ifeq($(SOC),exynos)
        113. LIBS+=$(CPUDIR)/s5p-common/libs5p-common.o
        114. endif
        115. LIBS:=$(addprefix$(obj),$(sort$(LIBS)))
        116. ########################################
        117. #将LIBS排序后为LIBS增加前缀
        118. #########################################
        119. .PHONY:$(LIBS)
        120. LIBBOARD=board/$(BOARDDIR)

  • Copyright © 2017-2020 微波EDA网 版权所有

    网站地图

    Top